|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport 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 |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
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 |
createInvoker()
Create the Invoker |
protected ArrayList |
defineDefaultInterceptors()
Build the default interceptor list. |
Element |
getClientInterceptors()
|
Class |
getExportedInterface()
Get the RMI compatible interface that the HttpInvokerProxy implements |
javax.management.ObjectName |
getInvokerName()
Get the server side mbean that exposes the invoke operation for the exported interface |
String |
getInvokerURL()
Get the http URL to the InvokerServlet |
String |
getInvokerURLPrefix()
If there is no invokerURL set, then one will be constructed via the concatenation of invokerURLPrefix + the local host + invokerURLSuffix. |
String |
getInvokerURLSuffix()
If there is no invokerURL set, then one will be constructed via the concatenation of invokerURLPrefix + the local host + invokerURLSuffix. |
String |
getJndiName()
Get the JNDI name under which the HttpInvokerProxy will be bound |
Object |
getProxy()
Get the proxy instance created by the factory. |
Object |
getProxy(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(Element config)
|
void |
setExportedInterface(Class exportedInterface)
Set the RMI compatible interface that the HttpInvokerProxy implements |
void |
setInvokerName(javax.management.ObjectName jmxInvokerName)
Set the server side mbean that exposes the invoke operation for the exported interface |
void |
setInvokerURL(String invokerURL)
Set the http URL to the InvokerServlet |
void |
setInvokerURLPrefix(String invokerURLPrefix)
If there is no invokerURL set, then one will be constructed via the concatenation of invokerURLPrefix + the local host + invokerURLSuffix. |
void |
setInvokerURLSuffix(String invokerURLSuffix)
If there is no invokerURL set, then one will be constructed via the concatenation of invokerURLPrefix + the local host + invokerURLSuffix. |
void |
setJndiName(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()
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
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 |
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 |
create, destroy, start, stop |
Constructor Detail |
public HttpProxyFactory()
Method Detail |
public javax.management.ObjectName getInvokerName()
HttpProxyFactoryMBean
getInvokerName
in interface HttpProxyFactoryMBean
public void setInvokerName(javax.management.ObjectName jmxInvokerName)
HttpProxyFactoryMBean
setInvokerName
in interface HttpProxyFactoryMBean
public String getJndiName()
HttpProxyFactoryMBean
getJndiName
in interface HttpProxyFactoryMBean
public void setJndiName(String jndiName)
HttpProxyFactoryMBean
setJndiName
in interface HttpProxyFactoryMBean
public String getInvokerURL()
HttpProxyFactoryMBean
getInvokerURL
in interface HttpProxyFactoryMBean
public void setInvokerURL(String invokerURL)
HttpProxyFactoryMBean
setInvokerURL
in interface HttpProxyFactoryMBean
public String getInvokerURLPrefix()
HttpProxyFactoryMBean
getInvokerURLPrefix
in interface HttpProxyFactoryMBean
public void setInvokerURLPrefix(String invokerURLPrefix)
HttpProxyFactoryMBean
setInvokerURLPrefix
in interface HttpProxyFactoryMBean
public String getInvokerURLSuffix()
HttpProxyFactoryMBean
getInvokerURLSuffix
in interface HttpProxyFactoryMBean
public void setInvokerURLSuffix(String invokerURLSuffix)
HttpProxyFactoryMBean
setInvokerURLSuffix
in interface HttpProxyFactoryMBean
public boolean getUseHostName()
HttpProxyFactoryMBean
getUseHostName
in interface HttpProxyFactoryMBean
public void setUseHostName(boolean flag)
HttpProxyFactoryMBean
setUseHostName
in interface HttpProxyFactoryMBean
public Class getExportedInterface()
HttpProxyFactoryMBean
getExportedInterface
in interface HttpProxyFactoryMBean
public void setExportedInterface(Class exportedInterface)
HttpProxyFactoryMBean
setExportedInterface
in interface HttpProxyFactoryMBean
public Element getClientInterceptors()
getClientInterceptors
in interface HttpProxyFactoryMBean
public void setClientInterceptors(Element config) throws Exception
setClientInterceptors
in interface HttpProxyFactoryMBean
Exception
public Object getProxy()
HttpProxyFactoryMBean
getProxy
in interface HttpProxyFactoryMBean
public Object getProxy(Object id)
HttpProxyFactoryMBean
getProxy
in interface HttpProxyFactoryMBean
protected void startService() throws Exception
Exception
protected void stopService() throws Exception
Exception
protected ArrayList defineDefaultInterceptors()
protected Invoker createInvoker() throws Exception
Exception
protected void checkInvokerURL() throws UnknownHostException
UnknownHostException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |