Class RateLimitResult
java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.service.rate.RateLimitResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the error messagebooleanCheck if the request is allowed
-
Constructor Details
-
RateLimitResult
Constructor- Parameters:
allowed- whether the request is allowederrorMessage- error message if request is denied
-
-
Method Details
-
isAllowed
public boolean isAllowed()Check if the request is allowed- Returns:
- true if allowed
-
getErrorMessage
Get the error message- Returns:
- the error message
-