org.glassfish.jersey.examples.console.resources
Class FormResource
java.lang.Object
org.glassfish.jersey.examples.console.resources.FormResource
@Path(value="/form")
public class FormResource
- extends Object
A Web form resource, produces the form and processes the results of
submitting it.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormResource
public FormResource()
getColours
@Path(value="colours")
public Colours getColours()
getForm
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
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.
Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.