@Path(value="/form") @Produces(value="text/html") public class FormResource extends Object
| Constructor and Description |
|---|
FormResource() |
| Modifier and Type | Method and Description |
|---|---|
Colours |
getColours() |
javax.ws.rs.core.Response |
getForm()
Produce a form from a static HTML file packaged with the compiled class
|
String |
processForm(javax.ws.rs.core.MultivaluedMap<String,String> formData)
Process the form submission.
|
@Path(value="colours") public Colours getColours()
@GET public javax.ws.rs.core.Response getForm()
@POST @Consumes(value="application/x-www-form-urlencoded") public String processForm(javax.ws.rs.core.MultivaluedMap<String,String> formData)
formData - the data from the form submissionCopyright © 2007-2016, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.