public class StaticContentHandler
extends org.openqa.jetty.http.handler.ResourceHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
SERVER_DELAY |
| Constructor and Description |
|---|
StaticContentHandler(String debugURL,
boolean proxyInjectionMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStaticContent(ResourceLocator locator) |
protected void |
callSuperHandle(String pathInContext,
String pathParams,
org.openqa.jetty.http.HttpRequest httpRequest,
org.openqa.jetty.http.HttpResponse httpResponse) |
protected org.openqa.jetty.util.Resource |
getResource(String pathInContext) |
static boolean |
getSlowResources() |
void |
handle(String pathInContext,
String pathParams,
org.openqa.jetty.http.HttpRequest httpRequest,
org.openqa.jetty.http.HttpResponse httpResponse) |
void |
sendData(org.openqa.jetty.http.HttpRequest request,
org.openqa.jetty.http.HttpResponse response,
String pathInContext,
org.openqa.jetty.util.Resource resource,
boolean writeHeaders) |
static void |
setSlowResources(boolean slowResources) |
getAllowedMethods, getAllowedString, getMinGzipLength, getRedirectWelcome, handleGet, isAcceptRanges, isDirAllowed, isMethodAllowed, setAcceptRanges, setAllowedMethods, setDirAllowed, setMinGzipLength, setRedirectWelcome, start, stop, writeHeaderspublic static final int SERVER_DELAY
public StaticContentHandler(String debugURL, boolean proxyInjectionMode)
public void handle(String pathInContext, String pathParams, org.openqa.jetty.http.HttpRequest httpRequest, org.openqa.jetty.http.HttpResponse httpResponse) throws IOException
handle in interface org.openqa.jetty.http.HttpHandlerhandle in class org.openqa.jetty.http.handler.ResourceHandlerIOExceptionprotected void callSuperHandle(String pathInContext, String pathParams, org.openqa.jetty.http.HttpRequest httpRequest, org.openqa.jetty.http.HttpResponse httpResponse) throws IOException
IOExceptionprotected org.openqa.jetty.util.Resource getResource(String pathInContext) throws IOException
getResource in class org.openqa.jetty.http.handler.ResourceHandlerIOExceptionpublic void addStaticContent(ResourceLocator locator)
public void sendData(org.openqa.jetty.http.HttpRequest request,
org.openqa.jetty.http.HttpResponse response,
String pathInContext,
org.openqa.jetty.util.Resource resource,
boolean writeHeaders)
throws IOException
sendData in class org.openqa.jetty.http.handler.ResourceHandlerIOExceptionpublic static void setSlowResources(boolean slowResources)
public static boolean getSlowResources()
Copyright © 2015. All rights reserved.