org.apache.ws.addressing.handler
Class ClientSideAddressingHandler
java.lang.Object
javax.xml.rpc.handler.GenericHandler
org.apache.ws.addressing.handler.AbstractAddressingHandler
org.apache.ws.addressing.handler.ClientSideAddressingHandler
- All Implemented Interfaces:
- javax.xml.rpc.handler.Handler
- Direct Known Subclasses:
- AxisClientSideAddressingHandler
public class ClientSideAddressingHandler
- extends AbstractAddressingHandler
A client-side JAX-RPC Handler
that inserts
WS-Addressing headers into outgoing SOAP requests
and extracts them from incoming SOAP responses.
- Version:
- $Revision: 14 $
- Author:
- Davanum Srinivas, Ian P. Springer
Method Summary |
protected java.lang.String |
getEndpointURL(javax.xml.rpc.handler.MessageContext msgContext)
Returns the endpoint URL for the specified message context. |
protected java.lang.String |
getSOAPAction(javax.xml.rpc.handler.MessageContext msgContext)
The JAX-RPC APIs don't provide a way to retrieve the value of the SOAPAction
HTTP header, so platform-specific subclasses should implement this method if
feasible. |
boolean |
handleFault(javax.xml.rpc.handler.MessageContext messageContext)
|
boolean |
handleRequest(javax.xml.rpc.handler.MessageContext msgContext)
|
boolean |
handleResponse(javax.xml.rpc.handler.MessageContext msgContext)
|
protected void |
setSOAPAction(javax.xml.rpc.handler.MessageContext msgContext,
java.lang.String actionURI)
The JAX-RPC APIs don't provide a way to set the value of the SOAPAction HTTP header,
so platform-specific subclasses should implement this method if feasible. |
Methods inherited from class org.apache.ws.addressing.handler.AbstractAddressingHandler |
createMessageID, generateUUId, getActor, getHandlerConfigProperties, getHandlerConfigProperty, getHeaders, getReferencePropertyQNames, init, initReferencePropertyQNames, isHandlerConfigPropertyTrue, isMustUnderstandEnabled, isPropertyTrue, isRemoveHeadersEnabled |
Methods inherited from class javax.xml.rpc.handler.GenericHandler |
destroy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientSideAddressingHandler
public ClientSideAddressingHandler()
handleRequest
public boolean handleRequest(javax.xml.rpc.handler.MessageContext msgContext)
-
- Specified by:
handleRequest
in interface javax.xml.rpc.handler.Handler
- Overrides:
handleRequest
in class javax.xml.rpc.handler.GenericHandler
handleResponse
public boolean handleResponse(javax.xml.rpc.handler.MessageContext msgContext)
-
- Specified by:
handleResponse
in interface javax.xml.rpc.handler.Handler
- Overrides:
handleResponse
in class javax.xml.rpc.handler.GenericHandler
handleFault
public boolean handleFault(javax.xml.rpc.handler.MessageContext messageContext)
-
- Specified by:
handleFault
in interface javax.xml.rpc.handler.Handler
- Overrides:
handleFault
in class javax.xml.rpc.handler.GenericHandler
getSOAPAction
protected java.lang.String getSOAPAction(javax.xml.rpc.handler.MessageContext msgContext)
- The JAX-RPC APIs don't provide a way to retrieve the value of the SOAPAction
HTTP header, so platform-specific subclasses should implement this method if
feasible.
- Parameters:
msgContext
- JAX-RPC message context
- Returns:
- the value of the SOAPAction HTTP header
setSOAPAction
protected void setSOAPAction(javax.xml.rpc.handler.MessageContext msgContext,
java.lang.String actionURI)
- The JAX-RPC APIs don't provide a way to set the value of the SOAPAction HTTP header,
so platform-specific subclasses should implement this method if feasible.
- Parameters:
msgContext
- JAX-RPC message contextactionURI
- the SOAPAction URI to be set
getEndpointURL
protected java.lang.String getEndpointURL(javax.xml.rpc.handler.MessageContext msgContext)
- Returns the endpoint URL for the specified message context. Since there's no
generic JAX-RPC way to obtain the request's endpoint URL, we return null here.
Platform-specific handlers can override if the platform provides a means to
obtain the endpoint URL.
- Parameters:
msgContext
- Context information
- Returns:
- the endpoint URL for the specified message context
Copyright © 2008-2009 Rodrigo Ruiz. All Rights Reserved.