|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Handler
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.mortbay.component.LifeCycle |
|---|
org.mortbay.component.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(String target,
HttpServletRequest request,
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 |
|---|
static final int DEFAULT
static final int REQUEST
static final int FORWARD
static final int INCLUDE
static final int ERROR
static final int ALL
| Method Detail |
|---|
void handle(String target,
HttpServletRequest request,
HttpServletResponse response,
int dispatch)
throws IOException,
ServletException
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
IOException
ServletExceptionvoid setServer(Server server)
Server getServer()
void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||