Package org.apache.axis.description
Class OperationDesc
- java.lang.Object
-
- org.apache.axis.description.OperationDesc
-
- All Implemented Interfaces:
java.io.Serializable
public class OperationDesc extends java.lang.Object implements java.io.SerializableAn OperationDesc is an abstract description of an operation on a service. !!! WORK IN PROGRESS- Author:
- Glen Daniels (gdaniels@apache.org)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Loglogstatic java.util.MapmepStringsstatic intMSG_METHOD_BODYARRAYstatic intMSG_METHOD_DOCUMENTstatic intMSG_METHOD_ELEMENTARRAYstatic intMSG_METHOD_NONCONFORMINGstatic intMSG_METHOD_SOAPENVELOPE
-
Constructor Summary
Constructors Constructor Description OperationDesc()Default constructor.OperationDesc(java.lang.String name, ParameterDesc[] parameters, QName returnQName)"Complete" constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFault(FaultDesc fault)voidaddParameter(QName paramName, QName xmlType, java.lang.Class javaType, byte parameterMode, boolean inHeader, boolean outHeader)voidaddParameter(ParameterDesc param)java.util.ArrayListgetAllInParams()Return a list of ALL "in" params (including INOUTs) Note: if we were sure the order went IN->INOUT->OUT, we could optimize this.java.util.ArrayListgetAllOutParams()Return a list of ALL "out" params (including INOUTs) Note: if we were sure the order went IN->INOUT->OUT, we could optimize this.java.lang.StringgetDocumentation()get the documentation for the operationQNamegetElementQName()FaultDescgetFaultByClass(java.lang.Class cls)Returns the FaultDesc for the fault class given.FaultDescgetFaultByClass(java.lang.Class cls, boolean checkParents)Returns the FaultDesc for the fault class given.FaultDescgetFaultByQName(QName qname)Returns the FaultDesc for a QName (which is typically found in the details element of a SOAP fault).FaultDescgetFaultByXmlType(QName xmlType)Returns the FaultDesc for an XMLType.java.util.ArrayListgetFaults()ParameterDescgetInputParamByQName(QName qname)javax.wsdl.OperationTypegetMep()intgetMessageOperationStyle()java.lang.reflect.MethodgetMethod()java.lang.StringgetName()Return the operation's nameintgetNumInParams()intgetNumOutParams()intgetNumParams()java.util.ArrayListgetOutParams()Returns an ordered list of out params (NOT inouts)ParameterDescgetOutputParamByQName(QName qname)ParameterDescgetParamByQName(QName qname)ParameterDescgetParameter(int i)java.util.ArrayListgetParameters()ServiceDescgetParent()java.lang.ClassgetReturnClass()ParameterDescgetReturnParamDesc()QNamegetReturnQName()QNamegetReturnType()java.lang.StringgetSoapAction()StylegetStyle()Return the style of the operation, defaulting to the parent ServiceDesc's style if we don't have one explicitly set.UsegetUse()Return the use of the operation, defaulting to the parent ServiceDesc's use if we don't have one explicitly set.booleanisReturnHeader()Is the return value in the header of the response message?voidsetDocumentation(java.lang.String documentation)set the documentation for the operationvoidsetElementQName(QName elementQName)voidsetMep(java.lang.String mepString)Set the MEP using a string like "request-response"voidsetMep(javax.wsdl.OperationType mep)voidsetMessageOperationStyle(int messageOperationStyle)voidsetMethod(java.lang.reflect.Method method)voidsetName(java.lang.String name)Set the operation's namevoidsetParameters(java.util.ArrayList newParameters)Set the parameters wholesale.voidsetParent(ServiceDesc parent)voidsetReturnClass(java.lang.Class returnClass)voidsetReturnHeader(boolean value)Set whether the return value is in the response message.voidsetReturnQName(QName returnQName)voidsetReturnType(QName returnType)voidsetSoapAction(java.lang.String soapAction)voidsetStyle(Style style)voidsetUse(Use use)java.lang.StringtoString()java.lang.StringtoString(java.lang.String indent)
-
-
-
Field Detail
-
MSG_METHOD_BODYARRAY
public static final int MSG_METHOD_BODYARRAY
- See Also:
- Constant Field Values
-
MSG_METHOD_SOAPENVELOPE
public static final int MSG_METHOD_SOAPENVELOPE
- See Also:
- Constant Field Values
-
MSG_METHOD_ELEMENTARRAY
public static final int MSG_METHOD_ELEMENTARRAY
- See Also:
- Constant Field Values
-
MSG_METHOD_DOCUMENT
public static final int MSG_METHOD_DOCUMENT
- See Also:
- Constant Field Values
-
MSG_METHOD_NONCONFORMING
public static final int MSG_METHOD_NONCONFORMING
- See Also:
- Constant Field Values
-
mepStrings
public static java.util.Map mepStrings
-
log
protected static org.apache.commons.logging.Log log
-
-
Constructor Detail
-
OperationDesc
public OperationDesc()
Default constructor.
-
OperationDesc
public OperationDesc(java.lang.String name, ParameterDesc[] parameters, QName returnQName)"Complete" constructor
-
-
Method Detail
-
getName
public java.lang.String getName()
Return the operation's name
-
setName
public void setName(java.lang.String name)
Set the operation's name
-
getDocumentation
public java.lang.String getDocumentation()
get the documentation for the operation
-
setDocumentation
public void setDocumentation(java.lang.String documentation)
set the documentation for the operation
-
getReturnQName
public QName getReturnQName()
-
setReturnQName
public void setReturnQName(QName returnQName)
-
getReturnType
public QName getReturnType()
-
setReturnType
public void setReturnType(QName returnType)
-
getReturnClass
public java.lang.Class getReturnClass()
-
setReturnClass
public void setReturnClass(java.lang.Class returnClass)
-
getElementQName
public QName getElementQName()
-
setElementQName
public void setElementQName(QName elementQName)
-
getParent
public ServiceDesc getParent()
-
setParent
public void setParent(ServiceDesc parent)
-
getSoapAction
public java.lang.String getSoapAction()
-
setSoapAction
public void setSoapAction(java.lang.String soapAction)
-
setStyle
public void setStyle(Style style)
-
getStyle
public Style getStyle()
Return the style of the operation, defaulting to the parent ServiceDesc's style if we don't have one explicitly set.
-
setUse
public void setUse(Use use)
-
getUse
public Use getUse()
Return the use of the operation, defaulting to the parent ServiceDesc's use if we don't have one explicitly set.
-
addParameter
public void addParameter(ParameterDesc param)
-
addParameter
public void addParameter(QName paramName, QName xmlType, java.lang.Class javaType, byte parameterMode, boolean inHeader, boolean outHeader)
-
getParameter
public ParameterDesc getParameter(int i)
-
getParameters
public java.util.ArrayList getParameters()
-
setParameters
public void setParameters(java.util.ArrayList newParameters)
Set the parameters wholesale.- Parameters:
newParameters- an ArrayList of ParameterDescs
-
getNumInParams
public int getNumInParams()
-
getNumOutParams
public int getNumOutParams()
-
getNumParams
public int getNumParams()
-
getMethod
public java.lang.reflect.Method getMethod()
-
setMethod
public void setMethod(java.lang.reflect.Method method)
-
isReturnHeader
public boolean isReturnHeader()
Is the return value in the header of the response message?
-
setReturnHeader
public void setReturnHeader(boolean value)
Set whether the return value is in the response message.
-
getParamByQName
public ParameterDesc getParamByQName(QName qname)
-
getInputParamByQName
public ParameterDesc getInputParamByQName(QName qname)
-
getOutputParamByQName
public ParameterDesc getOutputParamByQName(QName qname)
-
getAllInParams
public java.util.ArrayList getAllInParams()
Return a list of ALL "in" params (including INOUTs) Note: if we were sure the order went IN->INOUT->OUT, we could optimize this.- Returns:
-
getAllOutParams
public java.util.ArrayList getAllOutParams()
Return a list of ALL "out" params (including INOUTs) Note: if we were sure the order went IN->INOUT->OUT, we could optimize this.- Returns:
-
getOutParams
public java.util.ArrayList getOutParams()
Returns an ordered list of out params (NOT inouts)
-
addFault
public void addFault(FaultDesc fault)
-
getFaults
public java.util.ArrayList getFaults()
-
getFaultByClass
public FaultDesc getFaultByClass(java.lang.Class cls)
Returns the FaultDesc for the fault class given. Returns null if not found.
-
getFaultByClass
public FaultDesc getFaultByClass(java.lang.Class cls, boolean checkParents)
Returns the FaultDesc for the fault class given. Returns null if not found.
-
getFaultByQName
public FaultDesc getFaultByQName(QName qname)
Returns the FaultDesc for a QName (which is typically found in the details element of a SOAP fault). Returns null if not found.
-
getFaultByXmlType
public FaultDesc getFaultByXmlType(QName xmlType)
Returns the FaultDesc for an XMLType. Returns null if not found.
-
getReturnParamDesc
public ParameterDesc getReturnParamDesc()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String indent)
-
getMessageOperationStyle
public int getMessageOperationStyle()
-
setMessageOperationStyle
public void setMessageOperationStyle(int messageOperationStyle)
-
getMep
public javax.wsdl.OperationType getMep()
-
setMep
public void setMep(javax.wsdl.OperationType mep)
-
setMep
public void setMep(java.lang.String mepString)
Set the MEP using a string like "request-response"- Parameters:
mepString-
-
-