Class HttpOpParam.TemporaryRedirectOp
java.lang.Object
org.apache.hadoop.hdfs.web.resources.HttpOpParam.TemporaryRedirectOp
- All Implemented Interfaces:
HttpOpParam.Op
- Enclosing class:
- HttpOpParam<E extends Enum<E> & HttpOpParam.Op>
Expects HTTP response 307 "Temporary Redirect".
-
Method Summary
Modifier and TypeMethodDescriptionbooleanintOverride the original expected response with "Temporary Redirect".booleanbooleangetType()Get an object for the given op.
-
Method Details
-
valueOf
Get an object for the given op. -
getType
- Specified by:
getTypein interfaceHttpOpParam.Op- Returns:
- the Http operation type.
-
getRequireAuth
public boolean getRequireAuth()- Specified by:
getRequireAuthin interfaceHttpOpParam.Op- Returns:
- true if the operation cannot use a token
-
getDoOutput
public boolean getDoOutput()- Specified by:
getDoOutputin interfaceHttpOpParam.Op- Returns:
- true if the operation will do output.
-
getRedirect
public boolean getRedirect()- Specified by:
getRedirectin interfaceHttpOpParam.Op- Returns:
- true if the operation will be redirected.
-
getExpectedHttpResponseCode
public int getExpectedHttpResponseCode()Override the original expected response with "Temporary Redirect".- Specified by:
getExpectedHttpResponseCodein interfaceHttpOpParam.Op- Returns:
- true the expected http response code.
-
toQueryString
- Specified by:
toQueryStringin interfaceHttpOpParam.Op- Returns:
- a URI query string.
-