public class AsityHttpHandler extends HttpHandler
Request and Response into
GrizzlyServerHttpExchange.
ServerConfiguration config = httpServer.getServerConfiguration();
config.addHttpHandler(new AsityHttpHandler().onhttp(http -> {}), "/cettia");
| Constructor and Description |
|---|
AsityHttpHandler() |
| Modifier and Type | Method and Description |
|---|---|
AsityHttpHandler |
onhttp(Action<ServerHttpExchange> action)
Registers an action to be called when
ServerHttpExchange is
available. |
void |
service(Request request,
Response response) |
destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePathspublic void service(Request request, Response response) throws Exception
service in class HttpHandlerExceptionpublic AsityHttpHandler onhttp(Action<ServerHttpExchange> action)
ServerHttpExchange is
available.Copyright © 2015–2016. All rights reserved.