Package com.appslandia.plum.base
Class TooManyRequestsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.appslandia.plum.base.HttpException
-
- com.appslandia.plum.base.TooManyRequestsException
-
- All Implemented Interfaces:
HttpHeaderApply,ProblemSupport,Serializable
@NotLog public class TooManyRequestsException extends HttpException implements HttpHeaderApply
- Author:
- Loc Ha
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intSC_TOO_MANY_REQUESTS
-
Constructor Summary
Constructors Constructor Description TooManyRequestsException()TooManyRequestsException(String message)TooManyRequestsException(String message, Throwable cause)TooManyRequestsException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(javax.servlet.http.HttpServletResponse response)StringgetReason()LonggetRetryAfter()TooManyRequestsExceptionsetDetailKey(ResKey detailKey)TooManyRequestsExceptionsetDetailKey(String detailKey)TooManyRequestsExceptionsetReason(String reason)TooManyRequestsExceptionsetRetryAfter(Long retryAfter)TooManyRequestsExceptionsetTitleKey(ResKey titleKey)TooManyRequestsExceptionsetTitleKey(String titleKey)-
Methods inherited from class com.appslandia.plum.base.HttpException
getProblem
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
SC_TOO_MANY_REQUESTS
public static final int SC_TOO_MANY_REQUESTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public void apply(javax.servlet.http.HttpServletResponse response)
- Specified by:
applyin interfaceHttpHeaderApply
-
getReason
public String getReason()
-
setReason
public TooManyRequestsException setReason(String reason)
-
getRetryAfter
public Long getRetryAfter()
-
setRetryAfter
public TooManyRequestsException setRetryAfter(Long retryAfter)
-
setTitleKey
public TooManyRequestsException setTitleKey(String titleKey)
- Overrides:
setTitleKeyin classHttpException
-
setTitleKey
public TooManyRequestsException setTitleKey(ResKey titleKey)
- Overrides:
setTitleKeyin classHttpException
-
setDetailKey
public TooManyRequestsException setDetailKey(String detailKey)
- Overrides:
setDetailKeyin classHttpException
-
setDetailKey
public TooManyRequestsException setDetailKey(ResKey detailKey)
- Overrides:
setDetailKeyin classHttpException
-
-