Fields Summary |
---|
public static final int | TYPE_SOAPField TYPE_SOAP |
public static final int | TYPE_HTTP_GETField TYPE_HTTP_GET |
public static final int | TYPE_HTTP_POSTField TYPE_HTTP_POST |
public static final int | TYPE_UNKNOWNField TYPE_UNKNOWN |
public static final int | USE_ENCODEDField USE_ENCODED |
public static final int | USE_LITERALField USE_LITERAL |
private javax.wsdl.Binding | bindingField binding |
private int | bindingTypeField bindingType |
private org.apache.axis.constants.Style | bindingStyleField bindingStyle |
private boolean | hasLiteralField hasLiteral |
private HashMap | attributesField attributes |
private HashMap | parametersField parameters |
private HashMap | faultsField faults |
private Map | mimeTypesField mimeTypes |
private Map | headerPartsField headerParts |
private ArrayList | dimeOpsField dimeOps |
public static final int | NO_HEADERGet the flag indicating what sort of header this part is. |
public static final int | IN_HEADERField IN_HEADER |
public static final int | OUT_HEADERField OUT_HEADER |
Methods Summary |
---|
public javax.wsdl.Binding | getBinding()Get this entry's WSDL4J Binding object.
return binding;
|
public org.apache.axis.constants.Style | getBindingStyle()Get this entry's binding style.
return bindingStyle;
|
public int | getBindingType()Get this entry's binding type. One of BindingEntry.TYPE_SOAP, BindingEntry.TYPE_HTTP_GET,
BindingEntry.TYPE_HTTP_POST.
return bindingType;
|
public org.apache.axis.constants.Use | getFaultBodyType(javax.wsdl.Operation operation, java.lang.String faultName)Get the fault body type for the given fault of the given operation.
OperationAttr attr = (OperationAttr) attributes.get(operation);
if (attr == null) {
return Use.ENCODED; // should really create an exception for this.
} else {
HashMap m = attr.getFaultBodyTypeMap();
SOAPFault soapFault = (SOAPFault) m.get(faultName);
// This should never happen (error thrown in SymbolTable)
if (soapFault == null) {
return Use.ENCODED;
}
String use = soapFault.getUse();
if ("literal".equals(use)) {
return Use.LITERAL;
}
return Use.ENCODED;
}
|
public java.util.HashMap | getFaults()Return the map of BindingOperations to ArraList of FaultBodyType
return faults;
|
public java.util.Map | getHeaderParts()Get the header parameter map.
return headerParts;
|
public org.apache.axis.constants.Use | getInputBodyType(javax.wsdl.Operation operation)Get the input body type for the given operation.
OperationAttr attr = (OperationAttr) attributes.get(operation);
if (attr == null) {
return Use.ENCODED; // should really create an exception for this.
} else {
return attr.getInputBodyType();
}
|
public MimeInfo | getMIMEInfo(java.lang.String operationName, java.lang.String parameterName)Get the mime mapping for the given parameter name.
If there is none, this returns null.
Map opMap = (Map) mimeTypes.get(operationName);
if (opMap == null) {
return null;
} else {
return (MimeInfo) opMap.get(parameterName);
}
|
public java.util.Map | getMIMETypes()Get the MIME types map.
return mimeTypes;
|
public java.util.Set | getOperations()Get a {@link Set} of comprised {@link Operation} objects.
return attributes.keySet();
|
public org.apache.axis.constants.Use | getOutputBodyType(javax.wsdl.Operation operation)Get the output body type for the given operation.
OperationAttr attr = (OperationAttr) attributes.get(operation);
if (attr == null) {
return Use.ENCODED; // should really create an exception for this.
} else {
return attr.getOutputBodyType();
}
|
public Parameters | getParameters(javax.wsdl.Operation operation)Get the Parameters object for the given operation.
return (Parameters) parameters.get(operation);
|
public java.util.HashMap | getParameters()Get all of the parameters for all operations.
return parameters;
|
public boolean | hasLiteral()Do any of the message stanzas contain a soap:body which uses literal?
return hasLiteral;
|
private int | headerPart(java.lang.String operationName, java.lang.String partName)Get the mime mapping for the given part name.
If there is none, this returns null.
Map opMap = (Map) headerParts.get(operationName);
if (opMap == null) {
return NO_HEADER;
} else {
Integer I = (Integer) opMap.get(partName);
return (I == null)
? NO_HEADER
: I.intValue();
}
|
public boolean | isInHeaderPart(java.lang.String operationName, java.lang.String partName)Is this part an input header part?.
return (headerPart(operationName, partName) & IN_HEADER) > 0;
|
public boolean | isOperationDIME(java.lang.String operationName)Check if this operation should use DIME
return (dimeOps.indexOf(operationName) >= 0);
|
public boolean | isOutHeaderPart(java.lang.String operationName, java.lang.String partName)Is this part an output header part?.
return (headerPart(operationName, partName) & OUT_HEADER) > 0;
|
protected void | setBindingStyle(org.apache.axis.constants.Style bindingStyle)Set this entry's binding style.
this.bindingStyle = bindingStyle;
|
protected void | setBindingType(int bindingType)Set this entry's binding type.
if ((bindingType >= TYPE_SOAP) && (bindingType <= TYPE_UNKNOWN)) {
}
this.bindingType = bindingType;
|
protected void | setBodyType(javax.wsdl.Operation operation, org.apache.axis.constants.Use bodyType, boolean input)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.
if (input) {
setInputBodyType(operation, bodyType);
} else {
setOutputBodyType(operation, bodyType);
}
|
protected void | setFaultBodyTypeMap(javax.wsdl.Operation operation, java.util.HashMap faultBodyTypeMap)Set the fault body type map for the given operation.
OperationAttr attr = (OperationAttr) attributes.get(operation);
if (attr == null) {
attr = new OperationAttr();
attributes.put(operation, attr);
}
attr.setFaultBodyTypeMap(faultBodyTypeMap);
|
public void | setFaults(java.util.HashMap faults)Method setFaults
this.faults = faults;
|
protected void | setHasLiteral(boolean hasLiteral)Set the literal flag.
this.hasLiteral = hasLiteral;
|
public void | setHeaderPart(java.lang.String operationName, java.lang.String partName, int headerFlags)Set the header part mapping for the given part name.
Map opMap = (Map) headerParts.get(operationName);
if (opMap == null) {
opMap = new HashMap();
headerParts.put(operationName, opMap);
}
Integer I = (Integer) opMap.get(partName);
int i = (I == null)
? headerFlags
: (I.intValue() | headerFlags);
opMap.put(partName, new Integer(i));
|
protected void | setInputBodyType(javax.wsdl.Operation operation, org.apache.axis.constants.Use inputBodyType)Set the input body type for the given operation.
OperationAttr attr = (OperationAttr) attributes.get(operation);
if (attr == null) {
attr = new OperationAttr();
attributes.put(operation, attr);
}
attr.setInputBodyType(inputBodyType);
if (inputBodyType == Use.LITERAL) {
setHasLiteral(true);
}
|
public void | setMIMEInfo(java.lang.String operationName, java.lang.String parameterName, java.lang.String type, java.lang.String dims)Set the mime mapping for the given parameter name.
Map opMap = (Map) mimeTypes.get(operationName);
if (opMap == null) {
opMap = new HashMap();
mimeTypes.put(operationName, opMap);
}
opMap.put(parameterName, new MimeInfo(type, dims));
|
public void | setOperationDIME(java.lang.String operationName)Mark the operation as a DIME operation
if (dimeOps.indexOf(operationName) == -1) {
dimeOps.add(operationName);
}
|
protected void | setOutputBodyType(javax.wsdl.Operation operation, org.apache.axis.constants.Use outputBodyType)Set the output body type for the given operation.
OperationAttr attr = (OperationAttr) attributes.get(operation);
if (attr == null) {
attr = new OperationAttr();
attributes.put(operation, attr);
}
attr.setOutputBodyType(outputBodyType);
if (outputBodyType == Use.LITERAL) {
setHasLiteral(true);
}
|
public void | setParameters(java.util.HashMap parameters)Set the parameters for all operations
this.parameters = parameters;
|