com.sun.xml.ws.addressing
Class WsaTube
java.lang.Object
com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
com.sun.xml.ws.addressing.WsaTube
- All Implemented Interfaces:
- Pipe, Tube
- Direct Known Subclasses:
- WsaClientTube, WsaServerTube
abstract class WsaTube
- extends AbstractFilterTubeImpl
WS-Addressing processing code shared between client and server.
This tube is used only when WS-Addressing is enabled.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wsdlPort
@NotNull
protected final WSDLPort wsdlPort
- Port that we are processing.
binding
protected final WSBinding binding
helper
final WsaTubeHelper helper
addressingVersion
@NotNull
protected final AddressingVersion addressingVersion
soapVersion
protected final SOAPVersion soapVersion
WsaTube
public WsaTube(WSDLPort wsdlPort,
WSBinding binding,
Tube next)
WsaTube
public WsaTube(WsaTube that,
TubeCloner cloner)
processException
@NotNull
public NextAction processException(Throwable t)
- Description copied from class:
AbstractFilterTubeImpl
- Default no-op implementation.
- Specified by:
processException
in interface Tube
- Overrides:
processException
in class AbstractFilterTubeImpl
- Returns:
- A
NextAction
object that represents the next action
to be taken by the JAX-WS runtime.
getTubeHelper
protected WsaTubeHelper getTubeHelper()
validateInboundHeaders
protected final Packet validateInboundHeaders(Packet packet)
- Validates the inbound message. If an error is found, create
a fault message and returns that. Otherwise
it will pass through the parameter 'packet' object to the return value.
isAddressingEngagedOrRequired
final boolean isAddressingEngagedOrRequired(Packet packet,
WSBinding binding)
checkCardinality
public void checkCardinality(Packet packet)
- Checks the cardinality of WS-Addressing headers on an inbound
Packet
. This method
checks for the cardinality if WS-Addressing is engaged (detected by the presence of wsa:Action
header) or wsdl:required=true.
- Parameters:
packet
- The inbound packet.
- Throws:
javax.xml.ws.WebServiceException
- if:
- there is an error reading ReplyTo or FaultTo
- WS-Addressing is required and
Message
within packet
is null
- WS-Addressing is required and no headers are found in the
Message
- an uknown WS-Addressing header is present
isInCurrentRole
final boolean isInCurrentRole(Header header,
WSBinding binding)
getWSDLBoundOperation
protected final WSDLBoundOperation getWSDLBoundOperation(Packet packet)
validateSOAPAction
protected void validateSOAPAction(Packet packet)
validateAction
protected abstract void validateAction(Packet packet)
checkMandatoryHeaders
protected void checkMandatoryHeaders(Packet packet,
boolean foundAction,
boolean foundTo,
boolean foundMessageId,
boolean foundRelatesTo)