***  This interface provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.events.broker.flowengine
Interface ResponseHandlerInterface

All Superinterfaces:
java.rmi.Remote
All Known Subinterfaces:
ProcessNodeHandlerInterface

public interface ResponseHandlerInterface
extends java.rmi.Remote

Interface to the runtime flowengine for handling responses from process nodes and dynamic listener applications.

For more information about the runtime flowengine, refer to its package description.

Usage

Handler that is used by process nodes and dynamic listeners to set responses that will be sent back to the originating event requestor (sending transport). This handler can also be used by process nodes and dynamic listeners to log messages to the deployed Logging Service.

Since:
1.0

Method Summary
 boolean isResponseRequired()
          Return whether or not a response is required.
 void log(java.lang.String message)
          Log a message in the EventBroker Service log.
 void setResponse(org.w3c.dom.DocumentFragment response)
          Set a response.
 void setResponse(java.lang.Object response)
          Set a response.
 void setResponse(java.lang.String response)
          Set a response.
 

Method Detail

isResponseRequired

boolean isResponseRequired()
                           throws java.rmi.RemoteException
Return whether or not a response is required.

A handling agent is not required to provide a response, but this method lets the agent know if a response is going to be sent to the originating client.

Returns:
true if a response is required; otherwise, false.
Throws:
java.rmi.RemoteException - if a network anomaly occurs.

setResponse

void setResponse(java.lang.String response)
                 throws java.rmi.RemoteException
Set a response.

The response is expected to be in XML format.

Parameters:
response - Response to be sent to the event originator.
Throws:
java.rmi.RemoteException - if a network anomaly occurs.

setResponse

void setResponse(org.w3c.dom.DocumentFragment response)
                 throws java.rmi.RemoteException
Set a response.

Parameters:
response - Response to be sent to the event originator.
Throws:
java.rmi.RemoteException - if a network anomaly occurs.

setResponse

void setResponse(java.lang.Object response)
                 throws java.rmi.RemoteException
Set a response.

Parameters:
response - Response to be sent to the event originator.
Throws:
java.rmi.RemoteException - if a network anomaly occurs.

log

void log(java.lang.String message)
         throws java.rmi.RemoteException
Log a message in the EventBroker Service log.

Allow process nodes or dynamic listeners to log their messages in the same log used by the broker.

Parameters:
message - message to log.
Throws:
java.rmi.RemoteException - if a network anomaly occurs.

***  This interface provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.