public class OperationDesc extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
static int |
MSG_METHOD_BODYARRAY |
static int |
MSG_METHOD_DOCUMENT |
static int |
MSG_METHOD_ELEMENTARRAY |
static int |
MSG_METHOD_NONCONFORMING |
static int |
MSG_METHOD_SOAPENVELOPE |
Constructor and Description |
---|
OperationDesc()
Default constructor.
|
OperationDesc(String name,
ParameterDesc[] parameters,
QName returnQName)
"Complete" constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addFault(FaultDesc fault) |
void |
addParameter(ParameterDesc param) |
void |
addParameter(QName paramName,
QName xmlType,
Class javaType,
byte parameterMode,
boolean inHeader,
boolean outHeader) |
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.
|
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.
|
String |
getDocumentation()
get the documentation for the operation
|
QName |
getElementQName() |
FaultDesc |
getFaultByClass(Class cls)
Returns the FaultDesc for the fault class given.
|
FaultDesc |
getFaultByClass(Class cls,
boolean checkParents)
Returns the FaultDesc for the fault class given.
|
FaultDesc |
getFaultByQName(QName qname)
Returns the FaultDesc for a QName (which is typically found
in the details element of a SOAP fault).
|
FaultDesc |
getFaultByXmlType(QName xmlType)
Returns the FaultDesc for an XMLType.
|
ArrayList |
getFaults() |
ParameterDesc |
getInputParamByQName(QName qname) |
javax.wsdl.OperationType |
getMep() |
String |
getMepString()
Get the MEP as a string.
|
int |
getMessageOperationStyle() |
Method |
getMethod() |
String |
getName()
Return the operation's name
|
int |
getNumInParams() |
int |
getNumOutParams() |
int |
getNumParams() |
ArrayList |
getOutParams()
Returns an ordered list of out params (NOT inouts)
|
ParameterDesc |
getOutputParamByQName(QName qname) |
ParameterDesc |
getParamByQName(QName qname) |
ParameterDesc |
getParameter(int i) |
ArrayList |
getParameters() |
ServiceDesc |
getParent() |
Class |
getReturnClass() |
ParameterDesc |
getReturnParamDesc() |
QName |
getReturnQName() |
QName |
getReturnType() |
String |
getSoapAction() |
Style |
getStyle()
Return the style of the operation, defaulting to the parent
ServiceDesc's style if we don't have one explicitly set.
|
Use |
getUse()
Return the use of the operation, defaulting to the parent
ServiceDesc's use if we don't have one explicitly set.
|
boolean |
isReturnHeader()
Is the return value in the header of the response message?
|
void |
setDocumentation(String documentation)
set the documentation for the operation
|
void |
setElementQName(QName elementQName) |
void |
setMep(javax.wsdl.OperationType mep) |
void |
setMep(String mepString)
Set the MEP using a string like "request-response"
|
void |
setMessageOperationStyle(int messageOperationStyle) |
void |
setMethod(Method method) |
void |
setName(String name)
Set the operation's name
|
void |
setParameters(ArrayList newParameters)
Set the parameters wholesale.
|
void |
setParent(ServiceDesc parent) |
void |
setReturnClass(Class returnClass) |
void |
setReturnHeader(boolean value)
Set whether the return value is in the response message.
|
void |
setReturnQName(QName returnQName) |
void |
setReturnType(QName returnType) |
void |
setSoapAction(String soapAction) |
void |
setStyle(Style style) |
void |
setUse(Use use) |
String |
toString() |
String |
toString(String indent) |
public static final int MSG_METHOD_BODYARRAY
public static final int MSG_METHOD_SOAPENVELOPE
public static final int MSG_METHOD_ELEMENTARRAY
public static final int MSG_METHOD_DOCUMENT
public static final int MSG_METHOD_NONCONFORMING
protected static org.apache.commons.logging.Log log
public OperationDesc()
public OperationDesc(String name, ParameterDesc[] parameters, QName returnQName)
public String getName()
public void setName(String name)
public String getDocumentation()
public void setDocumentation(String documentation)
public QName getReturnQName()
public void setReturnQName(QName returnQName)
public QName getReturnType()
public void setReturnType(QName returnType)
public Class getReturnClass()
public void setReturnClass(Class returnClass)
public QName getElementQName()
public void setElementQName(QName elementQName)
public ServiceDesc getParent()
public void setParent(ServiceDesc parent)
public String getSoapAction()
public void setSoapAction(String soapAction)
public void setStyle(Style style)
public Style getStyle()
public void setUse(Use use)
public Use getUse()
public void addParameter(ParameterDesc param)
public void addParameter(QName paramName, QName xmlType, Class javaType, byte parameterMode, boolean inHeader, boolean outHeader)
public ParameterDesc getParameter(int i)
public ArrayList getParameters()
public void setParameters(ArrayList newParameters)
newParameters
- an ArrayList of ParameterDescspublic int getNumInParams()
public int getNumOutParams()
public int getNumParams()
public Method getMethod()
public void setMethod(Method method)
public boolean isReturnHeader()
public void setReturnHeader(boolean value)
public ParameterDesc getParamByQName(QName qname)
public ParameterDesc getInputParamByQName(QName qname)
public ParameterDesc getOutputParamByQName(QName qname)
public ArrayList getAllInParams()
public ArrayList getAllOutParams()
public ArrayList getOutParams()
public void addFault(FaultDesc fault)
public ArrayList getFaults()
public FaultDesc getFaultByClass(Class cls)
public FaultDesc getFaultByClass(Class cls, boolean checkParents)
public FaultDesc getFaultByQName(QName qname)
public FaultDesc getFaultByXmlType(QName xmlType)
public ParameterDesc getReturnParamDesc()
public int getMessageOperationStyle()
public void setMessageOperationStyle(int messageOperationStyle)
public javax.wsdl.OperationType getMep()
public void setMep(javax.wsdl.OperationType mep)
public String getMepString()
public void setMep(String mepString)
mepString
- Copyright © The Apache Software Foundation. All Rights Reserved.