Package org.apache.axis.wsdl.symbolTable
Class BindingEntry
java.lang.Object
org.apache.axis.wsdl.symbolTable.SymTabEntry
org.apache.axis.wsdl.symbolTable.BindingEntry
This class represents a WSDL binding. It encompasses the WSDL4J Binding object so it can
reside in the SymbolTable. It also adds a few bits of information that are a nuisance to get
from the WSDL4J Binding object: binding type, binding style, input/output/fault body types.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Contains attributes for Operations - Body type: encoded or literal -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Field IN_HEADERstatic final int
Get the flag indicating what sort of header this part is.static final int
Field OUT_HEADERstatic final int
Field TYPE_HTTP_GETstatic final int
Field TYPE_HTTP_POSTstatic final int
Field TYPE_SOAPstatic final int
Field TYPE_UNKNOWNstatic final int
Field USE_ENCODEDstatic final int
Field USE_LITERALFields inherited from class org.apache.axis.wsdl.symbolTable.SymTabEntry
name, qname
-
Constructor Summary
ConstructorsConstructorDescriptionBindingEntry
(javax.wsdl.Binding binding) This is a minimal constructor.BindingEntry
(javax.wsdl.Binding binding, int bindingType, Style bindingStyle, boolean hasLiteral, HashMap attributes, Map mimeTypes, Map headerParts) Construct a BindingEntry from a WSDL4J Binding object and the additional binding info: binding type, binding style, whether there is any literal binding, and the attributes which contain the input/output/fault body type information. -
Method Summary
Modifier and TypeMethodDescriptionjavax.wsdl.Binding
Get this entry's WSDL4J Binding object.Get this entry's binding style.int
Get this entry's binding type.getFaultBodyType
(javax.wsdl.Operation operation, String faultName) Get the fault body type for the given fault of the given operation.Return the map of BindingOperations to ArraList of FaultBodyTypeGet the header parameter map.getInputBodyType
(javax.wsdl.Operation operation) Get the input body type for the given operation.getMIMEInfo
(String operationName, String parameterName) Get the mime mapping for the given parameter name.Get the MIME types map.Get aSet
of comprisedOperation
objects.getOutputBodyType
(javax.wsdl.Operation operation) Get the output body type for the given operation.Get all of the parameters for all operations.getParameters
(javax.wsdl.Operation operation) Get the Parameters object for the given operation.boolean
Do any of the message stanzas contain a soap:body which uses literal?boolean
isInHeaderPart
(String operationName, String partName) Is this part an input header part?.boolean
isOperationDIME
(String operationName) Check if this operation should use DIMEboolean
isOutHeaderPart
(String operationName, String partName) Is this part an output header part?.protected void
setBindingStyle
(Style bindingStyle) Set this entry's binding style.protected void
setBindingType
(int bindingType) Set this entry's binding type.protected void
setBodyType
(javax.wsdl.Operation operation, Use bodyType, boolean input) Set the body type for the given operation.protected void
setFaultBodyTypeMap
(javax.wsdl.Operation operation, HashMap faultBodyTypeMap) Set the fault body type map for the given operation.void
Method setFaultsprotected void
setHasLiteral
(boolean hasLiteral) Set the literal flag.void
setHeaderPart
(String operationName, String partName, int headerFlags) Set the header part mapping for the given part name.protected void
setInputBodyType
(javax.wsdl.Operation operation, Use inputBodyType) Set the input body type for the given operation.void
setMIMEInfo
(String operationName, String parameterName, String type, String dims) Set the mime mapping for the given parameter name.void
setOperationDIME
(String operationName) Mark the operation as a DIME operationprotected void
setOutputBodyType
(javax.wsdl.Operation operation, Use outputBodyType) Set the output body type for the given operation.void
setParameters
(HashMap parameters) Set the parameters for all operationsMethods inherited from class org.apache.axis.wsdl.symbolTable.SymTabEntry
getDynamicVar, getName, getQName, isReferenced, setDynamicVar, setIsReferenced, setName, toString, toString
-
Field Details
-
TYPE_SOAP
public static final int TYPE_SOAPField TYPE_SOAP- See Also:
-
TYPE_HTTP_GET
public static final int TYPE_HTTP_GETField TYPE_HTTP_GET- See Also:
-
TYPE_HTTP_POST
public static final int TYPE_HTTP_POSTField TYPE_HTTP_POST- See Also:
-
TYPE_UNKNOWN
public static final int TYPE_UNKNOWNField TYPE_UNKNOWN- See Also:
-
USE_ENCODED
public static final int USE_ENCODEDField USE_ENCODED- See Also:
-
USE_LITERAL
public static final int USE_LITERALField USE_LITERAL- See Also:
-
NO_HEADER
public static final int NO_HEADERGet the flag indicating what sort of header this part is.- See Also:
-
IN_HEADER
public static final int IN_HEADERField IN_HEADER- See Also:
-
OUT_HEADER
public static final int OUT_HEADERField OUT_HEADER- See Also:
-
-
Constructor Details
-
BindingEntry
public BindingEntry(javax.wsdl.Binding binding, int bindingType, Style bindingStyle, boolean hasLiteral, HashMap attributes, Map mimeTypes, Map headerParts) Construct a BindingEntry from a WSDL4J Binding object and the additional binding info: binding type, binding style, whether there is any literal binding, and the attributes which contain the input/output/fault body type information.- Parameters:
binding
-bindingType
-bindingStyle
-hasLiteral
-attributes
-mimeTypes
-headerParts
-
-
BindingEntry
public BindingEntry(javax.wsdl.Binding binding) This is a minimal constructor. Everything will be set up with defaults. If the defaults aren't desired, then the appropriate setter method should be called. The defaults are: bindingType = TYPE_UNKNOWN bindingStyle = DOCUMENT hasLiteral = false operation inputBodyTypes = USE_ENCODED operation outputBodyTypes = USE_ENCODED operation faultBodyTypes = USE_ENCODED mimeTypes = null The caller of this constructor should also call the various setter methods to fully fill out this object: setBindingType, setBindingStyle, setHasLiteral, setAttribute, setMIMEType.- Parameters:
binding
-
-
-
Method Details
-
getParameters
Get the Parameters object for the given operation.- Parameters:
operation
-- Returns:
-
getParameters
Get all of the parameters for all operations.- Returns:
-
setParameters
Set the parameters for all operations- Parameters:
parameters
-
-
getMIMEInfo
Get the mime mapping for the given parameter name. If there is none, this returns null.- Parameters:
operationName
-parameterName
-- Returns:
-
getMIMETypes
Get the MIME types map.- Returns:
-
setMIMEInfo
Set the mime mapping for the given parameter name.- Parameters:
operationName
-parameterName
-type
-dims
-
-
setOperationDIME
Mark the operation as a DIME operation- Parameters:
operationName
-
-
isOperationDIME
Check if this operation should use DIME- Parameters:
operationName
-- Returns:
-
isInHeaderPart
Is this part an input header part?.- Parameters:
operationName
-partName
-- Returns:
-
isOutHeaderPart
Is this part an output header part?.- Parameters:
operationName
-partName
-- Returns:
-
getHeaderParts
Get the header parameter map.- Returns:
-
setHeaderPart
Set the header part mapping for the given part name.- Parameters:
operationName
-partName
-headerFlags
-
-
getBinding
public javax.wsdl.Binding getBinding()Get this entry's WSDL4J Binding object.- Returns:
-
getBindingType
public int getBindingType()Get this entry's binding type. One of BindingEntry.TYPE_SOAP, BindingEntry.TYPE_HTTP_GET, BindingEntry.TYPE_HTTP_POST.- Returns:
-
setBindingType
protected void setBindingType(int bindingType) Set this entry's binding type.- Parameters:
bindingType
-
-
getBindingStyle
Get this entry's binding style.- Returns:
-
setBindingStyle
Set this entry's binding style.- Parameters:
bindingStyle
-
-
hasLiteral
public boolean hasLiteral()Do any of the message stanzas contain a soap:body which uses literal?- Returns:
-
setHasLiteral
protected void setHasLiteral(boolean hasLiteral) Set the literal flag.- Parameters:
hasLiteral
-
-
getInputBodyType
Get the input body type for the given operation.- Parameters:
operation
-- Returns:
-
setInputBodyType
Set the input body type for the given operation.- Parameters:
operation
-inputBodyType
-
-
getOutputBodyType
Get the output body type for the given operation.- Parameters:
operation
-- Returns:
-
setOutputBodyType
Set the output body type for the given operation.- Parameters:
operation
-outputBodyType
-
-
setBodyType
Set the body type for the given operation. If input is true, then this is the inputBodyType, otherwise it's the outputBodyType. (NOTE: this method exists to enable reusing some SymbolTable code.- Parameters:
operation
-bodyType
-input
-
-
getFaultBodyType
Get the fault body type for the given fault of the given operation.- Parameters:
operation
-faultName
-- Returns:
- Use.ENCODED or Use.LITERAL
-
getFaults
Return the map of BindingOperations to ArraList of FaultBodyType- Returns:
-
setFaults
Method setFaults- Parameters:
faults
-
-
getOperations
Get aSet
of comprisedOperation
objects.- Returns:
-
setFaultBodyTypeMap
Set the fault body type map for the given operation.- Parameters:
operation
-faultBodyTypeMap
-
-