com.sun.xml.ws.addressing.model
Class MissingAddressingHeaderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.xml.ws.WebServiceException
                  extended by com.sun.xml.ws.addressing.model.MissingAddressingHeaderException
All Implemented Interfaces:
Serializable

public class MissingAddressingHeaderException
extends WebServiceException

This exception signals that a particular WS-Addressing header is missing in a SOAP message.

See Also:
Serialized Form

Constructor Summary
MissingAddressingHeaderException(QName name)
           
MissingAddressingHeaderException(QName name, Packet p)
           
 
Method Summary
 QName getMissingHeaderQName()
          Gets the QName of the missing WS-Addressing Header.
 Packet getPacket()
          The Packet in which a header was missing.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MissingAddressingHeaderException

public MissingAddressingHeaderException(@NotNull
                                        QName name)
Parameters:
name - QName of the missing WS-Addressing Header

MissingAddressingHeaderException

public MissingAddressingHeaderException(@NotNull
                                        QName name,
                                        @Nullable
                                        Packet p)
Method Detail

getMissingHeaderQName

public QName getMissingHeaderQName()
Gets the QName of the missing WS-Addressing Header.

Returns:
never null.

getPacket

public Packet getPacket()
The Packet in which a header was missing.

This object can be used to deep-inspect the problematic SOAP message.



Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.