Enum Class 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanintbooleanbooleangetType()static DeleteOpParam.OpReturns the enum constant of this class with the specified name.static DeleteOpParam.Op[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DELETE
-
DELETESNAPSHOT
-
NULL
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getType
- Specified by:
getTypein interfaceorg.apache.hadoop.hdfs.web.resources.HttpOpParam.Op- Returns:
- the Http operation type.
-
getRequireAuth
public boolean getRequireAuth()- Specified by:
getRequireAuthin interfaceorg.apache.hadoop.hdfs.web.resources.HttpOpParam.Op- Returns:
- true if the operation cannot use a token
-
getDoOutput
public boolean getDoOutput()- Specified by:
getDoOutputin interfaceorg.apache.hadoop.hdfs.web.resources.HttpOpParam.Op- Returns:
- true if the operation will do output.
-
getRedirect
public boolean getRedirect()- Specified by:
getRedirectin interfaceorg.apache.hadoop.hdfs.web.resources.HttpOpParam.Op- Returns:
- true if the operation will be redirected.
-
getExpectedHttpResponseCode
public int getExpectedHttpResponseCode()- Specified by:
getExpectedHttpResponseCodein interfaceorg.apache.hadoop.hdfs.web.resources.HttpOpParam.Op- Returns:
- true the expected http response code.
-
toQueryString
- Specified by:
toQueryStringin interfaceorg.apache.hadoop.hdfs.web.resources.HttpOpParam.Op- Returns:
- a URI query string.
-