org.openqa.selenium.server
Class StaticContentHandler
java.lang.Object
org.mortbay.http.handler.AbstractHttpHandler
org.mortbay.http.handler.ResourceHandler
org.openqa.selenium.server.StaticContentHandler
- All Implemented Interfaces:
- java.io.Serializable, org.mortbay.http.HttpHandler, org.mortbay.util.LifeCycle
public class StaticContentHandler
- extends org.mortbay.http.handler.ResourceHandler
- See Also:
- Serialized Form
Method Summary |
void |
addStaticContent(ResourceLocator locator)
|
protected org.mortbay.util.Resource |
getResource(java.lang.String pathInContext)
|
static boolean |
getSlowResources()
|
void |
handle(java.lang.String pathInContext,
java.lang.String pathParams,
org.mortbay.http.HttpRequest httpRequest,
org.mortbay.http.HttpResponse httpResponse)
|
void |
sendData(org.mortbay.http.HttpRequest request,
org.mortbay.http.HttpResponse response,
java.lang.String pathInContext,
org.mortbay.util.Resource resource,
boolean writeHeaders)
|
static void |
setSlowResources(boolean slowResources)
|
Methods inherited from class org.mortbay.http.handler.ResourceHandler |
getAllowedMethods, getAllowedString, getMinGzipLength, getRedirectWelcome, handleGet, isAcceptRanges, isDirAllowed, isMethodAllowed, setAcceptRanges, setAllowedMethods, setDirAllowed, setMinGzipLength, setRedirectWelcome, start, stop, writeHeaders |
Methods inherited from class org.mortbay.http.handler.AbstractHttpHandler |
getHttpContext, getName, handleTrace, initialize, isStarted, setName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SERVER_DELAY
public static final int SERVER_DELAY
- See Also:
- Constant Field Values
StaticContentHandler
public StaticContentHandler()
handle
public void handle(java.lang.String pathInContext,
java.lang.String pathParams,
org.mortbay.http.HttpRequest httpRequest,
org.mortbay.http.HttpResponse httpResponse)
throws org.mortbay.http.HttpException,
java.io.IOException
- Specified by:
handle
in interface org.mortbay.http.HttpHandler
- Overrides:
handle
in class org.mortbay.http.handler.ResourceHandler
- Throws:
org.mortbay.http.HttpException
java.io.IOException
getResource
protected org.mortbay.util.Resource getResource(java.lang.String pathInContext)
throws java.io.IOException
- Overrides:
getResource
in class org.mortbay.http.handler.ResourceHandler
- Throws:
java.io.IOException
addStaticContent
public void addStaticContent(ResourceLocator locator)
sendData
public void sendData(org.mortbay.http.HttpRequest request,
org.mortbay.http.HttpResponse response,
java.lang.String pathInContext,
org.mortbay.util.Resource resource,
boolean writeHeaders)
throws java.io.IOException
- Overrides:
sendData
in class org.mortbay.http.handler.ResourceHandler
- Throws:
java.io.IOException
setSlowResources
public static void setSlowResources(boolean slowResources)
getSlowResources
public static boolean getSlowResources()
Copyright © {inceptionYear}-2007 null. All Rights Reserved.