|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.systemservices.module.AbstractModule
org.iids.aos.webservices.wsgateway.WSGatewayPublishModule
public class WSGatewayPublishModule
Module that allows agent services to be accessible over SOAP messages. This module sits as a layer between an AgentProxy and the incoming requests over HTTP.
| Constructor Summary | |
|---|---|
WSGatewayPublishModule(Communicator comm,
AgentHandle boot)
Start the publish module. |
|
| Method Summary | |
|---|---|
boolean |
isStarted()
|
void |
publishService(java.lang.String name,
AgentHandle handle,
java.lang.String className,
byte[] jar)
Publish an agent service through the WSDL gateway. |
void |
start()
|
void |
stop()
TODO also temporarily stop the proxies etc? |
void |
unPublishService(java.lang.String serviceName)
Deregister a service from the gateway. |
| Methods inherited from class org.iids.aos.systemservices.module.AbstractModule |
|---|
getCommunicator, getModuleName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WSGatewayPublishModule(Communicator comm,
AgentHandle boot)
comm - A Communicator. What more can I say?boot - A local handle used to create new handles from (for proxies)| Method Detail |
|---|
public void start()
public void stop()
public boolean isStarted()
public void publishService(java.lang.String name,
AgentHandle handle,
java.lang.String className,
byte[] jar)
throws WSGatewayException
name - The name of the service to publishhandle - Handle the service uses to receive request.className - Main-Class name of the service. The interface and
WSDL documents are generated from this class.jar - A jar file containing all the bytecode for the
classes that implement the service and the parameters.
This is required because these classes may be internal
to the agent, and these need to be locally available
otherwise the proxies will not work.
WSGatewayException - The service cannot be published for some reason.
public void unPublishService(java.lang.String serviceName)
throws WSGatewayException
serviceName - The name of the service to deregister.
WSGatewayException - If the service cannot be unpublished.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||