|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.viewerproxy.URIObserver dk.netarkivet.viewerproxy.MissingURIRecorder
public class MissingURIRecorder
This class handles recordings of URIs not found during URI lookup.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class dk.netarkivet.viewerproxy.URIObserver |
---|
URIObserver.URIResponseCodePair |
Constructor Summary | |
---|---|
MissingURIRecorder()
|
Method Summary | |
---|---|
void |
clearRecordedURIs()
Clear list of missing URIs. |
java.util.Set<java.net.URI> |
getRecordedURIs()
Getter for the recorded missing URIs. |
boolean |
isRecordingURIs()
Returns whether we are currently collecting URIs. |
void |
notify(java.net.URI uri,
int responseCode)
If we are recording URIs, and the response code is NOT_FOUND, then add URI to the list of missing URIs. |
void |
startRecordingURIs()
Start recording missing URIs. |
void |
stopRecordingURIs()
Stop recording missing URIs. |
Methods inherited from class dk.netarkivet.viewerproxy.URIObserver |
---|
update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MissingURIRecorder()
Method Detail |
---|
public void startRecordingURIs()
public void stopRecordingURIs()
public void clearRecordedURIs()
public java.util.Set<java.net.URI> getRecordedURIs()
public void notify(java.net.URI uri, int responseCode)
notify
in class URIObserver
uri
- The URI observed.responseCode
- The responsecode of the uri.public boolean isRecordingURIs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |