Enum Class DeleteOpParam.Op

java.lang.Object
java.lang.Enum<DeleteOpParam.Op>
org.apache.hadoop.hdfs.web.resources.DeleteOpParam.Op
All Implemented Interfaces:
Serializable, Comparable<DeleteOpParam.Op>, Constable, org.apache.hadoop.hdfs.web.resources.HttpOpParam.Op
Enclosing class:
org.apache.hadoop.hdfs.web.resources.DeleteOpParam

public static enum DeleteOpParam.Op extends Enum<DeleteOpParam.Op> implements org.apache.hadoop.hdfs.web.resources.HttpOpParam.Op
Delete operations.
  • Enum Constant Details

  • Method Details

    • values

      public static DeleteOpParam.Op[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DeleteOpParam.Op valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getType

      public HttpOpParam.Type getType()
      Specified by:
      getType in interface org.apache.hadoop.hdfs.web.resources.HttpOpParam.Op
      Returns:
      the Http operation type.
    • getRequireAuth

      public boolean getRequireAuth()
      Specified by:
      getRequireAuth in interface org.apache.hadoop.hdfs.web.resources.HttpOpParam.Op
      Returns:
      true if the operation cannot use a token
    • getDoOutput

      public boolean getDoOutput()
      Specified by:
      getDoOutput in interface org.apache.hadoop.hdfs.web.resources.HttpOpParam.Op
      Returns:
      true if the operation will do output.
    • getRedirect

      public boolean getRedirect()
      Specified by:
      getRedirect in interface org.apache.hadoop.hdfs.web.resources.HttpOpParam.Op
      Returns:
      true if the operation will be redirected.
    • getExpectedHttpResponseCode

      public int getExpectedHttpResponseCode()
      Specified by:
      getExpectedHttpResponseCode in interface org.apache.hadoop.hdfs.web.resources.HttpOpParam.Op
      Returns:
      true the expected http response code.
    • toQueryString

      public String toQueryString()
      Specified by:
      toQueryString in interface org.apache.hadoop.hdfs.web.resources.HttpOpParam.Op
      Returns:
      a URI query string.