com.mortbay.Servlets
Interface ServletDispatchHandler
- All Known Implementing Classes:
- DispatchServlet, PropertyTreeEditor.EditorDispatcher
- public interface ServletDispatchHandler
Interface for handling unmatched path methods.
A class should implement this interface if it wishes to handle
unmatched methods to be called by the ServletDispatch.dispatch method.
- Version:
- $Version: $
- Author:
- Matthew Watson (watsonm)
- See Also:
com.mortbay.Util.ServletDispatch
Method Summary |
java.lang.Object |
defaultDispatch(java.lang.String method,
ServletDispatch dispatch,
java.lang.Object context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handle an unmatched method |
defaultDispatch
public java.lang.Object defaultDispatch(java.lang.String method,
ServletDispatch dispatch,
java.lang.Object context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.lang.Exception
- Handle an unmatched method
- Parameters:
method
- The name of the unmatched method - this will be null if
there was no path left to handledispatch
- The dispatch objectcontext
- req
- res
- - Returns:
- non-null if the request was handled