public class MissingURIRecorder extends URIObserver
Constructor and Description |
---|
MissingURIRecorder() |
Modifier and Type | Method and Description |
---|---|
void |
clearRecordedURIs()
Clear list of missing URIs.
|
Set<URI> |
getRecordedURIs()
Getter for the recorded missing URIs.
|
boolean |
isRecordingURIs()
Returns whether we are currently collecting URIs.
|
void |
notify(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.
|
update
public MissingURIRecorder()
public void startRecordingURIs()
public void stopRecordingURIs()
public void clearRecordedURIs()
public Set<URI> getRecordedURIs()
public void notify(URI uri, int responseCode)
notify
in class URIObserver
uri
- The URI observed.responseCode
- The responsecode of the uri.public boolean isRecordingURIs()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.