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 QNameClass<? extends Exception>
findExceptionForSoapActionAndFaultName(String soapAction, QName faultName)
Determine exception class for given SOAP Action and Fault QNameQName
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 typeString
getMethodForSoapAction(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:
findQNameForSoapActionOrType
in 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:ElementNameStrategy
Determine exception class for given SOAP Fault QName- Specified by:
findExceptionForFaultName
in interfaceElementNameStrategy
- Returns:
-
findExceptionForSoapActionAndFaultName
public Class<? extends Exception> findExceptionForSoapActionAndFaultName(String soapAction, QName faultName)
Description copied from interface:ElementNameStrategy
Determine exception class for given SOAP Action and Fault QName- Specified by:
findExceptionForSoapActionAndFaultName
in interfaceElementNameStrategy
- Returns:
-
-