Class FormService


  • @Path("/formService")
    public class FormService
    extends java.lang.Object
    Sample FormParam Service class.
    • Constructor Summary

      Constructors 
      Constructor Description
      FormService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response complexForm​(java.io.File file, int id, java.util.List<Person> personList, Company company)  
      javax.ws.rs.core.Response multipleFiles​(java.util.List<java.io.File> files)  
      javax.ws.rs.core.Response multipleFiles​(org.wso2.msf4j.formparam.FileInfo fileInfo, java.io.InputStream inputStream)  
      javax.ws.rs.core.Response simpleForm​(int age, java.lang.String name)  
      javax.ws.rs.core.Response simpleFormStreaming​(org.wso2.msf4j.formparam.FormParamIterator formParamIterator)  
      javax.ws.rs.core.Response simpleFormWithFormParam​(java.lang.Long age, java.lang.String name)  
      javax.ws.rs.core.Response simpleFormWithFormParamAndList​(java.util.List<java.lang.String> name)  
      javax.ws.rs.core.Response simpleFormWithFormParamAndSet​(java.util.Set<java.lang.String> name)  
      javax.ws.rs.core.Response simpleFormWithFormParamAndSortedSet​(java.util.SortedSet<java.lang.String> name)  
      javax.ws.rs.core.Response simpleFormWithList​(java.util.List<java.lang.String> name)  
      • Methods inherited from class java.lang.Object

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

      • FormService

        public FormService()
    • Method Detail

      • simpleFormWithFormParam

        @POST
        @Path("/simpleFormWithFormParam")
        @Consumes({"application/x-www-form-urlencoded","multipart/form-data"})
        public javax.ws.rs.core.Response simpleFormWithFormParam​(@FormParam("age")
                                                                 java.lang.Long age,
                                                                 @FormParam("name")
                                                                 java.lang.String name)
      • simpleFormWithFormParamAndList

        @POST
        @Path("/simpleFormWithFormParamAndList")
        @Consumes({"application/x-www-form-urlencoded","multipart/form-data"})
        public javax.ws.rs.core.Response simpleFormWithFormParamAndList​(@FormParam("name")
                                                                        java.util.List<java.lang.String> name)
      • simpleFormWithFormParamAndSet

        @POST
        @Path("/simpleFormWithFormParamAndSet")
        @Consumes({"application/x-www-form-urlencoded","multipart/form-data"})
        public javax.ws.rs.core.Response simpleFormWithFormParamAndSet​(@FormParam("name")
                                                                       java.util.Set<java.lang.String> name)
      • simpleFormWithFormParamAndSortedSet

        @POST
        @Path("/simpleFormWithFormParamAndSortedSet")
        @Consumes({"application/x-www-form-urlencoded","multipart/form-data"})
        public javax.ws.rs.core.Response simpleFormWithFormParamAndSortedSet​(@FormParam("name")
                                                                             java.util.SortedSet<java.lang.String> name)
      • simpleForm

        @POST
        @Path("/simpleForm")
        @Consumes({"application/x-www-form-urlencoded","multipart/form-data"})
        public javax.ws.rs.core.Response simpleForm​(@FormDataParam("age")
                                                    int age,
                                                    @FormDataParam("name")
                                                    java.lang.String name)
      • simpleFormWithList

        @POST
        @Path("/simpleFormWithList")
        @Consumes({"application/x-www-form-urlencoded","multipart/form-data"})
        public javax.ws.rs.core.Response simpleFormWithList​(@FormDataParam("name")
                                                            java.util.List<java.lang.String> name)
      • simpleFormStreaming

        @POST
        @Path("/simpleFormStreaming")
        @Consumes("multipart/form-data")
        public javax.ws.rs.core.Response simpleFormStreaming​(@Context
                                                             org.wso2.msf4j.formparam.FormParamIterator formParamIterator)
      • complexForm

        @POST
        @Path("/complexForm")
        @Consumes("multipart/form-data")
        public javax.ws.rs.core.Response complexForm​(@FormDataParam("file")
                                                     java.io.File file,
                                                     @FormDataParam("id")
                                                     int id,
                                                     @FormDataParam("people")
                                                     java.util.List<Person> personList,
                                                     @FormDataParam("company")
                                                     Company company)
      • multipleFiles

        @POST
        @Path("/multipleFiles")
        @Consumes("multipart/form-data")
        public javax.ws.rs.core.Response multipleFiles​(@FormDataParam("files")
                                                       java.util.List<java.io.File> files)
      • multipleFiles

        @POST
        @Path("/streamFile")
        @Consumes("multipart/form-data")
        public javax.ws.rs.core.Response multipleFiles​(@FormDataParam("file")
                                                       org.wso2.msf4j.formparam.FileInfo fileInfo,
                                                       @FormDataParam("file")
                                                       java.io.InputStream inputStream)