|
|||||||||
| 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
Record the count that the same connector/port is referenced by other Tomcat listener instance |
static java.lang.String |
defaultVHost
|
static java.lang.String |
DOMAIN_NAME
JMX domain name for http listener |
static java.util.Map<java.lang.String,java.lang.Integer> |
hostReference
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)
|
void |
addContext(java.lang.String host,
org.apache.catalina.core.StandardContext ctx)
Add a StandardContext to a specific host |
void |
createConnector(java.lang.String address,
java.lang.String port,
java.util.List<KeyValuePair> properties)
Add a tomcat Connector to tomcat Enginer/Service |
void |
createHost(java.lang.String host)
Add a tomcat StandardHost to tomcat engine |
void |
destroyContext(javax.management.ObjectName contextName)
|
void |
destroyContext(java.lang.String host,
java.lang.String address,
java.lang.String port,
java.lang.String httpContext)
Destroy the created context. |
static HttpServerDelegate |
getInstance()
|
java.util.Set |
queryObjects(java.lang.String objectName)
Query objects |
void |
updateReference(java.util.Map refrenceMap,
java.lang.String key,
int increment)
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 java.util.Map<java.lang.String,java.lang.Integer> hostReference
public static java.util.Map<java.lang.String,java.lang.Integer> connectorReference
public static 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 occured
public 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 occured
public 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 occurs
public 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 destroy
public 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 occurs
public 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 | ||||||||