com.sun.xml.ws.fault
Class SOAP12Fault

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

 class SOAP12Fault
extends SOAPFaultBuilder

SOAP 1.2 Fault class that can be marshalled/unmarshalled by JAXB

 Example:
 <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
            xmlns:m="http://www.example.org/timeouts"
            xmlns:xml="http://www.w3.org/XML/1998/namespace">
 <env:Body>
     <env:Fault>
         <env:Code>
             <env:Value>env:Sender* </env:Value>
             <env:Subcode>
                 <env:Value>m:MessageTimeout* </env:Value>
             </env:Subcode>
         </env:Code>
         <env:Reason>
             <env:Text xml:lang="en">Sender Timeout* </env:Text>
         </env:Reason>
         <env:Detail>
             <m:MaxTime>P5M* </m:MaxTime>
         </env:Detail>
     </env:Fault>
 </env:Body>
 </env:Envelope>
 


Field Summary
 
Fields inherited from class com.sun.xml.ws.fault.SOAPFaultBuilder
CAPTURE_STACK_TRACE_PROPERTY, captureStackTrace
 
Constructor Summary
SOAP12Fault()
           
SOAP12Fault(CodeType code, ReasonType reason, String node, String role, DetailType detail)
           
SOAP12Fault(QName code, String reason, Element detailObject)
           
SOAP12Fault(javax.xml.soap.SOAPFault fault)
           
 
Method Summary
(package private)  CodeType getCode()
           
(package private)  DetailType getDetail()
          Gives the DetailType for a Soap 1.1 or Soap 1.2 message that can be used to create either a checked exception or a protocol specific exception
(package private)  String getFaultString()
          gives the fault string that can be used to create an Exception
(package private)  String getNode()
           
protected  Throwable getProtocolException()
           
(package private)  ReasonType getReason()
           
(package private)  String getRole()
           
(package private)  void setDetail(DetailType detail)
           
 
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

SOAP12Fault

SOAP12Fault()

SOAP12Fault

SOAP12Fault(CodeType code,
            ReasonType reason,
            String node,
            String role,
            DetailType detail)

SOAP12Fault

SOAP12Fault(javax.xml.soap.SOAPFault fault)

SOAP12Fault

SOAP12Fault(QName code,
            String reason,
            Element detailObject)
Method Detail

getCode

CodeType getCode()

getReason

ReasonType getReason()

getNode

String getNode()

getRole

String getRole()

getDetail

DetailType getDetail()
Description copied from class: SOAPFaultBuilder
Gives the DetailType for a Soap 1.1 or Soap 1.2 message that can be used to create either a checked exception or a protocol specific exception

Specified by:
getDetail in class SOAPFaultBuilder

setDetail

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

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

getProtocolException

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