mod_cluster: Integration Tests 1.3.1.Alpha2

org.jboss.mod_cluster
Class JBossWeb

java.lang.Object
  extended by org.apache.catalina.core.StandardService
      extended by org.jboss.mod_cluster.JBossWeb
All Implemented Interfaces:
MBeanRegistration, org.apache.catalina.Lifecycle, org.apache.catalina.Service

public class JBossWeb
extends org.apache.catalina.core.StandardService


Field Summary
 
Fields inherited from class org.apache.catalina.core.StandardService
connectors, container, controller, DELAY_CONNECTOR_STARTUP, domain, entropy, executors, initialized, mapper, mapperListener, mserver, oname, random, suffix, support, type
 
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
 
Constructor Summary
JBossWeb(String route, String host)
           
JBossWeb(String route, String host, boolean nat)
           
JBossWeb(String route, String host, boolean nat, String webapp)
           
JBossWeb(String route, String host, boolean nat, String webapp, String[] Aliases)
          Returns a JBossWeb service to use in our embedded tests.
JBossWeb(String route, String host, String webapp)
           
 
Method Summary
 org.apache.catalina.connector.Connector addConnector(int port)
           
 org.apache.catalina.connector.Connector addConnector(int port, String scheme)
           
 org.apache.catalina.connector.Connector addConnector(int port, String protocol, String address)
           
 void addWAR(String file, String route)
           
 void removeContext(String path)
           
 void removeContext(String path, String hostname)
           
 
Methods inherited from class org.apache.catalina.core.StandardService
addConnector, addExecutor, addLifecycleListener, addPropertyChangeListener, destroy, findConnectors, findExecutors, findLifecycleListeners, getConnectorNames, getContainer, getContainerName, getDomain, getEntropy, getExecutor, getInfo, getMapper, getName, getObjectName, getRandom, getServer, init, initialize, postDeregister, postRegister, preDeregister, preRegister, removeConnector, removeExecutor, removeLifecycleListener, removePropertyChangeListener, setContainer, setEntropy, setName, setServer, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JBossWeb

public JBossWeb(String route,
                String host,
                boolean nat,
                String webapp,
                String[] Aliases)
         throws IOException
Returns a JBossWeb service to use in our embedded tests.

Parameters:
route - the JVMRoute of the corresponding node.
host - the name of the virtualhost
nat - indicated to use native or not.
webapp - name of webapp (ROOT maps as / and bla as /bla).
Aliasias - an array of String containing the Aliases names.
Throws:
IOException

JBossWeb

public JBossWeb(String route,
                String host)
         throws IOException
Throws:
IOException

JBossWeb

public JBossWeb(String route,
                String host,
                boolean nat)
         throws IOException
Throws:
IOException

JBossWeb

public JBossWeb(String route,
                String host,
                String webapp)
         throws IOException
Throws:
IOException

JBossWeb

public JBossWeb(String route,
                String host,
                boolean nat,
                String webapp)
         throws IOException
Throws:
IOException
Method Detail

addWAR

public void addWAR(String file,
                   String route)
            throws IOException
Throws:
IOException

addConnector

public org.apache.catalina.connector.Connector addConnector(int port)
                                                     throws Exception
Throws:
Exception

addConnector

public org.apache.catalina.connector.Connector addConnector(int port,
                                                            String scheme)
                                                     throws Exception
Throws:
Exception

addConnector

public org.apache.catalina.connector.Connector addConnector(int port,
                                                            String protocol,
                                                            String address)
                                                     throws Exception
Throws:
Exception

removeContext

public void removeContext(String path,
                          String hostname)

removeContext

public void removeContext(String path)

mod_cluster: Integration Tests 1.3.1.Alpha2

Copyright © 2014 JBoss by Red Hat. All rights reserved.