|
||||||||||
| 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 HttpHandlerpathInContext - The context pathpathParams - Path parameters such as encoded Session IDhttpRequest - The HttpRequest requestres - The HttpResponse response
HttpException
java.io.IOExceptionpublic java.lang.String getName()
HttpHandler
getName in interface HttpHandlerpublic HttpContext getHttpContext()
getHttpContext in interface HttpHandlerpublic void initialize(HttpContext c)
initialize in interface HttpHandler
public void start()
throws java.lang.Exception
LifeCycle
start in interface LifeCyclejava.lang.Exception - An arbitrary exception may be thrown.
public void stop()
throws java.lang.InterruptedException
LifeCycle
stop in interface LifeCyclejava.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 | |||||||||