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.
|
getResponse
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
sanitize, unwrap, wrap
public boolean hasRetryAfter()
ServiceUnavailableException
retry the request
.hasRetryAfter
in class ServiceUnavailableException
true
in case the retry time is specified in the underlying
response, false
otherwise.public Date getRetryTime(Date requestTime)
ServiceUnavailableException
getRetryTime
in class ServiceUnavailableException
requestTime
- 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()
WebApplicationExceptionWrapper
unwrap
in interface WebApplicationExceptionWrapper<ServiceUnavailableException>
Copyright © 2021 JBoss by Red Hat. All rights reserved.