org.apache.hadoop.hdfs.web.resources
Enum PutOpParam.Op
java.lang.Object
java.lang.Enum<PutOpParam.Op>
org.apache.hadoop.hdfs.web.resources.PutOpParam.Op
- All Implemented Interfaces:
- Serializable, Comparable<PutOpParam.Op>, HttpOpParam.Op
- Enclosing class:
- PutOpParam
public static enum PutOpParam.Op
- extends Enum<PutOpParam.Op>
- implements HttpOpParam.Op
Put operations.
CREATE
public static final PutOpParam.Op CREATE
MKDIRS
public static final PutOpParam.Op MKDIRS
CREATESYMLINK
public static final PutOpParam.Op CREATESYMLINK
RENAME
public static final PutOpParam.Op RENAME
SETREPLICATION
public static final PutOpParam.Op SETREPLICATION
SETOWNER
public static final PutOpParam.Op SETOWNER
SETPERMISSION
public static final PutOpParam.Op SETPERMISSION
SETTIMES
public static final PutOpParam.Op SETTIMES
RENEWDELEGATIONTOKEN
public static final PutOpParam.Op RENEWDELEGATIONTOKEN
CANCELDELEGATIONTOKEN
public static final PutOpParam.Op CANCELDELEGATIONTOKEN
MODIFYACLENTRIES
public static final PutOpParam.Op MODIFYACLENTRIES
REMOVEACLENTRIES
public static final PutOpParam.Op REMOVEACLENTRIES
REMOVEDEFAULTACL
public static final PutOpParam.Op REMOVEDEFAULTACL
REMOVEACL
public static final PutOpParam.Op REMOVEACL
SETACL
public static final PutOpParam.Op SETACL
SETXATTR
public static final PutOpParam.Op SETXATTR
REMOVEXATTR
public static final PutOpParam.Op REMOVEXATTR
CREATESNAPSHOT
public static final PutOpParam.Op CREATESNAPSHOT
RENAMESNAPSHOT
public static final PutOpParam.Op RENAMESNAPSHOT
NULL
public static final PutOpParam.Op NULL
values
public static PutOpParam.Op[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (PutOpParam.Op c : PutOpParam.Op.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PutOpParam.Op valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException
- if the argument is null
getType
public HttpOpParam.Type getType()
- Specified by:
getType
in interface HttpOpParam.Op
- Returns:
- the Http operation type.
getRequireAuth
public boolean getRequireAuth()
- Specified by:
getRequireAuth
in interface HttpOpParam.Op
- Returns:
- true if the operation cannot use a token
getDoOutput
public boolean getDoOutput()
- Specified by:
getDoOutput
in interface HttpOpParam.Op
- Returns:
- true if the operation will do output.
getRedirect
public boolean getRedirect()
- Specified by:
getRedirect
in interface HttpOpParam.Op
- Returns:
- true if the operation will be redirected.
getExpectedHttpResponseCode
public int getExpectedHttpResponseCode()
- Specified by:
getExpectedHttpResponseCode
in interface HttpOpParam.Op
- Returns:
- true the expected http response code.
toQueryString
public String toQueryString()
- Specified by:
toQueryString
in interface HttpOpParam.Op
- Returns:
- a URI query string.
Copyright © 2014 Apache Software Foundation. All Rights Reserved.