Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mortbay.jetty
Interface Handler

All Superinterfaces:
  LifeCycle

All Known Implementing Classes:
  AbstractHandler, AbstractHandlerContainer, AbstractStatisticsHandler, AtomicStatisticsHandler, Context, ContextHandler, ContextHandlerCollection, DebugHandler, DefaultHandler, ErrorHandler, ErrorPageErrorHandler, HandlerCollection, HandlerList, HandlerWrapper, HTAccessHandler, Jetty6PluginWebAppContext, JettyFactoryBean, ManyContexts.HelloHandler, ManyHandlers.HelloHandler, ManyHandlers.ParamHandler, MovedContextHandler, OneContext.HelloHandler, OneHandler.HelloHandler, RequestLogHandler, ResourceHandler, RewriteHandler, RewriteHandler, SecurityHandler, Server, ServletHandler, ServletHandler, SessionHandler, SetUIDServer, StatisticsHandler, TerracottaSessionHandler, WebAppContext

    public interface Handler

extends LifeCycle

Nested Class Summary

Nested classes/interfaces inherited from interface org.mortbay.component.LifeCycle
`LifeCycle.Listener`

Field Summary
`static int` | `ALL`
`static int` | `DEFAULT` Dispatch types
`static int` | `ERROR`
`static int` | `FORWARD`
`static int` | `INCLUDE`
`static int` | `REQUEST`

Method Summary
`void` | `destroy()`
`Server` | `getServer()`
`void` | `handle(java.lang.String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, int dispatch)` Handle a request.
`void` | `setServer(Server server)`

Methods inherited from interface org.mortbay.component.LifeCycle
`addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop`

Field Detail

### 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

Method Detail

### handle

    void handle(java.lang.String target,
                javax.servlet.http.HttpServletRequest request,
                javax.servlet.http.HttpServletResponse response,
                int dispatch)
                throws java.io.IOException,
                       javax.servlet.ServletException

  Handle a request.

  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`
  Throws:
    `java.io.IOException`
    `javax.servlet.ServletException`

### setServer

    void setServer(Server server)

### getServer

    Server getServer()

### destroy

    void destroy()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.