org.iids.aos.webservices.wsgateway
Class WSGatewayMainModule
java.lang.Object
org.iids.aos.systemservices.module.AbstractModule
org.iids.aos.systemservices.module.AbstractRunnableModule
org.iids.aos.webservices.wsgateway.WSGatewayMainModule
- All Implemented Interfaces:
- java.lang.Runnable, Module
public class WSGatewayMainModule
- extends AbstractRunnableModule
Implements the WSGateway interface, and handles requests from agents.
- Author:
- Patrick Verkaik
- See Also:
WSGateway
|
Field Summary |
static int |
LS_REG_DURATION
Duration of a lookup service registration, in seconds. |
static int |
LS_REG_INTERVAL
Lookup service reregistration interval, in seconds. |
static java.lang.String |
MODULE_NAME
|
|
Method Summary |
void |
pulse()
|
int |
requestWSDLAccess(java.lang.String wsdl,
java.lang.String serviceName,
java.lang.String serviceNameSpace,
java.lang.Boolean exclTransport,
AgentHandle handle)
|
int |
requestWSDLAccessWithExceptions(java.lang.String wsdl,
java.lang.String serviceName,
java.lang.String serviceNameSpace,
boolean exclTransport,
AgentHandle handle)
|
java.lang.String |
sendSOAPRequest(java.lang.String request,
java.lang.String portName,
java.lang.Integer leaseID,
AgentHandle handle)
|
java.lang.String |
sendSOAPRequestWithExceptions(java.lang.String request,
java.lang.String portName,
int leaseID,
AgentHandle handle)
|
void |
shutdown()
Each abstract RUNNABLE module implementation must implement the shutdown
method, which is called whenever the module is stopped (by AbstractRunnableModule.stop())
from the superclass. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODULE_NAME
public static final java.lang.String MODULE_NAME
- See Also:
- Constant Field Values
LS_REG_DURATION
public static final int LS_REG_DURATION
- Duration of a lookup service registration, in seconds.
- See Also:
- Constant Field Values
LS_REG_INTERVAL
public static final int LS_REG_INTERVAL
- Lookup service reregistration interval, in seconds.
- See Also:
- Constant Field Values
WSGatewayMainModule
public WSGatewayMainModule(Communicator comm)
shutdown
public void shutdown()
- Description copied from class:
AbstractRunnableModule
- Each abstract RUNNABLE module implementation must implement the shutdown
method, which is called whenever the module is stopped (by
AbstractRunnableModule.stop())
from the superclass.
- Specified by:
shutdown in class AbstractRunnableModule
pulse
public void pulse()
- Specified by:
pulse in class AbstractRunnableModule
requestWSDLAccess
public int requestWSDLAccess(java.lang.String wsdl,
java.lang.String serviceName,
java.lang.String serviceNameSpace,
java.lang.Boolean exclTransport,
AgentHandle handle)
throws org.apache.xmlrpc.XmlRpcException
- Throws:
org.apache.xmlrpc.XmlRpcException
requestWSDLAccessWithExceptions
public int requestWSDLAccessWithExceptions(java.lang.String wsdl,
java.lang.String serviceName,
java.lang.String serviceNameSpace,
boolean exclTransport,
AgentHandle handle)
throws NoExclusiveTransport,
CouldNotParseWSDL,
java.net.MalformedURLException
- Throws:
NoExclusiveTransport
CouldNotParseWSDL
java.net.MalformedURLException
sendSOAPRequest
public java.lang.String sendSOAPRequest(java.lang.String request,
java.lang.String portName,
java.lang.Integer leaseID,
AgentHandle handle)
throws org.apache.xmlrpc.XmlRpcException
- Throws:
org.apache.xmlrpc.XmlRpcException
sendSOAPRequestWithExceptions
public java.lang.String sendSOAPRequestWithExceptions(java.lang.String request,
java.lang.String portName,
int leaseID,
AgentHandle handle)
throws LeaseExpired,
UnknownPort,
MalformedSOAPRequest,
java.rmi.RemoteException
- Throws:
LeaseExpired
UnknownPort
MalformedSOAPRequest
java.rmi.RemoteException
Copyright © 2003, 2004 IIDS Group. All Rights Reserved.