com.sun.xml.ws.addressing
Class WsaTube

java.lang.Object
  extended by com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
      extended by com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
          extended by 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.


Field Summary
protected  AddressingVersion addressingVersion
           
protected  WSBinding binding
           
(package private)  WsaTubeHelper helper
           
protected  SOAPVersion soapVersion
           
protected  WSDLPort wsdlPort
          Port that we are processing.
 
Fields inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
next
 
Constructor Summary
WsaTube(WsaTube that, TubeCloner cloner)
           
WsaTube(WSDLPort wsdlPort, WSBinding binding, Tube next)
           
 
Method Summary
 void checkCardinality(Packet packet)
          Checks the cardinality of WS-Addressing headers on an inbound Packet.
protected  void checkMandatoryHeaders(Packet packet, boolean foundAction, boolean foundTo, boolean foundMessageId, boolean foundRelatesTo)
           
protected  WsaTubeHelper getTubeHelper()
           
protected  WSDLBoundOperation getWSDLBoundOperation(Packet packet)
           
(package private)  boolean isAddressingEngagedOrRequired(Packet packet, WSBinding binding)
           
(package private)  boolean isInCurrentRole(Header header, WSBinding binding)
           
 NextAction processException(Throwable t)
          Default no-op implementation.
protected abstract  void validateAction(Packet packet)
           
protected  Packet validateInboundHeaders(Packet packet)
          Validates the inbound message.
protected  void validateSOAPAction(Packet packet)
           
 
Methods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
preDestroy, processRequest, processResponse
 
Methods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
copy, copy, doInvoke, doInvokeAndForget, doReturnWith, doSuspend, doThrow, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

WsaTube

public WsaTube(WSDLPort wsdlPort,
               WSBinding binding,
               Tube next)

WsaTube

public WsaTube(WsaTube that,
               TubeCloner cloner)
Method Detail

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)