com.webmethods.caf.faces.data.error
Class WebserviceClientErrorHandler

java.lang.Object
  extended by com.webmethods.caf.faces.data.error.BaseErrorHandler
      extended by com.webmethods.caf.faces.data.error.WebserviceClientErrorHandler
All Implemented Interfaces:
IErrorHandler
Direct Known Subclasses:
WSClientInnerErrHandler

public class WebserviceClientErrorHandler
extends BaseErrorHandler

Specialization of the error handler for Glue web service clients. Additional features include parsing of SOAP-FAULTS from web service exception and ability to handle infrastructure (connection) and SOAP_FAULTS errors separately.


Field Summary
static String ANY_ERROR
          Identifies that any web service client error should be handled
static String CONNECTION_ERROR
          Identifies that only connectivity and authentication web service errors should be handled
protected  String errorType
           
static String SOAP_FAULT
          Identifies that only soap-fault web service client errors should be handled
 
Fields inherited from class com.webmethods.caf.faces.data.error.BaseErrorHandler
action, ACTION_NONE, ACTION_REDIRECT, ACTION_REPORT_DETAILS, ACTION_REPORT_SUMMARY, ACTION_REPORT_SUMMARY_DETAILS, chainHandler, details, errorPage, exception, parsedDetails, parsedSummary, severity, SEVERITY_ERROR, SEVERITY_FATAL, SEVERITY_INFO, SEVERITY_WARN, source, summary, viewID
 
Constructor Summary
WebserviceClientErrorHandler()
           
 
Method Summary
 String getErrorType()
          Web service error type to be handled.
protected  boolean parseError()
          Set the Summary and Details from the exception's cause.
 void setErrorType(String errorType)
          Sets value for web service error type to be handled.
 
Methods inherited from class com.webmethods.caf.faces.data.error.BaseErrorHandler
formatMessage, getAction, getChainHandler, getDetails, getErrorPage, getException, getFacesSeverity, getSeverity, getSource, getSummary, gotoPage, handleError, handleError, isHasError, reset, returnBack, setAction, setChainHandler, setDetails, setErrorPage, setSeverity, setSummary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY_ERROR

public static final String ANY_ERROR
Identifies that any web service client error should be handled

See Also:
Constant Field Values

CONNECTION_ERROR

public static final String CONNECTION_ERROR
Identifies that only connectivity and authentication web service errors should be handled

See Also:
Constant Field Values

SOAP_FAULT

public static final String SOAP_FAULT
Identifies that only soap-fault web service client errors should be handled

See Also:
Constant Field Values

errorType

protected String errorType
Constructor Detail

WebserviceClientErrorHandler

public WebserviceClientErrorHandler()
Method Detail

getErrorType

public String getErrorType()
Web service error type to be handled.

Returns:
The web service error type.

setErrorType

public void setErrorType(String errorType)
Sets value for web service error type to be handled.

Parameters:
errorType - Set the error type using WebserviceClientErrorHandler.ANY_ERROR, WebserviceClientErrorHandler.CONNECTION_ERROR, WebserviceClientErrorHandler.SOAP_FAULT

parseError

protected boolean parseError()
Set the Summary and Details from the exception's cause. For a WebserviceClientErrorHandler.SOAP_FAULT, also parse the soap fault.

Overrides:
parseError in class BaseErrorHandler
Returns:
True if error was successfully parsed. Otherwise false.
See Also:
Throwable.getCause()