Class DescriptionUtils
java.lang.Object
org.apache.axis2.jaxws.description.impl.DescriptionUtils
Utilities used throughout the Description package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgetAttachmentFromBinding(org.apache.axis2.jaxws.description.impl.OperationDescriptionImpl opDesc, javax.wsdl.Binding binding) This method will process a WSDL Binding and build AttachmentDescription objects if the WSDL dicatates attachments.static BooleangetBooleanValue(String value) Utility method for converting a String value into a boolean.static StringgetNamespaceFromSOAPElement(List extElements) This method will loop through a list of extensibility elements looking for one of four objects: SOAPBody, SOAP12Body, SOAPHeader, SOAP12Header.static booleanDetermine is this method is an async methodstatic HandlerChainsTypeloadHandlerChains(InputStream is, ClassLoader classLoader) static StringmapBindingTypeAnnotationToWsdl(String annotationBindingType) Given a binding type value based on a JAXWS anntation, return the corresponding WSDL binding type.static StringmapBindingTypeWsdlToAnnotation(String wsdlBindingType, String soapTransport) Given a binding type value based on WSDL, return the corresponding JAXWS annotation value.static InputStreamopenHandlerConfigStream(String configFile, String className, ClassLoader classLoader) This is a helper method that will open a stream to an @HandlerChain configuration file.static voidregisterHandlerHeaders(org.apache.axis2.description.AxisService axisService, List<jakarta.xml.ws.handler.Handler> handlers)
-
Constructor Details
-
DescriptionUtils
public DescriptionUtils()
-
-
Method Details
-
openHandlerConfigStream
public static InputStream openHandlerConfigStream(String configFile, String className, ClassLoader classLoader) This is a helper method that will open a stream to an @HandlerChain configuration file.- Parameters:
configFile- - The path to the fileclassName- - The class in which the annotation was declared. This is used in case the file path is relative.classLoader- - ClassLoader used to load relative file paths.- Returns:
-
isAsync
Determine is this method is an async method- Parameters:
method- - The method to examine- Returns:
-
loadHandlerChains
-
getNamespaceFromSOAPElement
This method will loop through a list of extensibility elements looking for one of four objects: SOAPBody, SOAP12Body, SOAPHeader, SOAP12Header. If any of these objects are found the namespace URI from this object will be returned. -
getAttachmentFromBinding
public static void getAttachmentFromBinding(org.apache.axis2.jaxws.description.impl.OperationDescriptionImpl opDesc, javax.wsdl.Binding binding) This method will process a WSDL Binding and build AttachmentDescription objects if the WSDL dicatates attachments. -
registerHandlerHeaders
public static void registerHandlerHeaders(org.apache.axis2.description.AxisService axisService, List<jakarta.xml.ws.handler.Handler> handlers) -
mapBindingTypeAnnotationToWsdl
Given a binding type value based on a JAXWS anntation, return the corresponding WSDL binding type. The JAXWS annotation values understood are those returned by mapBindingTypeWsdltoAnnotation.- Parameters:
annotationBindingType- The binding type as represented by a JAXWS annotation value- Returns:
- The binding type as represented by a WSDL binding extension namespace value
- See Also:
-
mapBindingTypeWsdlToAnnotation
Given a binding type value based on WSDL, return the corresponding JAXWS annotation value. The WSDL binding type values are based on the namespace of the binding extension element. The JAXWS annotation values correspond to the values to the HTTPBinding and SOAPBinding annotations. Additionally, proprietary values for JMS bindings are supported. The JAXWS binding type annotation values returned could be from SOAPBinding or HTTPBinding.- Parameters:
wsdlBindingType- The binding type as represnted by the WSDL binding extension namespacesoapTransport- The WSDL transport. Used to determine if a JMS binding type should be returned- Returns:
- The binding represented by a JAXWS Binding Type Annotation value from either SOAPBinding or HTTPBinding.
-
getBooleanValue
Utility method for converting a String value into a boolean. Case-insensitive forms of true, yes, and 1 correspond to true. Case-insensitive forms of false, no, and 0 correspond to false. Anything else will result in a false being returned.- Parameters:
value- the property's value- Returns:
- true or false or null if neither
-