Class ServiceInterfaceStrategy
- java.lang.Object
-
- 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
Constructors Constructor Description ServiceInterfaceStrategy(Class<?> serviceInterface, boolean isClient)Init with JAX-WS service interface
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Exception>findExceptionForFaultName(QName faultName)Determine exception class for given SOAP Fault QNameQNamefindQNameForSoapActionOrType(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 typeStringgetMethodForSoapAction(String soapAction)
-
-
-
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
-
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:
findQNameForSoapActionOrTypein interfaceElementNameStrategy- 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:ElementNameStrategyDetermine exception class for given SOAP Fault QName- Specified by:
findExceptionForFaultNamein interfaceElementNameStrategy- Returns:
-
-