com.sun.xml.ws.fault
Class SOAP11Fault

java.lang.Object
  extended by com.sun.xml.ws.fault.SOAPFaultBuilder
      extended by com.sun.xml.ws.fault.SOAP11Fault

 class SOAP11Fault
extends SOAPFaultBuilder

This class represents SOAP1.1 Fault. This class will be used to marshall/unmarshall a soap fault using JAXB.

 Example:
 

<soap:Fault xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> <faultcode>soap:Client</faultcode> <faultstring>Invalid message format</faultstring> <faultactor>http://example.org/someactor</faultactor> <detail> <m:msg xmlns:m='http://example.org/faults/exceptions'> Test message </m:msg> </detail> </soap:Fault>

Above, m:msg, if a known fault (described in the WSDL), IOW, if m:msg is known by JAXBContext it should be unmarshalled into a Java object otherwise it should be deserialized as Detail


Field Summary
 
Fields inherited from class com.sun.xml.ws.fault.SOAPFaultBuilder
CAPTURE_STACK_TRACE_PROPERTY, captureStackTrace
 
Constructor Summary
SOAP11Fault()
           
SOAP11Fault(QName code, String reason, String actor, Element detailObject)
          This constructor takes soap fault detail among other things.
SOAP11Fault(javax.xml.soap.SOAPFault fault)
           
 
Method Summary
(package private)  DetailType getDetail()
          returns the object that represents detail.
(package private)  String getFaultactor()
           
(package private)  QName getFaultcode()
           
(package private)  String getFaultString()
          gives the fault string that can be used to create an Exception
protected  Throwable getProtocolException()
           
(package private)  void setDetail(DetailType detail)
           
(package private)  void setFaultactor(String faultactor)
           
(package private)  void setFaultcode(QName faultcode)
           
(package private)  void setFaultstring(String faultstring)
           
 
Methods inherited from class com.sun.xml.ws.fault.SOAPFaultBuilder
captureStackTrace, create, createException, createSOAPFaultMessage, createSOAPFaultMessage, createSOAPFaultMessage, createSOAPFaultMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAP11Fault

SOAP11Fault()

SOAP11Fault

SOAP11Fault(QName code,
            String reason,
            String actor,
            Element detailObject)
This constructor takes soap fault detail among other things. The detail could represent Detail or a java object that can be marshalled/unmarshalled by JAXB.

Parameters:
code -
reason -
actor -
detailObject -

SOAP11Fault

SOAP11Fault(javax.xml.soap.SOAPFault fault)
Method Detail

getFaultcode

QName getFaultcode()

setFaultcode

void setFaultcode(QName faultcode)

getFaultString

String getFaultString()
Description copied from class: SOAPFaultBuilder
gives the fault string that can be used to create an Exception

Specified by:
getFaultString in class SOAPFaultBuilder

setFaultstring

void setFaultstring(String faultstring)

getFaultactor

String getFaultactor()

setFaultactor

void setFaultactor(String faultactor)

getDetail

DetailType getDetail()
returns the object that represents detail.

Specified by:
getDetail in class SOAPFaultBuilder

setDetail

void setDetail(DetailType detail)
Specified by:
setDetail in class SOAPFaultBuilder

getProtocolException

protected Throwable getProtocolException()
Specified by:
getProtocolException in class SOAPFaultBuilder