@Private
public class HttpFSServer
extends java.lang.Object
The HttpFSServer class uses Jersey JAX-RS to binds HTTP requests to the
different operations.
| Constructor | Description |
|---|---|
HttpFSServer() |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.net.URI |
createUploadRedirectionURL(javax.ws.rs.core.UriInfo uriInfo,
java.lang.Enum<?> uploadOperation) |
Creates the URL for an upload operation (create or append).
|
javax.ws.rs.core.Response |
delete(java.lang.String path,
HttpFSParametersProvider.OperationParam op,
Parameters params,
javax.servlet.http.HttpServletRequest request) |
Binding to handle DELETE requests.
|
javax.ws.rs.core.Response |
get(java.lang.String path,
javax.ws.rs.core.UriInfo uriInfo,
HttpFSParametersProvider.OperationParam op,
Parameters params,
javax.servlet.http.HttpServletRequest request) |
Binding to handle GET requests, supported operations are
|
javax.ws.rs.core.Response |
getRoot(javax.ws.rs.core.UriInfo uriInfo,
HttpFSParametersProvider.OperationParam op,
Parameters params,
javax.servlet.http.HttpServletRequest request) |
Special binding for '/' as it is not handled by the wildcard binding.
|
javax.ws.rs.core.Response |
post(java.io.InputStream is,
javax.ws.rs.core.UriInfo uriInfo,
java.lang.String path,
HttpFSParametersProvider.OperationParam op,
Parameters params,
javax.servlet.http.HttpServletRequest request) |
Binding to handle POST requests.
|
javax.ws.rs.core.Response |
postRoot(java.io.InputStream is,
javax.ws.rs.core.UriInfo uriInfo,
HttpFSParametersProvider.OperationParam op,
Parameters params,
javax.servlet.http.HttpServletRequest request) |
Special binding for '/' as it is not handled by the wildcard binding.
|
javax.ws.rs.core.Response |
put(java.io.InputStream is,
javax.ws.rs.core.UriInfo uriInfo,
java.lang.String path,
HttpFSParametersProvider.OperationParam op,
Parameters params,
javax.servlet.http.HttpServletRequest request) |
Binding to handle PUT requests.
|
javax.ws.rs.core.Response |
putRoot(java.io.InputStream is,
javax.ws.rs.core.UriInfo uriInfo,
HttpFSParametersProvider.OperationParam op,
Parameters params,
javax.servlet.http.HttpServletRequest request) |
Special binding for '/' as it is not handled by the wildcard binding.
|
public javax.ws.rs.core.Response getRoot(@Context
javax.ws.rs.core.UriInfo uriInfo,
HttpFSParametersProvider.OperationParam op,
@Context
Parameters params,
@Context
javax.servlet.http.HttpServletRequest request)
throws java.io.IOException,
FileSystemAccessException
uriInfo - uri info of the request.op - the HttpFS operation of the request.params - the HttpFS parameters of the request.java.io.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(java.lang.String path,
@Context
javax.ws.rs.core.UriInfo uriInfo,
HttpFSParametersProvider.OperationParam op,
@Context
Parameters params,
@Context
javax.servlet.http.HttpServletRequest request)
throws java.io.IOException,
FileSystemAccessException
path - the path for operation.uriInfo - uri info of the request.op - the HttpFS operation of the request.params - the HttpFS parameters of the request.java.io.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(java.lang.String path,
HttpFSParametersProvider.OperationParam op,
@Context
Parameters params,
@Context
javax.servlet.http.HttpServletRequest request)
throws java.io.IOException,
FileSystemAccessException
path - the path for operation.op - the HttpFS operation of the request.params - the HttpFS parameters of the request.java.io.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 postRoot(java.io.InputStream is,
@Context
javax.ws.rs.core.UriInfo uriInfo,
HttpFSParametersProvider.OperationParam op,
@Context
Parameters params,
@Context
javax.servlet.http.HttpServletRequest request)
throws java.io.IOException,
FileSystemAccessException
is - the inputstream for the request payload.uriInfo - the of the request.op - the HttpFS operation of the request.params - the HttpFS parameters of the request.java.io.IOException - thrown if an IO error occurred. Thrown exceptions are
handled by HttpFSExceptionProvider.FileSystemAccessException - thrown if a FileSystemAccess related
error occurred. Thrown exceptions are handled by
HttpFSExceptionProvider.public javax.ws.rs.core.Response post(java.io.InputStream is,
@Context
javax.ws.rs.core.UriInfo uriInfo,
java.lang.String path,
HttpFSParametersProvider.OperationParam op,
@Context
Parameters params,
@Context
javax.servlet.http.HttpServletRequest request)
throws java.io.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.java.io.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 java.net.URI createUploadRedirectionURL(javax.ws.rs.core.UriInfo uriInfo,
java.lang.Enum<?> uploadOperation)
uriInfo - uri info of the request.uploadOperation - operation for the upload URL.public javax.ws.rs.core.Response putRoot(java.io.InputStream is,
@Context
javax.ws.rs.core.UriInfo uriInfo,
HttpFSParametersProvider.OperationParam op,
@Context
Parameters params,
@Context
javax.servlet.http.HttpServletRequest request)
throws java.io.IOException,
FileSystemAccessException
is - the inputstream for the request payload.uriInfo - the of the request.op - the HttpFS operation of the request.params - the HttpFS parameters of the request.java.io.IOException - thrown if an IO error occurred. Thrown exceptions are
handled by HttpFSExceptionProvider.FileSystemAccessException - thrown if a FileSystemAccess related
error occurred. Thrown exceptions are handled by
HttpFSExceptionProvider.public javax.ws.rs.core.Response put(java.io.InputStream is,
@Context
javax.ws.rs.core.UriInfo uriInfo,
java.lang.String path,
HttpFSParametersProvider.OperationParam op,
@Context
Parameters params,
@Context
javax.servlet.http.HttpServletRequest request)
throws java.io.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.java.io.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.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.