Package jadex.extension.rs.publish
Class GrizzlyRestServicePublishService.HtmlHandler
- java.lang.Object
-
- org.glassfish.grizzly.http.server.HttpHandler
-
- jadex.extension.rs.publish.GrizzlyRestServicePublishService.HtmlHandler
-
- Enclosing class:
- GrizzlyRestServicePublishService
public static class GrizzlyRestServicePublishService.HtmlHandler extends org.glassfish.grizzly.http.server.HttpHandlerAllow responding with different htmls based on virtual host name.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.String>mappingThe html responses (host->response).
-
Constructor Summary
Constructors Constructor Description HtmlHandler()Create an html handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMapping(java.lang.String host, java.lang.String html)Add a mapping.voidservice(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response resp)Service the request.-
Methods inherited from class org.glassfish.grizzly.http.server.HttpHandler
destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePaths
-
-
-
-
Method Detail
-
addMapping
public void addMapping(java.lang.String host, java.lang.String html)Add a mapping.
-
service
public void service(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response resp)Service the request.- Specified by:
servicein classorg.glassfish.grizzly.http.server.HttpHandler
-
-