|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.control.webharvest.DefaultIterationContext
public class DefaultIterationContext
Default iteration context.
| Nested Class Summary | |
|---|---|
static class |
DefaultIterationContext.ExceptionInfo
Exception information. |
| Field Summary | |
|---|---|
protected Bots |
bots
|
protected static SimpleDateFormat |
DF
|
protected LinkedList<DefaultIterationContext.ExceptionInfo> |
exceptionInfos
|
| Constructor Summary | |
|---|---|
DefaultIterationContext(Bots robotsTxt)
Creates instance with robots information. |
|
| Method Summary | |
|---|---|
void |
assertAccess(String url)
Asserts access to the resource referenced by the url |
LinkedList<DefaultIterationContext.ExceptionInfo> |
getExceptionInfos()
Gets exception infos. |
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. |
void |
registerException(Exception ex)
Registers an exception. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static SimpleDateFormat DF
protected final LinkedList<DefaultIterationContext.ExceptionInfo> exceptionInfos
protected final Bots bots
| Constructor Detail |
|---|
public DefaultIterationContext(Bots robotsTxt)
robotsTxt - robots information or null if no robots information available| Method Detail |
|---|
public void onIterationException(Exception ex)
IterationContextIterator.hasNext() and Iterator.next()
don't allow to throw any checked exception even if an implementation actually
should throw it.
onIterationException in interface IterationContextpublic String toString()
toString in class Objectpublic LinkedList<DefaultIterationContext.ExceptionInfo> getExceptionInfos()
public void registerException(Exception ex)
ex - exceptionpublic HttpClientRequest newHttpClientRequest()
IterationContextHttpClientRequest
newHttpClientRequest in interface IterationContext
public void assertAccess(String url)
throws AccessException
IterationContext
assertAccess in interface IterationContexturl - url of the resource
AccessException - if access deniedpublic Bots getRobotsTxt()
IterationContext
getRobotsTxt in interface IterationContextnull if robots txt unavailable.
|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||