public class NotifyingURIResolver extends Observable implements URIResolver, URIResolverHandler
NOT_FOUND
Constructor and Description |
---|
NotifyingURIResolver(URIResolver ur,
URIObserver uo)
Initialise the wrapper.
|
Modifier and Type | Method and Description |
---|---|
int |
lookup(Request request,
Response response)
Passes the uri to the current wrapped resolver and notifies the observer of the result.
|
void |
setURIResolver(URIResolver anUR)
Sets the current URIResolver wrapped.
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public NotifyingURIResolver(URIResolver ur, URIObserver uo)
ur
- The Wrapped URI resolveruo
- The URI Observer to notify on each url.ArgumentNotValid
- if either argument is null.public void setURIResolver(URIResolver anUR)
setURIResolver
in interface URIResolverHandler
anUR
- URI resolver to wrap.ArgumentNotValid
- if argument is null.public int lookup(Request request, Response response)
lookup
in interface URIResolver
request
- A given requestresponse
- A given responseURIResolver.lookup(Request, Response)
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.