org.apache.hadoop.hdfs.web.resources
Enum PostOpParam.Op
java.lang.Object
java.lang.Enum<PostOpParam.Op>
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.
APPEND
public static final PostOpParam.Op APPEND
NULL
public static final PostOpParam.Op NULL
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.
getDoOutput
public boolean getDoOutput()
- Specified by:
getDoOutput
in interface HttpOpParam.Op
- Returns:
- true if the operation will do output.
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 © 2012 Apache Software Foundation. All Rights Reserved.