public abstract class FileResource extends Object
| Constructor and Description | 
|---|
| FileResource(String filePath)The file path for uploads | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | handleUpload(File path) | 
| javax.ws.rs.core.Response | serve(String path) | 
| javax.ws.rs.core.Response | uploadFile(InputStream uploadedInputStream,
          org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail) | 
protected String filePath
public FileResource(String filePath)
filePath - the file path for uploads@GET
 @Path(value="/{path}")
 @Produces(value={"application/json","text/plain"})
public javax.ws.rs.core.Response serve(@PathParam(value="path")
                                                                                                                        String path)
                                                                                                                 throws Exception
Exception@POST @Path(value="/upload") @Produces(value="application/json") @Consumes(value="multipart/form-data") public javax.ws.rs.core.Response uploadFile(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail) throws IOException
IOExceptionpublic abstract void handleUpload(File path)
Copyright © 2015. All Rights Reserved.