Package dk.netarkivet.viewerproxy
Class URIObserver
- java.lang.Object
-
- dk.netarkivet.viewerproxy.URIObserver
-
- All Implemented Interfaces:
Observer
- Direct Known Subclasses:
MissingURIRecorder
public abstract class URIObserver extends Object implements Observer
Super class for all URIObservers - calls the URIObserver notify method on all notifications of a URI and its response code.
-
-
Constructor Summary
Constructors Constructor Description URIObserver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
notify(URI uri, int responseCode)
This notify method is called on every notification of URI and response code.void
update(Observable o, Object arg)
Will call the abstract notify method if arg is an URIResponseCodePair value.
-
-
-
Method Detail
-
notify
public abstract void notify(URI uri, int responseCode)
This notify method is called on every notification of URI and response code.- Parameters:
uri
- The uri notified aboutresponseCode
- The response code of this uri.
-
update
public final void update(Observable o, Object arg)
Will call the abstract notify method if arg is an URIResponseCodePair value.
-
-