Package org.apache.juneau.examples.rest
Class AdminGuard
java.lang.Object
org.apache.juneau.rest.guard.RestGuard
org.apache.juneau.examples.rest.AdminGuard
Sample guard that only lets administrators through.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue if the specified request can pass through this guard.
-
Constructor Details
-
AdminGuard
public AdminGuard()
-
-
Method Details
-
isRequestAllowed
Description copied from class:RestGuard
Returnstrue if the specified request can pass through this guard.- Specified by:
isRequestAllowed
in classRestGuard
- Parameters:
req
- The servlet request.- Returns:
true if the specified request can pass through this guard.
-