org.apache.camel.dataformat.soap.name
Class TypeNameStrategy
java.lang.Object
org.apache.camel.dataformat.soap.name.TypeNameStrategy
- All Implemented Interfaces:
- ElementNameStrategy
public class TypeNameStrategy
- extends Object
- implements ElementNameStrategy
Strategy to determine the marshalled element name by looking at the
annotations of the class to be marshalled
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeNameStrategy
public TypeNameStrategy()
findQNameForSoapActionOrType
public QName findQNameForSoapActionOrType(String soapAction,
Class<?> type)
- Description copied from interface:
ElementNameStrategy
- Deterimine element name for given type
- Specified by:
findQNameForSoapActionOrType
in interface ElementNameStrategy
- Returns:
- determine element name by using the XmlType.name() of the type to
be marshalled and the XmlSchema.namespace() of the package-info
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