Class MethodBase.MethodInfo

  • Enclosing class:
    MethodBase

    public static class MethodBase.MethodInfo
    extends Object
    Allow servlet to create method.
    • Constructor Detail

      • MethodInfo

        public MethodInfo​(Class<?> methodClass,
                          boolean requiresAuth)
        Parameters:
        methodClass - class of method
        requiresAuth - true for requires auth
    • Method Detail

      • getMethodClass

        public Class<?> getMethodClass()
        Returns:
        Class for this method
      • getRequiresAuth

        public boolean getRequiresAuth()
        Called when servicing a request to determine if this method requires authentication. Allows the servlet to reject attempts to change state while unauthenticated.
        Returns:
        boolean true if authentication required.