org.ow2.jonas.ws.axis2.jaxws.description.impl
Class DescriptionUtils

java.lang.Object
  extended by org.ow2.jonas.ws.axis2.jaxws.description.impl.DescriptionUtils

public class DescriptionUtils
extends Object

Utilities used throughout the Description package.


Constructor Summary
DescriptionUtils()
           
 
Method Summary
static void getAttachmentFromBinding(org.ow2.jonas.ws.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 String getNamespaceFromSOAPElement(List extElements)
          This method will loop through a list of extensibility elements looking for one of four objects: SOAPBody, SOAP12Body, SOAPHeader, SOAP12Header.
static boolean isAsync(Method method)
          Determine is this method is an async method
static org.apache.axis2.jaxws.description.xml.handler.HandlerChainsType loadHandlerChains(InputStream is)
           
static InputStream openHandlerConfigStream(String configFile, String className, ClassLoader classLoader)
          This is a helper method that will open a stream to an @HandlerChain configuration file.
static void registerHandlerHeaders(org.apache.axis2.description.AxisService axisService, List<Handler> handlers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptionUtils

public DescriptionUtils()
Method Detail

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 file
className - - 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

public static boolean isAsync(Method method)
Determine is this method is an async method

Parameters:
method - - The method to examine
Returns:

loadHandlerChains

public static org.apache.axis2.jaxws.description.xml.handler.HandlerChainsType loadHandlerChains(InputStream is)

getNamespaceFromSOAPElement

public static String getNamespaceFromSOAPElement(List extElements)
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.ow2.jonas.ws.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<Handler> handlers)


Copyright © 2010 OW2 Consortium. All Rights Reserved.