retrieveContextServletInfo
public org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData retrieveContextServletInfo(String context)
throws org.jboss.arquillian.container.spi.client.container.DeploymentException
Retrieves given context's servlets information through JMX.
How it works: 1) Get the WebModule, identified as //{host}/{contextPath} 2) Get it's path attrib 3) Get it's servlets
attrib, which is String[] which actually represents ObjectName[] 4) Get each of these Servlets and their mappings 5) For
each of {mapping}, do HTTPContext#add( new Servlet( "{mapping}", "//{host}/{contextPath}" ) );
// WebModule -> ... -> Attributes // -> path == /manager // -> servlets == String[] // ->
Catalina:j2eeType=Servlet,name=,WebModule=<...>,J2EEApplication =none,J2EEServer=none
- Parameters:
context -
- Returns:
- Throws:
org.jboss.arquillian.container.spi.client.container.DeploymentException