Package org.apache.axis2.description
Class OutOnlyAxisOperation
- java.lang.Object
-
- org.apache.axis2.description.AxisDescription
-
- org.apache.axis2.description.AxisOperation
-
- org.apache.axis2.description.OutOnlyAxisOperation
-
- All Implemented Interfaces:
DescriptionConstants
,ParameterInclude
,WSDLConstants
public class OutOnlyAxisOperation extends AxisOperation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.axis2.wsdl.WSDLConstants
WSDLConstants.WSDL11Constants
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
OUT_MESSAGE_KEY
-
Fields inherited from class org.apache.axis2.description.AxisOperation
mepURI, STYLE_DOC, STYLE_MSG, STYLE_RPC
-
Fields inherited from class org.apache.axis2.description.AxisDescription
engagedModules, parameterObservers, parent
-
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_NAME, STYLE_KEY
-
Fields inherited from interface org.apache.axis2.wsdl.WSDLConstants
HTTP_HEADER, INPUT_PART_QNAME_SUFFIX, 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, MESSAGE_LABEL_FAULT_VALUE, MESSAGE_LABEL_IN, MESSAGE_LABEL_IN_VALUE, MESSAGE_LABEL_OUT, MESSAGE_LABEL_OUT_VALUE, OUTPUT_PART_QNAME_SUFFIX, SOAP_HEADER, WSDL_1_1, WSDL_1_1_STYLE, WSDL_2_0, WSDL_20_DESCRIPTION, WSDL_4_J_DEFINITION, WSDL_MESSAGE_DIRECTION_IN, WSDL_MESSAGE_DIRECTION_OUT, WSDL_MESSAGE_IN_MESSAGE, WSDL_MESSAGE_OUT_MESSAGE, WSDL_USE_ENCODED, WSDL_USE_LITERAL, WSDL1_1_NAMESPACE, WSDL2_0_NAMESPACE
-
-
Constructor Summary
Constructors Constructor Description OutOnlyAxisOperation()
OutOnlyAxisOperation(QName name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFaultMessageContext(MessageContext msgContext, OperationContext opContext)
void
addMessage(AxisMessage message, String label)
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-only operation.AxisMessage
getMessage(String label)
ArrayList
getPhasesInFaultFlow()
ArrayList
getPhasesOutFaultFlow()
ArrayList
getPhasesOutFlow()
ArrayList
getRemainingPhasesInFlow()
void
setPhasesInFaultFlow(ArrayList list)
void
setPhasesOutFaultFlow(ArrayList list)
void
setPhasesOutFlow(ArrayList list)
void
setRemainingPhasesInFlow(ArrayList list)
-
Methods inherited from class org.apache.axis2.description.AxisOperation
addFaultAction, addModule, addModuleConfig, findForExistingOperationContext, findOperationContext, getAxisService, getAxisSpecificMEPConstant, getFaultAction, getFaultAction, getFaultActionNames, getFaultMessages, getInputAction, getKey, getMessageExchangePattern, getMessageReceiver, getMessages, getModuleConfig, getModuleRefs, getName, getOutputAction, getSoapAction, getStyle, getWSAMappingList, isControlOperation, isParameterLocked, onDisengage, onEngage, registerMessageContext, registerOperationContext, removeFaultAction, setControlOperation, setFaultMessages, setMessageExchangePattern, setMessageReceiver, setName, setOutputAction, setSoapAction, setStyle, setWsamappingList
-
Methods inherited from class org.apache.axis2.description.AxisDescription
addChild, addChild, addParameter, addParameter, addParameterObserver, applyPolicy, applyPolicy, deserializeParameters, disengageModule, engageModule, engageModule, getAxisConfiguration, getChild, getChildren, getDocumentation, getDocumentationNode, getEngagedModules, getParameter, getParameters, getParameterValue, getParent, getPolicyInclude, getPolicySubject, isEngaged, isEngaged, isParameterTrue, removeChild, removeParameter, removeParameterObserver, setDocumentation, setDocumentation, setParent, setPolicyInclude
-
-
-
-
Field Detail
-
OUT_MESSAGE_KEY
protected static final String OUT_MESSAGE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OutOnlyAxisOperation
public OutOnlyAxisOperation()
-
OutOnlyAxisOperation
public OutOnlyAxisOperation(QName name)
-
-
Method Detail
-
addMessage
public void addMessage(AxisMessage message, String label)
- Specified by:
addMessage
in classAxisOperation
-
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.- Specified by:
addMessageContext
in classAxisOperation
- Parameters:
msgContext
-MessageContext
opContext
-OperationContext
- Throws:
AxisFault
-AxisFault
-
addFaultMessageContext
public void addFaultMessageContext(MessageContext msgContext, OperationContext opContext) throws AxisFault
- Specified by:
addFaultMessageContext
in classAxisOperation
- Throws:
AxisFault
-
getMessage
public AxisMessage getMessage(String label)
- Specified by:
getMessage
in classAxisOperation
-
getPhasesInFaultFlow
public ArrayList getPhasesInFaultFlow()
- Specified by:
getPhasesInFaultFlow
in classAxisOperation
-
getPhasesOutFaultFlow
public ArrayList getPhasesOutFaultFlow()
- Specified by:
getPhasesOutFaultFlow
in classAxisOperation
-
getPhasesOutFlow
public ArrayList getPhasesOutFlow()
- Specified by:
getPhasesOutFlow
in classAxisOperation
-
getRemainingPhasesInFlow
public ArrayList getRemainingPhasesInFlow()
- Specified by:
getRemainingPhasesInFlow
in classAxisOperation
-
setPhasesInFaultFlow
public void setPhasesInFaultFlow(ArrayList list)
- Specified by:
setPhasesInFaultFlow
in classAxisOperation
-
setPhasesOutFaultFlow
public void setPhasesOutFaultFlow(ArrayList list)
- Specified by:
setPhasesOutFaultFlow
in classAxisOperation
-
setPhasesOutFlow
public void setPhasesOutFlow(ArrayList list)
- Specified by:
setPhasesOutFlow
in classAxisOperation
-
setRemainingPhasesInFlow
public void setRemainingPhasesInFlow(ArrayList list)
- Specified by:
setRemainingPhasesInFlow
in classAxisOperation
-
createClient
public OperationClient createClient(ServiceContext sc, Options options)
Returns a MEP client for an Out-only operation. This client can be used to interact with a server which is offering an In-only operation. To use the client, you must call addMessageContext() with a message context and then call execute() to execute the client. Note that the execute method's block parameter is ignored by this client and also the setMessageReceiver method cannot be used.- Specified by:
createClient
in classAxisOperation
- 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.- Returns:
- an OperationClient set up appropriately for this operation
-
-