org.apache.hadoop.hdfs.web.resources
Enum GetOpParam.Op
java.lang.Object
java.lang.Enum<GetOpParam.Op>
org.apache.hadoop.hdfs.web.resources.GetOpParam.Op
- All Implemented Interfaces:
- Serializable, Comparable<GetOpParam.Op>, HttpOpParam.Op
- Enclosing class:
- GetOpParam
public static enum GetOpParam.Op
- extends Enum<GetOpParam.Op>
- implements HttpOpParam.Op
Get operations.
OPEN
public static final GetOpParam.Op OPEN
GETFILESTATUS
public static final GetOpParam.Op GETFILESTATUS
LISTSTATUS
public static final GetOpParam.Op LISTSTATUS
GETCONTENTSUMMARY
public static final GetOpParam.Op GETCONTENTSUMMARY
GETFILECHECKSUM
public static final GetOpParam.Op GETFILECHECKSUM
GETHOMEDIRECTORY
public static final GetOpParam.Op GETHOMEDIRECTORY
GETDELEGATIONTOKEN
public static final GetOpParam.Op GETDELEGATIONTOKEN
GET_BLOCK_LOCATIONS
public static final GetOpParam.Op GET_BLOCK_LOCATIONS
- GET_BLOCK_LOCATIONS is a private unstable op.
NULL
public static final GetOpParam.Op NULL
values
public static GetOpParam.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 (GetOpParam.Op c : GetOpParam.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 GetOpParam.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 © 2013 Apache Software Foundation. All Rights Reserved.