org.apache.ws.resource.handler
Class AbstractSoapMethodNameMap

java.lang.Object
  extended byorg.apache.ws.resource.handler.AbstractSoapMethodNameMap
All Implemented Interfaces:
SoapMethodNameMap
Direct Known Subclasses:
DefaultMethodMap, ServiceSoapMethodNameMap, WsddSoapMethodNameMap

public abstract class AbstractSoapMethodNameMap
extends java.lang.Object
implements SoapMethodNameMap

LOG-DONE Abstract class to provide default underlying behaviour for the SOAPMethodNameMap.

Author:
Sal Campana

Constructor Summary
AbstractSoapMethodNameMap()
           
 
Method Summary
abstract  java.lang.String getDefaultMethodName(javax.xml.namespace.QName requestName)
          Returns a default name for a method based on a request's QName.
 java.lang.String getMethodName(javax.xml.namespace.QName requestName)
          Returns the method name for a given incoming request QName.
 java.lang.String getMethodNameFromAction(java.lang.String action)
          Returns the method name for an operation which is registered via its WS-Addressing Action header value.
 SoapMethodNameMap getParent()
          Returns the parent SoapMethodNameMap
protected  java.lang.String lookupMethodNameFromAction(java.lang.String action)
          Returns a default name for a method based on a request's WS-Addressing Action header.
 void setParent(SoapMethodNameMap parent)
          Sets the parent SoapMethodNameMap to be searched.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSoapMethodNameMap

public AbstractSoapMethodNameMap()
Method Detail

getDefaultMethodName

public abstract java.lang.String getDefaultMethodName(javax.xml.namespace.QName requestName)
Returns a default name for a method based on a request's QName.

Parameters:
requestName - QName of the incoming request.
Returns:
a default name for the method.

getMethodName

public final java.lang.String getMethodName(javax.xml.namespace.QName requestName)
Returns the method name for a given incoming request QName.

Specified by:
getMethodName in interface SoapMethodNameMap
Parameters:
requestName -
Returns:
Method name to invoke.

getMethodNameFromAction

public final java.lang.String getMethodNameFromAction(java.lang.String action)
Returns the method name for an operation which is registered via its WS-Addressing Action header value.

Specified by:
getMethodNameFromAction in interface SoapMethodNameMap
Parameters:
action - The WS-AAddressing Action Header value.
Returns:
the name of the operation OR null if there is no Action registered.

setParent

public void setParent(SoapMethodNameMap parent)
Sets the parent SoapMethodNameMap to be searched.

Specified by:
setParent in interface SoapMethodNameMap
Parameters:
parent -

getParent

public SoapMethodNameMap getParent()
Returns the parent SoapMethodNameMap

Specified by:
getParent in interface SoapMethodNameMap
Returns:
parent SoapMethodNameMap

lookupMethodNameFromAction

protected java.lang.String lookupMethodNameFromAction(java.lang.String action)
Returns a default name for a method based on a request's WS-Addressing Action header. Subclasses that wish to support mapping based on wsa:Action should override this method.

Parameters:
action - string representation of WS-Addressing Action header value
Returns:
a method name, or null if no mapping is configured for the specified wsa:Action


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.