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 SummaryFields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.String>mappingThe html responses (host->response).
 - 
Constructor SummaryConstructors Constructor Description HtmlHandler()Create an html handler.
 - 
Method SummaryAll 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.HttpHandlerdestroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePaths
 
- 
 
- 
- 
- 
Method Detail- 
addMappingpublic void addMapping(java.lang.String host, java.lang.String html)Add a mapping.
 - 
servicepublic void service(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response resp)Service the request.- Specified by:
- servicein class- org.glassfish.grizzly.http.server.HttpHandler
 
 
- 
 
-