Package org.wso2.msf4j.example
Class FormService
- java.lang.Object
-
- org.wso2.msf4j.example.FormService
-
@Path("/formService") public class FormService extends java.lang.ObjectSample 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.ResponsecomplexForm(java.io.File file, int id, java.util.List<Person> personList, Company company)javax.ws.rs.core.ResponsemultipleFiles(java.util.List<java.io.File> files)javax.ws.rs.core.ResponsemultipleFiles(org.wso2.msf4j.formparam.FileInfo fileInfo, java.io.InputStream inputStream)javax.ws.rs.core.ResponsesimpleForm(int age, java.lang.String name)javax.ws.rs.core.ResponsesimpleFormStreaming(org.wso2.msf4j.formparam.FormParamIterator formParamIterator)javax.ws.rs.core.ResponsesimpleFormWithFormParam(java.lang.Long age, java.lang.String name)javax.ws.rs.core.ResponsesimpleFormWithFormParamAndList(java.util.List<java.lang.String> name)javax.ws.rs.core.ResponsesimpleFormWithFormParamAndSet(java.util.Set<java.lang.String> name)javax.ws.rs.core.ResponsesimpleFormWithFormParamAndSortedSet(java.util.SortedSet<java.lang.String> name)javax.ws.rs.core.ResponsesimpleFormWithList(java.util.List<java.lang.String> name)
-
-
-
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)
-
-