Class AdminGuard

java.lang.Object
org.apache.juneau.rest.guard.RestGuard
org.apache.juneau.examples.rest.AdminGuard

public class AdminGuard extends RestGuard
Sample guard that only lets administrators through.
See Also:
  • Constructor Details

  • Method Details

    • isRequestAllowed

      public boolean isRequestAllowed(RestRequest req)
      Description copied from class: RestGuard
      Returns true if the specified request can pass through this guard.
      Specified by:
      isRequestAllowed in class RestGuard
      Parameters:
      req - The servlet request.
      Returns:
      true if the specified request can pass through this guard.