public class AsityHttpHandler
extends org.glassfish.grizzly.http.server.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(org.glassfish.grizzly.http.server.Request request,
org.glassfish.grizzly.http.server.Response response) |
destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePathspublic void service(org.glassfish.grizzly.http.server.Request request,
org.glassfish.grizzly.http.server.Response response)
throws Exception
service in class org.glassfish.grizzly.http.server.HttpHandlerExceptionpublic AsityHttpHandler onhttp(Action<ServerHttpExchange> action)
ServerHttpExchange is
available.Copyright © 2015–2018. All rights reserved.