public class ServletMethodExecutor extends java.lang.Object implements ContainerMethodExecutor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARQUILLIAN_SERVLET_MAPPING |
static java.lang.String |
ARQUILLIAN_SERVLET_NAME |
protected CommandCallback |
callback |
protected ServletProtocolConfiguration |
config |
private static java.util.logging.Logger |
log |
protected ServletURIHandler |
uriHandler |
Modifier | Constructor and Description |
---|---|
protected |
ServletMethodExecutor() |
|
ServletMethodExecutor(ServletProtocolConfiguration config,
java.util.Collection<HTTPContext> contexts,
CommandCallback callback) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Timer |
createCommandServicePullTimer(java.lang.String eventUrl) |
protected <T> T |
execute(java.lang.String url,
java.lang.Class<T> returnType,
java.lang.Object requestObject) |
protected <T> T |
executeWithRetry(java.lang.String url,
java.lang.Class<T> type) |
TestResult |
invoke(TestMethodExecutor testMethodExecutor)
Invoke a test method deployed in the container.
|
protected void |
prepareHttpConnection(java.net.HttpURLConnection connection) |
private static final java.util.logging.Logger log
public static final java.lang.String ARQUILLIAN_SERVLET_NAME
public static final java.lang.String ARQUILLIAN_SERVLET_MAPPING
protected ServletURIHandler uriHandler
protected CommandCallback callback
protected ServletProtocolConfiguration config
protected ServletMethodExecutor()
public ServletMethodExecutor(ServletProtocolConfiguration config, java.util.Collection<HTTPContext> contexts, CommandCallback callback)
public TestResult invoke(TestMethodExecutor testMethodExecutor)
ContainerMethodExecutor
invoke
in interface ContainerMethodExecutor
protected <T> T executeWithRetry(java.lang.String url, java.lang.Class<T> type) throws java.lang.Exception
java.lang.Exception
protected <T> T execute(java.lang.String url, java.lang.Class<T> returnType, java.lang.Object requestObject) throws java.lang.Exception
java.lang.Exception
protected void prepareHttpConnection(java.net.HttpURLConnection connection)
protected java.util.Timer createCommandServicePullTimer(java.lang.String eventUrl)