Class ServiceInterfaceStrategy
java.lang.Object
org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy
- All Implemented Interfaces:
ElementNameStrategy
Offers a finder for a webservice interface to determine the QName of a webservice data element
-
Constructor Summary
ConstructorsConstructorDescriptionServiceInterfaceStrategy(Class<?> serviceInterface, boolean isClient) Init with JAX-WS service interface -
Method Summary
Modifier and TypeMethodDescriptionfindExceptionForFaultName(QName faultName) Determine exception class for given SOAP Fault QNamefindExceptionForSoapActionAndFaultName(String soapAction, QName faultName) Determine exception class for given SOAP Action and Fault QNamefindQNameForSoapActionOrType(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 typegetMethodForSoapAction(String soapAction)
-
Constructor Details
-
ServiceInterfaceStrategy
Init with JAX-WS service interface- Parameters:
serviceInterface-isClient- determines if marhalling looks at input or output of method
-
-
Method Details
-
getMethodForSoapAction
-
findQNameForSoapActionOrType
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
Description copied from interface:ElementNameStrategyDetermine exception class for given SOAP Fault QName- Specified by:
findExceptionForFaultNamein interfaceElementNameStrategy- Returns:
-
findExceptionForSoapActionAndFaultName
public Class<? extends Exception> findExceptionForSoapActionAndFaultName(String soapAction, QName faultName) Description copied from interface:ElementNameStrategyDetermine exception class for given SOAP Action and Fault QName- Specified by:
findExceptionForSoapActionAndFaultNamein interfaceElementNameStrategy- Returns:
-