public class SeleniumHTMLRunnerResultsHandler extends Object implements HttpHandler
Constructor and Description |
---|
SeleniumHTMLRunnerResultsHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(HTMLResultsListener listener) |
HttpContext |
getHttpContext() |
String |
getName()
Get the name of the handler.
|
void |
handle(String pathInContext,
String pathParams,
HttpRequest request,
HttpResponse res)
Handle a request.
|
void |
initialize(HttpContext c) |
boolean |
isStarted() |
void |
start()
Start the LifeCycle.
|
void |
stop()
Stop the LifeCycle.
|
public void addListener(HTMLResultsListener listener)
public void handle(String pathInContext, String pathParams, HttpRequest request, HttpResponse res) throws HttpException, IOException
HttpHandler
handle
in interface HttpHandler
pathInContext
- The context pathpathParams
- Path parameters such as encoded Session IDrequest
- The HttpRequest requestres
- The HttpResponse responseHttpException
IOException
public 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 Exception
LifeCycle
public void stop() throws InterruptedException
LifeCycle
stop
in interface LifeCycle
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.Copyright © 2013. All rights reserved.