org.jboss.soa.esb.listeners.gateway
Class HttpServerDelegate

java.lang.Object
  extended by org.jboss.soa.esb.listeners.gateway.HttpServerDelegate

Deprecated.

public class HttpServerDelegate
extends java.lang.Object

This class creates and starts the jboss esb tomcat engine. The tomcat Connector , Host , StandardContext are also can be created with this class.

Author:
Jim Ma

Field Summary
static java.util.Map<java.lang.String,java.lang.Integer> connectorReference
          Deprecated. Record the count that the same connector/port is referenced by other Tomcat listener instance
static java.lang.String defaultVHost
          Deprecated.  
static java.lang.String DOMAIN_NAME
          Deprecated. JMX domain name for http listener
static java.util.Map<java.lang.String,java.lang.Integer> hostReference
          Deprecated. Record the count that the same host name is referenced by other Tomcat listener instance
 
Method Summary
 void addContext(javax.management.ObjectName hostName, org.apache.catalina.core.StandardContext ctx)
          Deprecated.  
 void addContext(java.lang.String host, org.apache.catalina.core.StandardContext ctx)
          Deprecated. Add a StandardContext to a specific host
 void createConnector(java.lang.String address, java.lang.String port, java.util.List<KeyValuePair> properties)
          Deprecated. Add a tomcat Connector to tomcat Enginer/Service
 void createHost(java.lang.String host)
          Deprecated. Add a tomcat StandardHost to tomcat engine
 void destroyContext(javax.management.ObjectName contextName)
          Deprecated.  
 void destroyContext(java.lang.String host, java.lang.String address, java.lang.String port, java.lang.String httpContext)
          Deprecated. Destroy the created context.
static HttpServerDelegate getInstance()
          Deprecated.  
 java.util.Set queryObjects(java.lang.String objectName)
          Deprecated. Query objects
 void updateReference(java.util.Map refrenceMap, java.lang.String key, int increment)
          Deprecated. Update the reference value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultVHost

public static final java.lang.String defaultVHost
Deprecated. 
See Also:
Constant Field Values

hostReference

public static final java.util.Map<java.lang.String,java.lang.Integer> hostReference
Deprecated. 
Record the count that the same host name is referenced by other Tomcat listener instance


connectorReference

public static final java.util.Map<java.lang.String,java.lang.Integer> connectorReference
Deprecated. 
Record the count that the same connector/port is referenced by other Tomcat listener instance


DOMAIN_NAME

public static final java.lang.String DOMAIN_NAME
Deprecated. 
JMX domain name for http listener

See Also:
Constant Field Values
Method Detail

getInstance

public static HttpServerDelegate getInstance()
Deprecated. 

createHost

public void createHost(java.lang.String host)
                throws java.lang.Exception
Deprecated. 
Add a tomcat StandardHost to tomcat engine

Parameters:
host - tomcat vhost name
Throws:
java.lang.Exception - If there is error occured

createConnector

public void createConnector(java.lang.String address,
                            java.lang.String port,
                            java.util.List<KeyValuePair> properties)
                     throws java.lang.Exception
Deprecated. 
Add a tomcat Connector to tomcat Enginer/Service

Parameters:
address - the connector address
port - the connector port
properties - The properties to configure this connector
Throws:
java.lang.Exception - when error is occured

addContext

public void addContext(java.lang.String host,
                       org.apache.catalina.core.StandardContext ctx)
                throws java.lang.Exception
Deprecated. 
Add a StandardContext to a specific host

Parameters:
host - tomcat vhost name
ctx - new created StandardContext
Throws:
java.lang.Exception - when error occurs

addContext

public void addContext(javax.management.ObjectName hostName,
                       org.apache.catalina.core.StandardContext ctx)
                throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception

destroyContext

public void destroyContext(java.lang.String host,
                           java.lang.String address,
                           java.lang.String port,
                           java.lang.String httpContext)
                    throws java.lang.Exception
Deprecated. 
Destroy the created context. This method will also check if this context's parent StandardHost and Connector can be destroyed also. There are reference counters for Connector and Host

Parameters:
host - tomcat vhost name
address - the Connector address
port - port number
httpContext - the new created httpContext name
Throws:
java.lang.Exception - if failed to destroy

destroyContext

public void destroyContext(javax.management.ObjectName contextName)
                    throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception

queryObjects

public java.util.Set queryObjects(java.lang.String objectName)
                           throws java.lang.Exception
Deprecated. 
Query objects

Parameters:
objectName -
Returns:
Set contains ObjectName
Throws:
java.lang.Exception - error occurs

updateReference

public void updateReference(java.util.Map refrenceMap,
                            java.lang.String key,
                            int increment)
Deprecated. 
Update the reference value

Parameters:
refrenceMap - The reference map
key - Update key
increment - Update value