org.apache.hadoop.fs.http.server
Class HttpFSParams.FsPathParam

java.lang.Object
  extended by org.apache.hadoop.lib.wsrs.Param<String>
      extended by org.apache.hadoop.lib.wsrs.StringParam
          extended by org.apache.hadoop.fs.http.server.HttpFSParams.FsPathParam
Enclosing class:
HttpFSParams

public static class HttpFSParams.FsPathParam
extends StringParam

Class for path parameter.


Field Summary
 
Fields inherited from class org.apache.hadoop.lib.wsrs.Param
value
 
Constructor Summary
HttpFSParams.FsPathParam(String path)
          Constructor.
 
Method Summary
 void makeAbsolute()
          Makes the path absolute adding '/' to it.
 
Methods inherited from class org.apache.hadoop.lib.wsrs.StringParam
getDomain, parse, parseParam
 
Methods inherited from class org.apache.hadoop.lib.wsrs.Param
setValue, toString, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpFSParams.FsPathParam

public HttpFSParams.FsPathParam(String path)
Constructor.

Parameters:
path - parameter value.
Method Detail

makeAbsolute

public void makeAbsolute()
Makes the path absolute adding '/' to it.

This is required because JAX-RS resolution of paths does not add the root '/'.



Copyright © 2012 Apache Software Foundation. All Rights Reserved.