org.apache.hadoop.hdfs.web.resources
Class Param<T,D extends org.apache.hadoop.hdfs.web.resources.Param.Domain<T>>

java.lang.Object
  extended by org.apache.hadoop.hdfs.web.resources.Param<T,D>
Direct Known Subclasses:
AccessTimeParam, BlockSizeParam, BufferSizeParam, ConcatSourcesParam, CreateParentParam, DelegationParam, DestinationParam, DoAsParam, GroupParam, HttpOpParam, LengthParam, ModificationTimeParam, NamenodeRpcAddressParam, OffsetParam, OverwriteParam, OwnerParam, PermissionParam, RecursiveParam, RenameOptionSetParam, RenewerParam, ReplicationParam, TokenArgumentParam, UriFsPathParam, UserParam

public abstract class Param<T,D extends org.apache.hadoop.hdfs.web.resources.Param.Domain<T>>
extends Object

Base class of parameters.


Method Summary
abstract  String getName()
           
 T getValue()
           
abstract  String getValueString()
           
static String toSortedString(String separator, Param<?,?>... parameters)
          Convert the parameters to a sorted String.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toSortedString

public static String toSortedString(String separator,
                                    Param<?,?>... parameters)
Convert the parameters to a sorted String.

Parameters:
separator - URI parameter separator character
parameters - parameters to encode into a string
Returns:
the encoded URI string

getValue

public final T getValue()
Returns:
the parameter value.

getValueString

public abstract String getValueString()
Returns:
the parameter value as a string

getName

public abstract String getName()
Returns:
the parameter name.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.