org.apache.hadoop.hdfs.web.resources
Enum GetOpParam.Op

java.lang.Object
  extended by java.lang.Enum<GetOpParam.Op>
      extended by 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.


Enum Constant Summary
GET_BLOCK_LOCATIONS
          GET_BLOCK_LOCATIONS is a private unstable op.
GETCONTENTSUMMARY
           
GETDELEGATIONTOKEN
           
GETFILECHECKSUM
           
GETFILESTATUS
           
GETHOMEDIRECTORY
           
LISTSTATUS
           
NULL
           
OPEN
           
 
Method Summary
 boolean getDoOutput()
           
 int getExpectedHttpResponseCode()
           
 boolean getRedirect()
           
 boolean getRequireAuth()
           
 HttpOpParam.Type getType()
           
 String toQueryString()
           
static GetOpParam.Op valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GetOpParam.Op[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.