Esri Geoportal Server
1.2.9

com.esri.gpt.control.webharvest
Interface IterationContext

All Known Implementing Classes:
DefaultIterationContext

public interface IterationContext

Harvest context.


Method Summary
 void assertAccess(String url)
          Asserts access to the resource referenced by the url
 Bots getRobotsTxt()
          Gets RobotsTxt if available.
 HttpClientRequest newHttpClientRequest()
          Factory method to create instance of HttpClientRequest
 void onIterationException(Exception ex)
          Provides a way to capture exception which cannot be re-thrown.
 

Method Detail

onIterationException

void onIterationException(Exception ex)
Provides a way to capture exception which cannot be re-thrown. Both methods Iterator.hasNext() and Iterator.next() don't allow to throw any checked exception even if an implementation actually should throw it.

Parameters:
ex -

newHttpClientRequest

HttpClientRequest newHttpClientRequest()
Factory method to create instance of HttpClientRequest

Returns:
instance of HttpClientRequest

assertAccess

void assertAccess(String url)
                  throws AccessException
Asserts access to the resource referenced by the url

Parameters:
url - url of the resource
Throws:
AccessException - if access denied

getRobotsTxt

Bots getRobotsTxt()
Gets RobotsTxt if available.

Returns:
instance of robots txt or null if robots txt unavailable.

Esri Geoportal Server
1.2.9

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