|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface specifies all the basic methods to allow communications with other components. Currently, this means calling userRequest, executeAsynchronousWidgetService and executeSynchronousWidgetService.
Method Summary | |
DataObject |
executeAsynchronousWidgetService(AsyncServiceHandler handler,
java.lang.String serviceHost,
int servicePort,
java.lang.String serviceId,
java.lang.String service,
java.lang.String function,
AttributeNameValues input,
java.lang.String requestTag)
This method requests that a widget execute an asynchronous service |
DataObject |
executeSynchronousWidgetService(java.lang.String remoteHost,
int remotePort,
java.lang.String remoteId,
java.lang.String service,
java.lang.String function,
AttributeNameValues input)
This method requests that a widget execute a synchronous service |
DataObject |
userRequest(DataObject data,
java.lang.String url)
Method that allows a component to communicate with another component. |
DataObject |
userRequest(DataObject data,
java.lang.String url,
java.lang.String server)
Method that allows a component to communicate with another component. |
DataObject |
userRequest(DataObject data,
java.lang.String url,
java.lang.String server,
int port)
Method that allows a component to communicate with another component. |
Method Detail |
public DataObject userRequest(DataObject data, java.lang.String url) throws EncodeException, InvalidProtocolException, ProtocolException, DecodeException, InvalidDecoderException, InvalidEncoderException
data
- DataObject that contains the requesturl
- RPC tag that indicates the type of requestpublic DataObject userRequest(DataObject data, java.lang.String url, java.lang.String server) throws EncodeException, InvalidProtocolException, ProtocolException, DecodeException, InvalidDecoderException, InvalidEncoderException
data
- DataObject that contains the requesturl
- RPC tag that indicates the type of requestserver
- Hostname of the component to communicate withpublic DataObject userRequest(DataObject data, java.lang.String url, java.lang.String server, int port) throws EncodeException, ProtocolException, InvalidProtocolException, DecodeException, InvalidDecoderException, InvalidEncoderException
data
- DataObject that contains the requesturl
- RPC tag that indicates the type of requestserver
- Hostname of the component to communicate withport
- Port number of the component to communicate withpublic DataObject executeAsynchronousWidgetService(AsyncServiceHandler handler, java.lang.String serviceHost, int servicePort, java.lang.String serviceId, java.lang.String service, java.lang.String function, AttributeNameValues input, java.lang.String requestTag)
handler
- Handler to handle the results of the serviceserviceHost
- Hostname of the widget with the serviceservicePort
- Port number of the widget with the serviceserviceId
- Id of the widget with the serviceservice
- Name of the widget service to runfunction
- Name of the particular service function to runinput
- AttributeNameValues object to use to execute the servicerequestTag
- Unique tag provided by caller to identify resultpublic DataObject executeSynchronousWidgetService(java.lang.String remoteHost, int remotePort, java.lang.String remoteId, java.lang.String service, java.lang.String function, AttributeNameValues input)
remoteHost
- Hostname of the widgetremotePort
- Port number of the widgetremoteId
- Id of the widgetservice
- Name of the widget service to runfunction
- Name of the particular service function to runinput
- AttributeNameValues object to use to execute the service
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |