Class ServletMethodExecutor
- java.lang.Object
-
- org.jboss.arquillian.protocol.servlet.ServletMethodExecutor
-
- All Implemented Interfaces:
ContainerMethodExecutor
public class ServletMethodExecutor extends Object implements ContainerMethodExecutor
ServletMethodExecutor- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
-
Field Summary
Fields Modifier and Type Field Description static StringARQUILLIAN_SERVLET_MAPPINGstatic StringARQUILLIAN_SERVLET_NAMEprotected CommandCallbackcallbackprotected ServletProtocolConfigurationconfigprotected ServletURIHandleruriHandler
-
Constructor Summary
Constructors Modifier Constructor Description protectedServletMethodExecutor()ServletMethodExecutor(ServletProtocolConfiguration config, Collection<HTTPContext> contexts, CommandCallback callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TimercreateCommandServicePullTimer(String eventUrl, Lock timerLock, AtomicBoolean isCanceled)protected <T> Texecute(String url, Class<T> returnType, Object requestObject)protected <T> TexecuteWithRetry(String url, Class<T> type)org.jboss.arquillian.test.spi.TestResultinvoke(org.jboss.arquillian.test.spi.TestMethodExecutor testMethodExecutor)protected voidprepareHttpConnection(HttpURLConnection connection)
-
-
-
Field Detail
-
ARQUILLIAN_SERVLET_NAME
public static final String ARQUILLIAN_SERVLET_NAME
- See Also:
- Constant Field Values
-
ARQUILLIAN_SERVLET_MAPPING
public static final String ARQUILLIAN_SERVLET_MAPPING
- See Also:
- Constant Field Values
-
uriHandler
protected ServletURIHandler uriHandler
-
callback
protected CommandCallback callback
-
config
protected ServletProtocolConfiguration config
-
-
Constructor Detail
-
ServletMethodExecutor
protected ServletMethodExecutor()
-
ServletMethodExecutor
public ServletMethodExecutor(ServletProtocolConfiguration config, Collection<HTTPContext> contexts, CommandCallback callback)
-
-
Method Detail
-
invoke
public org.jboss.arquillian.test.spi.TestResult invoke(org.jboss.arquillian.test.spi.TestMethodExecutor testMethodExecutor)
- Specified by:
invokein interfaceContainerMethodExecutor
-
executeWithRetry
protected <T> T executeWithRetry(String url, Class<T> type) throws Exception
- Throws:
Exception
-
execute
protected <T> T execute(String url, Class<T> returnType, Object requestObject) throws Exception
- Throws:
Exception
-
prepareHttpConnection
protected void prepareHttpConnection(HttpURLConnection connection)
-
createCommandServicePullTimer
protected Timer createCommandServicePullTimer(String eventUrl, Lock timerLock, AtomicBoolean isCanceled)
-
-