org.mortbay.jetty
Interface Handler
- All Superinterfaces:
- LifeCycle
- All Known Implementing Classes:
- AbstractHandler, ContextHandler, ErrorHandler, HandlerCollection, NotFoundHandler, RequestLogHandler, SecurityHandler, Server, ServletHandler, SessionHandler, WebAppContext, WebAppContext.WebAppErrorHandler, WrappedHandler
public interface Handler
- extends LifeCycle
DEFAULT
static final int DEFAULT
- Dispatch types
- See Also:
- Constant Field Values
REQUEST
static final int REQUEST
- See Also:
- Constant Field Values
FORWARD
static final int FORWARD
- See Also:
- Constant Field Values
INCLUDE
static final int INCLUDE
- See Also:
- Constant Field Values
ERROR
static final int ERROR
- See Also:
- Constant Field Values
ALL
static final int ALL
- See Also:
- Constant Field Values
handle
boolean handle(String target,
HttpServletRequest request,
HttpServletResponse response,
int dispatch)
throws IOException,
ServletException
- Generic Jetty request handler.
- Parameters:
target
- The target of the request - either a URI or a name.request
- The request either as the Request
object or a wrapper of that request. The HttpConnection.getCurrentConnection()
method can be used access the Request object if required.response
- The response as the Response
object or a wrapper of that request. The HttpConnection.getCurrentConnection()
method can be used access the Response object if required.dispatch
- The dispatch mode: REQUEST
, FORWARD
, INCLUDE
, ERROR
- Returns:
- True if the request has been handled
- Throws:
IOException
ServletException
setServer
void setServer(Server server)
getServer
Server getServer()