org.jboss.arquillian.protocol.servlet
Class BaseServletProtocol

java.lang.Object
  extended by org.jboss.arquillian.protocol.servlet.BaseServletProtocol
All Implemented Interfaces:
Protocol<ServletProtocolConfiguration>
Direct Known Subclasses:
ServletProtocol, ServletProtocol

public abstract class BaseServletProtocol
extends Object
implements Protocol<ServletProtocolConfiguration>

BaseServletProtocol

Version:
$Revision: $
Author:
Aslak Knutsen

Constructor Summary
BaseServletProtocol()
           
 
Method Summary
 ProtocolDescription getDescription()
          The registry name used for this protocol.
e.g.
 ServletMethodExecutor getExecutor(ServletProtocolConfiguration protocolConfiguration, ProtocolMetaData metaData, CommandCallback callback)
           
protected abstract  String getProtcolName()
           
 Class<ServletProtocolConfiguration> getProtocolConfigurationClass()
          Get the protocols configuration class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.arquillian.container.test.spi.client.protocol.Protocol
getPackager
 

Constructor Detail

BaseServletProtocol

public BaseServletProtocol()
Method Detail

getProtocolConfigurationClass

public Class<ServletProtocolConfiguration> getProtocolConfigurationClass()
Description copied from interface: Protocol
Get the protocols configuration class.
A instance of this class will be filled with the configuration data configured in e.g. arquillian.xml and passed back to #getExecutor(ProtocolConfiguration, ProtocolMetaData)

Specified by:
getProtocolConfigurationClass in interface Protocol<ServletProtocolConfiguration>
Returns:
The type used for configuration
See Also:
ProtocolConfiguration

getDescription

public ProtocolDescription getDescription()
Description copied from interface: Protocol
The registry name used for this protocol.
e.g. EJB, Servlet-2.5, Servlet-3.0

Specified by:
getDescription in interface Protocol<ServletProtocolConfiguration>
Returns:
The protocol name
See Also:
org.jboss.arquillian.api.OverProtocol

getExecutor

public ServletMethodExecutor getExecutor(ServletProtocolConfiguration protocolConfiguration,
                                         ProtocolMetaData metaData,
                                         CommandCallback callback)
Specified by:
getExecutor in interface Protocol<ServletProtocolConfiguration>
callback - A Callback for each event received from the remote container.
Returns:

getProtcolName

protected abstract String getProtcolName()


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.