private static class DriverServlet.StaticResourceHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
HUB_HTML_PATH |
private static com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.net.MediaType> |
MIME_TYPES |
private static java.lang.String |
STATIC_RESOURCE_BASE_PATH |
| Modifier | Constructor and Description |
|---|---|
private |
StaticResourceHandler() |
| Modifier and Type | Method and Description |
|---|---|
private byte[] |
getResourceData(java.net.URL url) |
boolean |
isStaticResourceRequest(javax.servlet.http.HttpServletRequest request) |
void |
redirectToHub(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
private static final com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.net.MediaType> MIME_TYPES
private static final java.lang.String STATIC_RESOURCE_BASE_PATH
private static final java.lang.String HUB_HTML_PATH
public boolean isStaticResourceRequest(javax.servlet.http.HttpServletRequest request)
public void redirectToHub(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
java.io.IOExceptionpublic void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
java.io.IOExceptionprivate byte[] getResourceData(java.net.URL url)
throws java.io.IOException
java.io.IOException