org.apache.hadoop.hdfs.web.resources
Class HttpOpParam.TemporaryRedirectOp

java.lang.Object
  extended by org.apache.hadoop.hdfs.web.resources.HttpOpParam.TemporaryRedirectOp
All Implemented Interfaces:
HttpOpParam.Op
Enclosing class:
HttpOpParam<E extends Enum<E> & HttpOpParam.Op>

public static class HttpOpParam.TemporaryRedirectOp
extends Object
implements HttpOpParam.Op

Expects HTTP response 307 "Temporary Redirect".


Method Summary
 boolean getDoOutput()
           
 int getExpectedHttpResponseCode()
          Override the original expected response with "Temporary Redirect".
 boolean getRedirect()
           
 boolean getRequireAuth()
           
 HttpOpParam.Type getType()
           
 String toQueryString()
           
static HttpOpParam.TemporaryRedirectOp valueOf(HttpOpParam.Op op)
          Get an object for the given op.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

valueOf

public static HttpOpParam.TemporaryRedirectOp valueOf(HttpOpParam.Op op)
Get an object for the given op.


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()
Override the original expected response with "Temporary Redirect".

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.