org.apache.camel.dataformat.soap.name
Class ServiceInterfaceStrategy

java.lang.Object
  extended by org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy
All Implemented Interfaces:
ElementNameStrategy

public class ServiceInterfaceStrategy
extends Object
implements ElementNameStrategy

Offers a finder for a webservice interface to determine the QName of a webservice data element


Constructor Summary
ServiceInterfaceStrategy(Class<?> serviceInterface, boolean isClient)
          Init with JAX-WS service interface
 
Method Summary
 Class<? extends Exception> findExceptionForFaultName(QName faultName)
          Determine exception class for given SOAP Fault QName
 QName findQNameForSoapActionOrType(String soapAction, Class<?> type)
          Determine the QName of the method parameter of the method that matches either soapAction and type or if not possible only the type
 String getMethodForSoapAction(String soapAction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceInterfaceStrategy

public ServiceInterfaceStrategy(Class<?> serviceInterface,
                                boolean isClient)
Init with JAX-WS service interface

Parameters:
serviceInterface -
isClient - determines if marhalling looks at input or output of method
Method Detail

getMethodForSoapAction

public String getMethodForSoapAction(String soapAction)

findQNameForSoapActionOrType

public QName findQNameForSoapActionOrType(String soapAction,
                                          Class<?> type)
Determine the QName of the method parameter of the method that matches either soapAction and type or if not possible only the type

Specified by:
findQNameForSoapActionOrType in interface ElementNameStrategy
Parameters:
soapAction -
type -
Returns:
matching QName throws RuntimeException if no matching QName was found

findExceptionForFaultName

public Class<? extends Exception> findExceptionForFaultName(QName faultName)
Description copied from interface: ElementNameStrategy
Determine exception class for given SOAP Fault QName

Specified by:
findExceptionForFaultName in interface ElementNameStrategy
Returns:


Apache Camel