Esri Geoportal Server
1.0

com.esri.gpt.framework.resource.adapters
Class LimitedLengthResourcesAdapter

java.lang.Object
  extended by com.esri.gpt.framework.resource.adapters.LimitedLengthResourcesAdapter
All Implemented Interfaces:
Iterable<Resource>

public class LimitedLengthResourcesAdapter
extends Object
implements Iterable<Resource>

Limeited length resource adapter.


Constructor Summary
LimitedLengthResourcesAdapter(Iterable<Resource> resources, Integer maxRecs)
          Creates instance of the adapter.
LimitedLengthResourcesAdapter(Resource resource, Integer maxRecs)
          Creates instance of the adapter.
 
Method Summary
 Iterator<Resource> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimitedLengthResourcesAdapter

public LimitedLengthResourcesAdapter(Resource resource,
                                     Integer maxRecs)
Creates instance of the adapter.

Parameters:
resource - single resource
maxRecs - maximum records

LimitedLengthResourcesAdapter

public LimitedLengthResourcesAdapter(Iterable<Resource> resources,
                                     Integer maxRecs)
Creates instance of the adapter.

Parameters:
resources - collection of resources
maxRecs - maximum records
Method Detail

iterator

public Iterator<Resource> iterator()
Specified by:
iterator in interface Iterable<Resource>

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.