public class RestrictedContentAdapter
extends org.glassfish.grizzly.http.server.HttpHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_HEADER_NAME |
protected static String |
IF_MODIFIED_SINCE |
static String |
LAST_MODIFIED_HEADER_NAME |
protected static Logger |
logger |
| Constructor and Description |
|---|
RestrictedContentAdapter(String contextRoot) |
RestrictedContentAdapter(String contextRoot,
Map<String,StaticContent> content) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContentIfAbsent(Map<String,StaticContent> staticContent) |
void |
addContentIfAbsent(String relativeURIString,
StaticContent newContent) |
protected int |
contentStateToResponseStatus(Content content,
URI requestURI) |
String |
contextRoot() |
protected String |
dumpContent() |
protected void |
finishErrorResponse(org.glassfish.grizzly.http.server.Response gResp,
int status) |
protected void |
finishResponse(org.glassfish.grizzly.http.server.Response gResp,
int status) |
protected void |
finishSuccessResponse(org.glassfish.grizzly.http.server.Response gResp,
int status) |
protected String |
logPrefix() |
protected String |
relativizeURIString(String candidateContextRoot,
String uriString) |
protected void |
respondNotFound(org.glassfish.grizzly.http.server.Response gResp) |
void |
resume() |
protected boolean |
returnIfClientCacheIsCurrent(String relativeURIString,
org.glassfish.grizzly.http.server.Request gReq,
long contentTimestamp) |
void |
service(org.glassfish.grizzly.http.server.Request gReq,
org.glassfish.grizzly.http.server.Response gResp) |
protected boolean |
serviceContent(org.glassfish.grizzly.http.server.Request gReq,
org.glassfish.grizzly.http.server.Response gResp) |
void |
suspend() |
String |
toString() |
destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePathspublic static final String LAST_MODIFIED_HEADER_NAME
public static final String DATE_HEADER_NAME
protected static final String IF_MODIFIED_SINCE
protected static final Logger logger
public RestrictedContentAdapter(String contextRoot, Map<String,StaticContent> content) throws IOException
IOExceptionpublic RestrictedContentAdapter(String contextRoot)
public void service(org.glassfish.grizzly.http.server.Request gReq,
org.glassfish.grizzly.http.server.Response gResp)
service in class org.glassfish.grizzly.http.server.HttpHandlerpublic String contextRoot()
public void addContentIfAbsent(String relativeURIString, StaticContent newContent) throws IOException
IOExceptionpublic void addContentIfAbsent(Map<String,StaticContent> staticContent) throws IOException
IOExceptionprotected String relativizeURIString(String candidateContextRoot, String uriString)
protected boolean serviceContent(org.glassfish.grizzly.http.server.Request gReq,
org.glassfish.grizzly.http.server.Response gResp)
throws IOException
IOExceptionprotected boolean returnIfClientCacheIsCurrent(String relativeURIString, org.glassfish.grizzly.http.server.Request gReq, long contentTimestamp)
protected int contentStateToResponseStatus(Content content, URI requestURI) throws IOException
IOExceptionpublic void suspend()
public void resume()
protected void finishResponse(org.glassfish.grizzly.http.server.Response gResp,
int status)
protected void respondNotFound(org.glassfish.grizzly.http.server.Response gResp)
protected void finishSuccessResponse(org.glassfish.grizzly.http.server.Response gResp,
int status)
protected void finishErrorResponse(org.glassfish.grizzly.http.server.Response gResp,
int status)
protected String dumpContent()
protected String logPrefix()
Copyright © 2019. All rights reserved.