public class ResultConfig extends Object
Constructor and Description |
---|
ResultConfig(String url,
Class<? extends RestishHandler> handlerClazz,
DriverSessions sessions,
Logger log) |
Modifier and Type | Method and Description |
---|---|
protected void |
addHandlerAttributesToRequest(HttpRequest request,
RestishHandler handler) |
boolean |
equals(Object o) |
RestishHandler |
getHandler(String url,
org.openqa.selenium.remote.SessionId sessionId) |
Throwable |
getRootExceptionCause(Throwable originalException) |
void |
handle(String pathInfo,
HttpRequest request,
HttpResponse response) |
int |
hashCode() |
boolean |
isFor(String urlToMatch) |
ResultConfig |
on(ResultType resultType,
Renderer renderer)
Configures this instance to handle a particular type of result with the given renderer.
|
ResultConfig |
on(ResultType success,
Renderer renderer,
String mimeType) |
ResultConfig |
on(ResultType type,
Result result)
Configures how this instance will handle specific types of results.
|
protected RestishHandler |
populate(RestishHandler handler,
String pathString) |
public ResultConfig(String url, Class<? extends RestishHandler> handlerClazz, DriverSessions sessions, Logger log)
public RestishHandler getHandler(String url, org.openqa.selenium.remote.SessionId sessionId) throws Exception
Exception
public boolean isFor(String urlToMatch)
protected RestishHandler populate(RestishHandler handler, String pathString)
public ResultConfig on(ResultType resultType, Renderer renderer)
resultType
- The type of result to configure.renderer
- The renderer to use.on(ResultType, Result)
public ResultConfig on(ResultType success, Renderer renderer, String mimeType)
public ResultConfig on(ResultType type, Result result)
type
- The type of result to configure for.result
- The handler for the given result type.public void handle(String pathInfo, HttpRequest request, HttpResponse response) throws Exception
Exception
protected void addHandlerAttributesToRequest(HttpRequest request, RestishHandler handler) throws Exception
Exception
Copyright © 2013. All Rights Reserved.