code: private void checkHttpMethod(R pRequest) {
          if (!restrictor.isHttpMethodAllowed(pRequest.getHttpMethod())) {
              throw new SecurityException("HTTP method " + pRequest.getHttpMethod().getMethod() +
                      " is not allowed according to the installed security policy");
          }
      }
docs: Check whether the HTTP method with which the request was sent is allowed according to the policy
  installed
  
  @param pRequest request to check