|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.fs.http.server.HttpFSServer
@InterfaceAudience.Private public class HttpFSServer
Main class of HttpFSServer server.
TheHttpFSServer class uses Jersey JAX-RS to binds HTTP requests to the
different operations.
| Constructor Summary | |
|---|---|
HttpFSServer()
|
|
| Method Summary | |
|---|---|
protected URI |
createUploadRedirectionURL(javax.ws.rs.core.UriInfo uriInfo,
Enum<?> uploadOperation)
Creates the URL for an upload operation (create or append). |
javax.ws.rs.core.Response |
delete(String path,
HttpFSParametersProvider.OperationParam op,
Parameters params)
Binding to handle DELETE requests. |
javax.ws.rs.core.Response |
get(String path,
HttpFSParametersProvider.OperationParam op,
Parameters params)
Binding to handle GET requests, supported operations are |
javax.ws.rs.core.Response |
getRoot(HttpFSParametersProvider.OperationParam op,
Parameters params)
Special binding for '/' as it is not handled by the wildcard binding. |
javax.ws.rs.core.Response |
post(InputStream is,
javax.ws.rs.core.UriInfo uriInfo,
String path,
HttpFSParametersProvider.OperationParam op,
Parameters params)
Binding to handle POST requests. |
javax.ws.rs.core.Response |
put(InputStream is,
javax.ws.rs.core.UriInfo uriInfo,
String path,
HttpFSParametersProvider.OperationParam op,
Parameters params)
Binding to handle PUT requests. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpFSServer()
| Method Detail |
|---|
public javax.ws.rs.core.Response getRoot(HttpFSParametersProvider.OperationParam op,
@Context
Parameters params)
throws IOException,
FileSystemAccessException
op - the HttpFS operation of the request.params - the HttpFS parameters of the request.
IOException - thrown if an IO error occurred. Thrown exceptions are
handled by HttpFSExceptionProvider.
FileSystemAccessException - thrown if a FileSystemAccess releated
error occurred. Thrown exceptions are handled by
HttpFSExceptionProvider.
public javax.ws.rs.core.Response get(String path,
HttpFSParametersProvider.OperationParam op,
@Context
Parameters params)
throws IOException,
FileSystemAccessException
path - the path for operation.op - the HttpFS operation of the request.params - the HttpFS parameters of the request.
IOException - thrown if an IO error occurred. Thrown exceptions are
handled by HttpFSExceptionProvider.
FileSystemAccessException - thrown if a FileSystemAccess releated
error occurred. Thrown exceptions are handled by
HttpFSExceptionProvider.
public javax.ws.rs.core.Response delete(String path,
HttpFSParametersProvider.OperationParam op,
@Context
Parameters params)
throws IOException,
FileSystemAccessException
path - the path for operation.op - the HttpFS operation of the request.params - the HttpFS parameters of the request.
IOException - thrown if an IO error occurred. Thrown exceptions are
handled by HttpFSExceptionProvider.
FileSystemAccessException - thrown if a FileSystemAccess releated
error occurred. Thrown exceptions are handled by
HttpFSExceptionProvider.
public javax.ws.rs.core.Response post(InputStream is,
@Context
javax.ws.rs.core.UriInfo uriInfo,
String path,
HttpFSParametersProvider.OperationParam op,
@Context
Parameters params)
throws IOException,
FileSystemAccessException
is - the inputstream for the request payload.uriInfo - the of the request.path - the path for operation.op - the HttpFS operation of the request.params - the HttpFS parameters of the request.
IOException - thrown if an IO error occurred. Thrown exceptions are
handled by HttpFSExceptionProvider.
FileSystemAccessException - thrown if a FileSystemAccess releated
error occurred. Thrown exceptions are handled by
HttpFSExceptionProvider.
protected URI createUploadRedirectionURL(javax.ws.rs.core.UriInfo uriInfo,
Enum<?> uploadOperation)
uriInfo - uri info of the request.uploadOperation - operation for the upload URL.
public javax.ws.rs.core.Response put(InputStream is,
@Context
javax.ws.rs.core.UriInfo uriInfo,
String path,
HttpFSParametersProvider.OperationParam op,
@Context
Parameters params)
throws IOException,
FileSystemAccessException
is - the inputstream for the request payload.uriInfo - the of the request.path - the path for operation.op - the HttpFS operation of the request.params - the HttpFS parameters of the request.
IOException - thrown if an IO error occurred. Thrown exceptions are
handled by HttpFSExceptionProvider.
FileSystemAccessException - thrown if a FileSystemAccess releated
error occurred. Thrown exceptions are handled by
HttpFSExceptionProvider.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||