com.sun.xml.ws.handler
Class SOAPHandlerProcessor<C extends MessageUpdatableContext>

java.lang.Object
  extended by com.sun.xml.ws.handler.HandlerProcessor<C>
      extended by com.sun.xml.ws.handler.SOAPHandlerProcessor<C>

final class SOAPHandlerProcessor<C extends MessageUpdatableContext>
extends HandlerProcessor<C>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.ws.handler.HandlerProcessor
HandlerProcessor.Direction, HandlerProcessor.RequestOrResponse
 
Field Summary
 
Fields inherited from class com.sun.xml.ws.handler.HandlerProcessor
binding, isClient, logger
 
Constructor Summary
SOAPHandlerProcessor(boolean isClient, HandlerTube owner, WSBinding binding, List<? extends javax.xml.ws.handler.Handler> chain)
          Creates a new instance of SOAPHandlerProcessor
 
Method Summary
(package private)  void insertFaultMessage(C context, javax.xml.ws.ProtocolException exception)
          Replace the message in the given message context with a fault message.
 
Methods inherited from class com.sun.xml.ws.handler.HandlerProcessor
callHandlersRequest, callHandlersResponse, closeHandlers, getIndex, setIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPHandlerProcessor

public SOAPHandlerProcessor(boolean isClient,
                            HandlerTube owner,
                            WSBinding binding,
                            List<? extends javax.xml.ws.handler.Handler> chain)
Creates a new instance of SOAPHandlerProcessor

Method Detail

insertFaultMessage

final void insertFaultMessage(C context,
                              javax.xml.ws.ProtocolException exception)
Replace the message in the given message context with a fault message. If the context already contains a fault message, then return without changing it.

This method should only be called during a request, because during a response an exception from a handler is dispatched rather than replacing the message with a fault. So this method can use the MESSAGE_OUTBOUND_PROPERTY to determine whether it is being called on the client or the server side. If this changes in the spec, then something else will need to be passed to the method to determine whether the fault code is client or server.

Specified by:
insertFaultMessage in class HandlerProcessor<C extends MessageUpdatableContext>