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

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

public class QNameStrategy
extends Object
implements ElementNameStrategy

Simply ElementNameStrategy that returns one preset QName. This can be handy for simple asynchronous calls


Constructor Summary
QNameStrategy(QName elmentName)
          Initialize with one QName
 
Method Summary
 Class<? extends Exception> findExceptionForFaultName(QName faultName)
          Determine exception class for given SOAP Fault QName
 QName findQNameForSoapActionOrType(String soapAction, Class<?> type)
          Deterimine element name for given type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QNameStrategy

public QNameStrategy(QName elmentName)
Initialize with one QName

Parameters:
elmentName - QName to be used for all finds
Method Detail

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:
preset element name

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