org.rhq.enterprise.server.remote
Class RemoteWsInvocationHandler

java.lang.Object
  extended by org.rhq.enterprise.server.remote.RemoteWsInvocationHandler
All Implemented Interfaces:
org.jboss.remoting.ServerInvocationHandler

public class RemoteWsInvocationHandler
extends Object
implements org.jboss.remoting.ServerInvocationHandler


Constructor Summary
RemoteWsInvocationHandler()
           
 
Method Summary
 void addListener(org.jboss.remoting.callback.InvokerCallbackHandler arg0)
           
static QName generateRemoteWebserviceQName(Class remote)
           
static URL generateRemoteWebserviceURL(Class remote, String host, int port, boolean useHttps)
          Dynamically builds the WSDL URL to connect to a remote server.
 Object invoke(org.jboss.remoting.InvocationRequest invocationRequest)
           
 void removeListener(org.jboss.remoting.callback.InvokerCallbackHandler arg0)
           
 void setInvoker(org.jboss.remoting.ServerInvoker arg0)
           
 void setMBeanServer(MBeanServer arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.remoting.ServerInvocationHandler
toString
 

Constructor Detail

RemoteWsInvocationHandler

public RemoteWsInvocationHandler()
Method Detail

addListener

public void addListener(org.jboss.remoting.callback.InvokerCallbackHandler arg0)
Specified by:
addListener in interface org.jboss.remoting.ServerInvocationHandler

invoke

public Object invoke(org.jboss.remoting.InvocationRequest invocationRequest)
              throws Throwable
Specified by:
invoke in interface org.jboss.remoting.ServerInvocationHandler
Throws:
Throwable

generateRemoteWebserviceURL

public static URL generateRemoteWebserviceURL(Class remote,
                                              String host,
                                              int port,
                                              boolean useHttps)
                                       throws MalformedURLException
Dynamically builds the WSDL URL to connect to a remote server.

Parameters:
remote - class correctly annotated with Webservice reference.
Returns:
valid URL
Throws:
MalformedURLException

generateRemoteWebserviceQName

public static QName generateRemoteWebserviceQName(Class remote)

removeListener

public void removeListener(org.jboss.remoting.callback.InvokerCallbackHandler arg0)
Specified by:
removeListener in interface org.jboss.remoting.ServerInvocationHandler

setInvoker

public void setInvoker(org.jboss.remoting.ServerInvoker arg0)
Specified by:
setInvoker in interface org.jboss.remoting.ServerInvocationHandler

setMBeanServer

public void setMBeanServer(MBeanServer arg0)
Specified by:
setMBeanServer in interface org.jboss.remoting.ServerInvocationHandler


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.