|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpHandler
HTTP handler. The HTTP Handler interface is implemented by classes that wish to receive and handle requests from the HttpServer. The handle method is called for each request and the handler may ignore, modify or handle the request. Examples of HttpHandler instances include:
HttpServer
,
HttpContext
Method Summary | |
---|---|
HttpContext |
getHttpContext()
|
String |
getName()
Get the name of the handler. |
void |
handle(String pathInContext,
String pathParams,
HttpRequest request,
HttpResponse response)
Handle a request. |
void |
initialize(HttpContext context)
|
Methods inherited from interface org.openqa.jetty.util.LifeCycle |
---|
isStarted, start, stop |
Method Detail |
---|
String getName()
HttpContext getHttpContext()
void initialize(HttpContext context)
void handle(String pathInContext, String pathParams, HttpRequest request, HttpResponse response) throws HttpException, IOException
pathInContext
- The context pathpathParams
- Path parameters such as encoded Session IDrequest
- The HttpRequest requestresponse
- The HttpResponse response
HttpException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |