|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.invocation.http.server.HttpProxyFactory
Create an interface proxy that uses HTTP to communicate with the server side object that exposes the corresponding JMX invoke operation. Any request to this servlet receives a serialized object stream containing a MarshalledValue with the Naming proxy as its content.
Field Summary |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
HttpProxyFactory()
|
Method Summary | |
protected void |
checkInvokerURL()
Validate that the invokerURL is set, and if not build it from the invokerURLPrefix + host + invokerURLSuffix. |
protected Invoker (src) |
createInvoker()
Create the Invoker |
protected java.util.ArrayList |
defineDefaultInterceptors()
Build the default interceptor list. |
org.w3c.dom.Element |
getClientInterceptors()
|
java.lang.Class |
getExportedInterface()
Get the RMI compatible interface that the HttpInvokerProxy implements |
ObjectName (src) |
getInvokerName()
Get the server side mbean that exposes the invoke operation for the exported interface |
java.lang.String |
getInvokerURL()
Get the http URL to the InvokerServlet |
java.lang.String |
getInvokerURLPrefix()
If there is no invokerURL set, then one will be constructed via the concatenation of invokerURLPrefix + the local host + invokerURLSuffix. |
java.lang.String |
getInvokerURLSuffix()
If there is no invokerURL set, then one will be constructed via the concatenation of invokerURLPrefix + the local host + invokerURLSuffix. |
java.lang.String |
getJndiName()
Get the JNDI name under which the HttpInvokerProxy will be bound |
java.lang.Object |
getProxy()
Get the proxy instance created by the factory. |
java.lang.Object |
getProxy(java.lang.Object id)
Create a new proxy instance with the given id, no jndi name and all other settings the same as the jndi bound proxy. |
boolean |
getUseHostName()
A flag if the InetAddress.getHostName() or getHostAddress() method should be used as the host component of invokerURLPrefix + host + invokerURLSuffix. |
void |
setClientInterceptors(org.w3c.dom.Element config)
|
void |
setExportedInterface(java.lang.Class exportedInterface)
Set the RMI compatible interface that the HttpInvokerProxy implements |
void |
setInvokerName(ObjectName (src) jmxInvokerName)
Set the server side mbean that exposes the invoke operation for the exported interface |
void |
setInvokerURL(java.lang.String invokerURL)
Set the http URL to the InvokerServlet |
void |
setInvokerURLPrefix(java.lang.String invokerURLPrefix)
If there is no invokerURL set, then one will be constructed via the concatenation of invokerURLPrefix + the local host + invokerURLSuffix. |
void |
setInvokerURLSuffix(java.lang.String invokerURLSuffix)
If there is no invokerURL set, then one will be constructed via the concatenation of invokerURLPrefix + the local host + invokerURLSuffix. |
void |
setJndiName(java.lang.String jndiName)
Set the JNDI name under which the HttpInvokerProxy will be bound |
void |
setUseHostName(boolean flag)
A flag if the InetAddress.getHostName() or getHostAddress() method should be used as the host component of invokerURLPrefix + host + invokerURLSuffix. |
protected void |
startService()
Initializes the servlet. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Constructor Detail |
public HttpProxyFactory()
Method Detail |
public ObjectName (src) getInvokerName()
HttpProxyFactoryMBean (src)
getInvokerName
in interface HttpProxyFactoryMBean (src)
public void setInvokerName(ObjectName (src) jmxInvokerName)
HttpProxyFactoryMBean (src)
setInvokerName
in interface HttpProxyFactoryMBean (src)
public java.lang.String getJndiName()
HttpProxyFactoryMBean (src)
getJndiName
in interface HttpProxyFactoryMBean (src)
public void setJndiName(java.lang.String jndiName)
HttpProxyFactoryMBean (src)
setJndiName
in interface HttpProxyFactoryMBean (src)
public java.lang.String getInvokerURL()
HttpProxyFactoryMBean (src)
getInvokerURL
in interface HttpProxyFactoryMBean (src)
public void setInvokerURL(java.lang.String invokerURL)
HttpProxyFactoryMBean (src)
setInvokerURL
in interface HttpProxyFactoryMBean (src)
public java.lang.String getInvokerURLPrefix()
HttpProxyFactoryMBean (src)
getInvokerURLPrefix
in interface HttpProxyFactoryMBean (src)
public void setInvokerURLPrefix(java.lang.String invokerURLPrefix)
HttpProxyFactoryMBean (src)
setInvokerURLPrefix
in interface HttpProxyFactoryMBean (src)
public java.lang.String getInvokerURLSuffix()
HttpProxyFactoryMBean (src)
getInvokerURLSuffix
in interface HttpProxyFactoryMBean (src)
public void setInvokerURLSuffix(java.lang.String invokerURLSuffix)
HttpProxyFactoryMBean (src)
setInvokerURLSuffix
in interface HttpProxyFactoryMBean (src)
public boolean getUseHostName()
HttpProxyFactoryMBean (src)
getUseHostName
in interface HttpProxyFactoryMBean (src)
public void setUseHostName(boolean flag)
HttpProxyFactoryMBean (src)
setUseHostName
in interface HttpProxyFactoryMBean (src)
public java.lang.Class getExportedInterface()
HttpProxyFactoryMBean (src)
getExportedInterface
in interface HttpProxyFactoryMBean (src)
public void setExportedInterface(java.lang.Class exportedInterface)
HttpProxyFactoryMBean (src)
setExportedInterface
in interface HttpProxyFactoryMBean (src)
public org.w3c.dom.Element getClientInterceptors()
getClientInterceptors
in interface HttpProxyFactoryMBean (src)
public void setClientInterceptors(org.w3c.dom.Element config) throws java.lang.Exception
setClientInterceptors
in interface HttpProxyFactoryMBean (src)
java.lang.Exception
public java.lang.Object getProxy()
HttpProxyFactoryMBean (src)
getProxy
in interface HttpProxyFactoryMBean (src)
public java.lang.Object getProxy(java.lang.Object id)
HttpProxyFactoryMBean (src)
getProxy
in interface HttpProxyFactoryMBean (src)
protected void startService() throws java.lang.Exception
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected java.util.ArrayList defineDefaultInterceptors()
protected Invoker (src) createInvoker() throws java.lang.Exception
java.lang.Exception
protected void checkInvokerURL() throws java.net.UnknownHostException
java.net.UnknownHostException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |