@Path(value="/formService") public class FormService extends Object
| Constructor and Description |
|---|
FormService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
complexForm(File file,
int id,
List<Person> personList,
Company company) |
javax.ws.rs.core.Response |
multipleFiles(org.wso2.msf4j.formparam.FileInfo fileInfo,
InputStream inputStream) |
javax.ws.rs.core.Response |
multipleFiles(List<File> files) |
javax.ws.rs.core.Response |
simpleForm(int age,
String name) |
javax.ws.rs.core.Response |
simpleFormStreaming(org.wso2.msf4j.formparam.FormParamIterator formParamIterator) |
javax.ws.rs.core.Response |
simpleFormWithFormParam(Long age,
String name) |
javax.ws.rs.core.Response |
simpleFormWithFormParamAndList(List<String> name) |
javax.ws.rs.core.Response |
simpleFormWithFormParamAndSet(Set<String> name) |
javax.ws.rs.core.Response |
simpleFormWithFormParamAndSortedSet(SortedSet<String> name) |
javax.ws.rs.core.Response |
simpleFormWithList(List<String> name) |
@POST
@Path(value="/simpleFormWithFormParam")
@Consumes(value={"application/x-www-form-urlencoded","multipart/form-data"})
public javax.ws.rs.core.Response simpleFormWithFormParam(@FormParam(value="age")
Long age,
@FormParam(value="name")
String name)
@POST
@Path(value="/simpleFormWithFormParamAndList")
@Consumes(value={"application/x-www-form-urlencoded","multipart/form-data"})
public javax.ws.rs.core.Response simpleFormWithFormParamAndList(@FormParam(value="name")
List<String> name)
@POST
@Path(value="/simpleFormWithFormParamAndSet")
@Consumes(value={"application/x-www-form-urlencoded","multipart/form-data"})
public javax.ws.rs.core.Response simpleFormWithFormParamAndSet(@FormParam(value="name")
Set<String> name)
@POST
@Path(value="/simpleFormWithFormParamAndSortedSet")
@Consumes(value={"application/x-www-form-urlencoded","multipart/form-data"})
public javax.ws.rs.core.Response simpleFormWithFormParamAndSortedSet(@FormParam(value="name")
SortedSet<String> name)
@POST
@Path(value="/simpleForm")
@Consumes(value={"application/x-www-form-urlencoded","multipart/form-data"})
public javax.ws.rs.core.Response simpleForm(@FormDataParam(value="age")
int age,
@FormDataParam(value="name")
String name)
@POST
@Path(value="/simpleFormWithList")
@Consumes(value={"application/x-www-form-urlencoded","multipart/form-data"})
public javax.ws.rs.core.Response simpleFormWithList(@FormDataParam(value="name")
List<String> name)
@POST
@Path(value="/simpleFormStreaming")
@Consumes(value="multipart/form-data")
public javax.ws.rs.core.Response simpleFormStreaming(@Context
org.wso2.msf4j.formparam.FormParamIterator formParamIterator)
@POST
@Path(value="/complexForm")
@Consumes(value="multipart/form-data")
public javax.ws.rs.core.Response complexForm(@FormDataParam(value="file")
File file,
@FormDataParam(value="id")
int id,
@FormDataParam(value="people")
List<Person> personList,
@FormDataParam(value="company")
Company company)
@POST
@Path(value="/multipleFiles")
@Consumes(value="multipart/form-data")
public javax.ws.rs.core.Response multipleFiles(@FormDataParam(value="files")
List<File> files)
@POST
@Path(value="/streamFile")
@Consumes(value="multipart/form-data")
public javax.ws.rs.core.Response multipleFiles(@FormDataParam(value="file")
org.wso2.msf4j.formparam.FileInfo fileInfo,
@FormDataParam(value="file")
InputStream inputStream)
Copyright © 2025 WSO2. All rights reserved.