| java.lang.Object com.sun.xml.ws.fault.SOAPFaultBuilder
All known Subclasses: com.sun.xml.ws.fault.SOAP12Fault, com.sun.xml.ws.fault.SOAP11Fault,
SOAPFaultBuilder | abstract public class SOAPFaultBuilder (Code) | | Base class that represents SOAP 1.1 or SOAP 1.2 fault. This class can be used by the invocation handlers to create
an Exception from a received messge.
author: Vivek Pandey |
CAPTURE_STACK_TRACE_PROPERTY | final static String CAPTURE_STACK_TRACE_PROPERTY(Code) | | |
captureStackTrace | public static boolean captureStackTrace(Code) | | Set to false if you don't want the generated faults to have stack trace in it.
|
captureStackTrace | final void captureStackTrace(Throwable t)(Code) | | Creates a DOM node that represents the complete stack trace of the exception,
and attach that to
DetailType .
|
createSOAPFaultMessage | public static Message createSOAPFaultMessage(SOAPVersion soapVersion, CheckedExceptionImpl ceModel, Throwable ex)(Code) | | To be called by the server runtime in the situations when there is an Exception that needs to be transformed in
to a soapenv:Fault payload.
Parameters: ceModel - CheckedExceptionImpl model that provides useful informations such as the detail tagnameand the Exception associated with it. Caller of this constructor should get the CheckedExceptionmodel by calling JavaMethodImpl.getCheckedException(Class), whereClass is t.getClass().If its null then this is not a checked exception and in that case the soap fault will beserialized only from the exception as described below. Parameters: ex - Exception that needs to be translated into soapenv:Fault, always non-null. - If t is instance of SOAPFaultException then its serilaized as protocol exception.
- If t.getCause() is instance of SOAPFaultException and t is a checked exception thenthe soap fault detail is serilaized from t and the fault actor/string/role is taken from t.getCause().
Parameters: soapVersion - non-null |
createSOAPFaultMessage | public static Message createSOAPFaultMessage(SOAPVersion soapVersion, String faultString, QName faultCode)(Code) | | Server runtime will call this when there is some internal error not resulting from an exception.
Parameters: soapVersion - SOAPVersion.SOAP_11 or SOAPVersion.SOAP_12 Parameters: faultString - must be non-null Parameters: faultCode - For SOAP 1.1, it must be one ofFor SOAP 1.2 non-null Message |
getDetail | abstract DetailType getDetail()(Code) | | 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
|
getFaultString | abstract String getFaultString()(Code) | | gives the fault string that can be used to create an
Exception |
getProtocolException | abstract protected Throwable getProtocolException()(Code) | | |
|
|