|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.listeners.gateway.HttpServerDelegate
public class HttpServerDelegate
This class creates and starts the jboss esb tomcat engine. The tomcat Connector , Host , StandardContext are also can be created with this class.
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 |
---|
public static final java.lang.String defaultVHost
public static final java.util.Map<java.lang.String,java.lang.Integer> hostReference
public static final java.util.Map<java.lang.String,java.lang.Integer> connectorReference
public static final java.lang.String DOMAIN_NAME
Method Detail |
---|
public static HttpServerDelegate getInstance()
public void createHost(java.lang.String host) throws java.lang.Exception
host
- tomcat vhost name
java.lang.Exception
- If there is error occuredpublic void createConnector(java.lang.String address, java.lang.String port, java.util.List<KeyValuePair> properties) throws java.lang.Exception
address
- the connector addressport
- the connector portproperties
- The properties to configure this connector
java.lang.Exception
- when error is occuredpublic void addContext(java.lang.String host, org.apache.catalina.core.StandardContext ctx) throws java.lang.Exception
host
- tomcat vhost namectx
- new created StandardContext
java.lang.Exception
- when error occurspublic void addContext(javax.management.ObjectName hostName, org.apache.catalina.core.StandardContext ctx) throws java.lang.Exception
java.lang.Exception
public void destroyContext(java.lang.String host, java.lang.String address, java.lang.String port, java.lang.String httpContext) throws java.lang.Exception
host
- tomcat vhost nameaddress
- the Connector addressport
- port numberhttpContext
- the new created httpContext name
java.lang.Exception
- if failed to destroypublic void destroyContext(javax.management.ObjectName contextName) throws java.lang.Exception
java.lang.Exception
public java.util.Set queryObjects(java.lang.String objectName) throws java.lang.Exception
objectName
-
java.lang.Exception
- error occurspublic void updateReference(java.util.Map refrenceMap, java.lang.String key, int increment)
refrenceMap
- The reference mapkey
- Update keyincrement
- Update value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |