public class ResteasyServiceUnavailableException extends ServiceUnavailableException implements WebApplicationExceptionWrapper<ServiceUnavailableException>
ServiceUnavailableException with a sanitized response.| Modifier and Type | Method and Description |
|---|---|
Date |
getRetryTime(Date requestTime)
Get the retry time for the failed request.
|
boolean |
hasRetryAfter()
Check if the underlying response contains the information on when is it
possible to
retry the request. |
ServiceUnavailableException |
unwrap()
Returns the original, unwrapped, exception.
|
getResponseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsanitize, unwrap, wrappublic boolean hasRetryAfter()
ServiceUnavailableExceptionretry the request.hasRetryAfter in class ServiceUnavailableExceptiontrue in case the retry time is specified in the underlying
response, false otherwise.public Date getRetryTime(Date requestTime)
ServiceUnavailableExceptiongetRetryTime in class ServiceUnavailableExceptionrequestTime - time of sending the original request that may be used to compute
the retry time (in case the retry time information specified as
a decimal interval in seconds).null if there is no retry
information available.public ServiceUnavailableException unwrap()
WebApplicationExceptionWrapperunwrap in interface WebApplicationExceptionWrapper<ServiceUnavailableException>Copyright © 2022 JBoss by Red Hat. All rights reserved.