Class ServletMethodExecutor
- java.lang.Object
-
- org.jboss.arquillian.protocol.servlet5.ServletMethodExecutor
-
- All Implemented Interfaces:
org.jboss.arquillian.container.test.spi.ContainerMethodExecutor
public class ServletMethodExecutor extends Object implements org.jboss.arquillian.container.test.spi.ContainerMethodExecutor
ServletMethodExecutor- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
-
Field Summary
Fields Modifier and Type Field Description static StringARQUILLIAN_SERVLET_MAPPINGstatic StringARQUILLIAN_SERVLET_NAMEprotected org.jboss.arquillian.container.test.spi.command.CommandCallbackcallbackprotected ServletProtocolConfigurationconfigprotected ServletURIHandleruriHandler
-
Constructor Summary
Constructors Modifier Constructor Description protectedServletMethodExecutor()ServletMethodExecutor(ServletProtocolConfiguration config, Collection<org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext> contexts, org.jboss.arquillian.container.test.spi.command.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 org.jboss.arquillian.container.test.spi.command.CommandCallback callback
-
config
protected ServletProtocolConfiguration config
-
-
Constructor Detail
-
ServletMethodExecutor
protected ServletMethodExecutor()
-
ServletMethodExecutor
public ServletMethodExecutor(ServletProtocolConfiguration config, Collection<org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext> contexts, org.jboss.arquillian.container.test.spi.command.CommandCallback callback)
-
-
Method Detail
-
invoke
public org.jboss.arquillian.test.spi.TestResult invoke(org.jboss.arquillian.test.spi.TestMethodExecutor testMethodExecutor)
- Specified by:
invokein interfaceorg.jboss.arquillian.container.test.spi.ContainerMethodExecutor
-
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)
-
-