|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.server.CachedContentTestHandler
public class CachedContentTestHandler
This test handler is only needed for testing caching. It prints out the current time, but instructs the browser to cache the result.
Constructor Summary | |
---|---|
CachedContentTestHandler()
|
Method Summary | |
---|---|
HttpContext |
getHttpContext()
|
java.lang.String |
getName()
Get the name of the handler. |
void |
handle(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest httpRequest,
HttpResponse res)
Handle a request. |
void |
initialize(HttpContext c)
|
boolean |
isStarted()
|
void |
start()
Start the LifeCycle. |
void |
stop()
Stop the LifeCycle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedContentTestHandler()
Method Detail |
---|
public void handle(java.lang.String pathInContext, java.lang.String pathParams, HttpRequest httpRequest, HttpResponse res) throws HttpException, java.io.IOException
HttpHandler
handle
in interface HttpHandler
pathInContext
- The context pathpathParams
- Path parameters such as encoded Session IDhttpRequest
- The HttpRequest requestres
- The HttpResponse response
HttpException
java.io.IOException
public java.lang.String getName()
HttpHandler
getName
in interface HttpHandler
public HttpContext getHttpContext()
getHttpContext
in interface HttpHandler
public void initialize(HttpContext c)
initialize
in interface HttpHandler
public void start() throws java.lang.Exception
LifeCycle
start
in interface LifeCycle
java.lang.Exception
- An arbitrary exception may be thrown.public void stop() throws java.lang.InterruptedException
LifeCycle
stop
in interface LifeCycle
java.lang.InterruptedException
- Stopping a lifecycle is rarely atomic
and may be interrupted by another thread. If this happens
InterruptedException is throw and the component will be in an
indeterminant state and should probably be discarded.public boolean isStarted()
isStarted
in interface LifeCycle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |