|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface supports creation of appropriate FlowAction objects as a result of a mediation flow.
Each execution of a mediation flow uses a separate, single instance of this factory class. The factory is responsible for enforcing invocation policy for the Callouts, Result and Fault resulting from a request flow.
Field Summary | |
---|---|
static java.lang.String |
$sccsid
|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
void |
complete()
This method indicates that the set of FlowActions is complete and that they should be completed if deferred completion was set. |
FlowAction |
create(Callout callout)
Create a FlowAction of the appropriate type for the given message. |
FlowAction |
create(Fault fault)
Create a FlowAction of the appropriate type for the Fault. |
FlowAction |
create(InlineCall call)
Create a FlowAction of the appropriate type for the InlineCall. |
FlowAction |
create(Result r)
Create a FlowAction of the appropriate type for the Result. |
long |
getAsyncTimeout()
Gets the timeout time for outbound async requests. |
java.lang.String |
getComponentName()
Gets the component name for this FlowAction factory. |
java.lang.String |
getModuleName()
Gets the module name for this FlowAction factory. |
com.ibm.wsspi.sca.message.Message |
getResultMessage()
Gets the result message. |
com.ibm.websphere.sibx.smobo.ServiceMessageObject |
getSMO()
Gets the SMO message that represents the request or the response. |
FlowAction |
locate(java.lang.String key,
java.lang.String moduleName)
Locate the FlowAction with the given key. |
void |
setFault(com.ibm.websphere.sibx.smobo.ServiceMessageObject fault)
Sets the message to be a fault containing the given SMO. |
void |
setReply(com.ibm.websphere.sibx.smobo.ServiceMessageObject reply)
Sets the message to be a reply containing the given SMO. |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String $sccsid
Method Detail |
public FlowAction create(Callout callout) throws FlowActionPolicyException, FlowActionException
callout
- The Callout.
FlowActionPolicyException
- If the invocation policy is violated.
FlowActionException
- An error occurred creating the FlowAction instance.public FlowAction create(Result r) throws FlowActionPolicyException, FlowActionException
r
- The Result.
FlowActionPolicyException
- If the invocation policy is violated.
FlowActionException
- An error occurred creating the FlowAction instance.public FlowAction create(Fault fault) throws FlowActionPolicyException, FlowActionException
fault
- The Fault.
FlowActionPolicyException
- If the invocation policy is violated.
FlowActionException
- An error occurred creating the FlowAction instance.public FlowAction create(InlineCall call) throws FlowActionPolicyException, FlowActionException
call
- The InlineCall.
FlowActionPolicyException
- If the invocation policy is violated.
FlowActionException
- An error occurred creating the FlowAction instance.public FlowAction locate(java.lang.String key, java.lang.String moduleName) throws FlowActionException
This removes the mapping from key to FlowAction.
key
- The key that the FlowAction was stored with.moduleName
- The name of the module.
FlowActionException
- An error occurred locating the FlowAction instance.public void complete() throws FlowActionException
FlowActionException
- An error occurred making an invocation.public void setReply(com.ibm.websphere.sibx.smobo.ServiceMessageObject reply) throws FlowActionException
The message could be the original request message or the reply message.
reply
- The SMO reply message.
FlowActionException
- An error occurred setting the reply.public void setFault(com.ibm.websphere.sibx.smobo.ServiceMessageObject fault) throws FlowActionException
The message could be the original request message or the reply message.
fault
- The SMO fault message.
FlowActionException
- An error occurred setting the reply.public long getAsyncTimeout()
public java.lang.String getComponentName()
public java.lang.String getModuleName()
public com.ibm.wsspi.sca.message.Message getResultMessage()
This returns the original request transformed into a result, whether the flow was called synchronously or asynchronously.
In the asynchronous case for the request message, the result returned has an empty body. In all other cases the result contains the reply body.
public com.ibm.websphere.sibx.smobo.ServiceMessageObject getSMO()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |