public interface HttpHandler extends LifeCycle, Serializable
HttpServer
,
HttpContext
Modifier and Type | Method and Description |
---|---|
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) |
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 responseHttpException
IOException
Copyright © 2016. All Rights Reserved.