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

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

public static enum PostOpParam.Op
extends Enum<PostOpParam.Op>
implements HttpOpParam.Op

Post operations.


Enum Constant Summary
APPEND
           
CONCAT
           
NULL
           
 
Method Summary
 boolean getDoOutput()
           
 int getExpectedHttpResponseCode()
           
 boolean getRedirect()
           
 boolean getRequireAuth()
           
 HttpOpParam.Type getType()
           
 String toQueryString()
           
static PostOpParam.Op valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PostOpParam.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

APPEND

public static final PostOpParam.Op APPEND

CONCAT

public static final PostOpParam.Op CONCAT

NULL

public static final PostOpParam.Op NULL
Method Detail

values

public static PostOpParam.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 (PostOpParam.Op c : PostOpParam.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 PostOpParam.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.