org.apache.axis2.description
Class OutInAxisOperation

java.lang.Object
  extended byorg.apache.axis2.description.AxisDescription
      extended byorg.apache.axis2.description.AxisOperation
          extended byorg.apache.axis2.description.InOutAxisOperation
              extended byorg.apache.axis2.description.OutInAxisOperation
All Implemented Interfaces:
DescriptionConstants, ParameterInclude, org.apache.wsdl.WSDLConstants
Direct Known Subclasses:
RobustOutOnlyAxisOperation

public class OutInAxisOperation
extends InOutAxisOperation

Author: Deepal Jayasinghe Date: Oct 3, 2005 Time: 6:01:33 PM


Field Summary
 
Fields inherited from class org.apache.axis2.description.AxisOperation
SOAP_ACTION, STYLE_DOC, STYLE_MSG, STYLE_RPC
 
Fields inherited from interface org.apache.wsdl.WSDLConstants
MEP_CONSTANT_IN_ONLY, MEP_CONSTANT_IN_OPTIONAL_OUT, MEP_CONSTANT_IN_OUT, MEP_CONSTANT_INVALID, MEP_CONSTANT_OUT_IN, MEP_CONSTANT_OUT_ONLY, MEP_CONSTANT_OUT_OPTIONAL_IN, MEP_CONSTANT_ROBUST_IN_ONLY, MEP_CONSTANT_ROBUST_OUT_ONLY, MEP_URI_IN_ONLY, MEP_URI_IN_OPTIONAL_OUT, MEP_URI_IN_OUT, MEP_URI_OUT_IN, MEP_URI_OUT_ONLY, MEP_URI_OUT_OPTIONAL_IN, MEP_URI_ROBUST_IN_ONLY, MEP_URI_ROBUST_OUT_ONLY, MESSAGE_LABEL_FAULT_VALUE, MESSAGE_LABEL_IN, MESSAGE_LABEL_IN_VALUE, MESSAGE_LABEL_OUT, MESSAGE_LABEL_OUT_VALUE, WSDL_1_1, WSDL_2_0, WSDL_MESSAGE_DIRECTION_IN, WSDL_MESSAGE_DIRECTION_OUT, WSDL_USE_ENCODED, WSDL_USE_LITERAL, WSDL1_1_NAMESPACE, WSDL2_0_NAMESPACE
 
Fields inherited from interface org.apache.axis2.description.DescriptionConstants
CLASSLOADER_KEY, CONTEXTPATH_KEY, EXECUTION_CHAIN_KEY, EXECUTION_FAULT_CHAIN_KEY, EXECUTION_OUT_CHAIN_KEY, IN_FAULTFLOW_KEY, INFLOW_KEY, MESSAGE_RECEIVER_KEY, MODULEREF_KEY, OPERATION_KEY, OUT_FAULTFLOW_KEY, OUTFLOW_KEY, PARAMETER_KEY, PHASES_KEY, SERVICE_CLASS, SERVICE_CLASS_NAME, STYLE_KEY
 
Constructor Summary
OutInAxisOperation()
           
OutInAxisOperation(QName name)
           
 
Method Summary
 void addMessageContext(MessageContext msgContext, OperationContext opContext)
          Adds a message context into an operation context.
 OperationClient createClient(ServiceContext sc, Options options)
          Returns a MEP client for an Out-IN operation.
 
Methods inherited from class org.apache.axis2.description.InOutAxisOperation
addFaultMessageContext, addMessage, getMessage, getPhasesInFaultFlow, getPhasesOutFaultFlow, getPhasesOutFlow, getRemainingPhasesInFlow, setPhasesInFaultFlow, setPhasesOutFaultFlow, setPhasesOutFlow, setRemainingPhasesInFlow
 
Methods inherited from class org.apache.axis2.description.AxisOperation
addModule, addModuleConfig, addModuleOperations, disEngageModule, engageModule, findForExistingOperationContext, findOperationContext, getAxisSpecifMEPConstant, getEngagedModules, getKey, getMessageExchangePattern, getMessageReceiver, getModuleConfig, getModuleRefs, getName, getStyle, getWsamappingList, isControlOperation, isParameterLocked, registerOperationContext, removeFromEngageModueList, setControlOperation, setMessageExchangePattern, setMessageReceiver, setName, setStyle, setWsamappingList
 
Methods inherited from class org.apache.axis2.description.AxisDescription
addChild, addChild, addParameter, deserializeParameters, getChild, getChildren, getParameter, getParameters, getParent, getPolicyInclude, removeChild, setParent, setPolicyInclude
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutInAxisOperation

public OutInAxisOperation()

OutInAxisOperation

public OutInAxisOperation(QName name)
Method Detail

addMessageContext

public void addMessageContext(MessageContext msgContext,
                              OperationContext opContext)
                       throws AxisFault
Description copied from class: AxisOperation
Adds a message context into an operation context. Depending on MEPs, this method has to be overridden. Depending on the mep operation description know how to fill the message context map in operationContext. As an example, if the MEP is IN-OUT then depending on messagable operation description should know how to keep them in correct locations.

Overrides:
addMessageContext in class InOutAxisOperation
Throws:
AxisFault

createClient

public OperationClient createClient(ServiceContext sc,
                                    Options options)
Returns a MEP client for an Out-IN operation. This client can be used to interact with a server which is offering an In-Out operation. To use the client, you must call addMessageContext() with a message context and then call execute() to execute the client.

Overrides:
createClient in class AxisOperation
Parameters:
sc - The service context for this client to live within. Cannot be null.
options - Options to use as defaults for this client. If any options are set specifically on the client then those override options here.