Interface UrlAwareHandler

public interface UrlAwareHandler

Optional interface to be implemented by request handlers in our MVC approach that are interested in the URL they are mapped to.

Rod Johnson

Method Summary
 void setUrlMapping(java.lang.String url)
          Set the URL this handler is mapped to.

Method Detail


public void setUrlMapping(java.lang.String url)
Set the URL this handler is mapped to. This interface will only be implemented by some handlers: others may be mapped to many URLs, and so cannot benefit from knowledge of individual mappings. Of course a handler can find out the request URL when it handles a request: implementations of this interface want to know about a single URL mapping before they begin to handle requests.
url - the URL this handler is mapped to

Rod Johnson and Spring contributors 2001-2003.