Class FileServerService
- java.lang.Object
-
- org.wso2.msf4j.examples.petstore.fileserver.FileServerService
-
@HTTPMonitored @Path("/") public class FileServerService extends java.lang.ObjectFileServer service class. This uses request streaming to save the submitted files in the server.
-
-
Constructor Summary
Constructors Constructor Description FileServerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetFile(java.lang.String fileName)voidpostFile(org.wso2.msf4j.HttpStreamer httpStreamer, java.lang.String fileName)
-
-
-
Method Detail
-
postFile
@POST @Path("/{fileName}") @Timed public void postFile(@Context org.wso2.msf4j.HttpStreamer httpStreamer, @PathParam("fileName") java.lang.String fileName) throws java.io.IOException- Throws:
java.io.IOException
-
getFile
@GET @Path("/{fileName}") @Timed public javax.ws.rs.core.Response getFile(@PathParam("fileName") java.lang.String fileName)
-
-