Class FormResource
- java.lang.Object
-
- org.glassfish.jersey.examples.console.resources.FormResource
-
-
Constructor Summary
Constructors Constructor Description FormResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColoursgetColours()ResponsegetForm()Produce a form from a static HTML file packaged with the compiled classStringprocessForm(MultivaluedMap<String,String> formData)Process the form submission.
-
-
-
Method Detail
-
getForm
@GET public Response getForm()
Produce a form from a static HTML file packaged with the compiled class- Returns:
- a stream from which the HTML form can be read.
-
processForm
@POST @Consumes("application/x-www-form-urlencoded") public String processForm(MultivaluedMap<String,String> formData)
Process the form submission. Produces a table showing the form field values submitted.- Parameters:
formData- the data from the form submission- Returns:
- a dynamically generated HTML table.
-
-