Class FileServerService


  • @HTTPMonitored
    @Path("/")
    public class FileServerService
    extends java.lang.Object
    FileServer service class. This uses request streaming to save the submitted files in the server.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response getFile​(java.lang.String fileName)  
      void postFile​(org.wso2.msf4j.HttpStreamer httpStreamer, java.lang.String fileName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileServerService

        public FileServerService()
    • 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)