org.codehaus.xfire.annotations.soap
Class SOAPMessageHandler

java.lang.Object
  extended by org.codehaus.xfire.annotations.soap.SOAPMessageHandler
All Implemented Interfaces:
Serializable

public class SOAPMessageHandler
extends Object
implements Serializable

Represents a common implementation of the SOAP message handler. Specifies a single SOAP message handler.

Author:
Arjen Poutsma
See Also:
Serialized Form

Constructor Summary
SOAPMessageHandler(String className)
          Initializes a new instance of the SOAPMessageHandler.
 
Method Summary
 String getClassName()
          Returns the name of the handler class.
 String[] getHeaders()
          Returns the list of SOAP headers processed by the handler.
 InitParam[] getInitParams()
          Returns the array of name/value pairs that should be passed to the handler during initialization.
 String getName()
          Returns the name of the handler.
 String[] getRoles()
          Returns the list of SOAP roles/actors implemented by the handler
 void setHeaders(String[] headers)
          Sets the list of SOAP headers processed by the handler.
 void setInitParams(InitParam[] initParams)
          Sets the array of name/value pairs that should be passed to the handler during initialization.
 void setName(String name)
          Sets the name of the handler.
 void setRoles(String[] roles)
          Sets the list of SOAP roles/actors implemented by the handler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPMessageHandler

public SOAPMessageHandler(String className)
Initializes a new instance of the SOAPMessageHandler.

Parameters:
className - the name of the handler class.
Method Detail

getClassName

public String getClassName()
Returns the name of the handler class.

Returns:
the name of the handler class.

getName

public String getName()
Returns the name of the handler. Defaults to the name of the handler class.

Returns:
the name of the handler

setName

public void setName(String name)
Sets the name of the handler.

Parameters:
name - the name of the handler

getInitParams

public InitParam[] getInitParams()
Returns the array of name/value pairs that should be passed to the handler during initialization.

Returns:
the initialization array

setInitParams

public void setInitParams(InitParam[] initParams)
Sets the array of name/value pairs that should be passed to the handler during initialization.

Parameters:
initParams - the initialization array

getRoles

public String[] getRoles()
Returns the list of SOAP roles/actors implemented by the handler

Returns:
the list of SOAP roles/actors

setRoles

public void setRoles(String[] roles)
Sets the list of SOAP roles/actors implemented by the handler

Parameters:
roles - the list of SOAP roles/actors

getHeaders

public String[] getHeaders()
Returns the list of SOAP headers processed by the handler. Each element in this array contains a QName which defines the header element processed by the handler. The QNames are specified using the string notation described in the documentation for QName.valueOf(String).

Returns:
the list of SOAP headers

setHeaders

public void setHeaders(String[] headers)
Sets the list of SOAP headers processed by the handler. Each element in this array contains a QName which defines the header element processed by the handler. The QNames are specified using the string notation described in the documentation for QName.valueOf(String).

Parameters:
headers - the list of SOAP headers


Copyright © 2004-2013. All Rights Reserved.