|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.examples.console.resources.FormResource
@Path(value="/form") @Produces(value="text/html") public class FormResource
A Web form resource, produces the form and processes the results of submitting it.
| Constructor Summary | |
|---|---|
FormResource()
|
|
| Method Summary | |
|---|---|
Colours |
getColours()
|
Response |
getForm()
Produce a form from a static HTML file packaged with the compiled class |
java.lang.String |
processForm(MultivaluedMap<java.lang.String,java.lang.String> formData)
Process the form submission. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormResource()
| Method Detail |
|---|
@Path(value="colours") public Colours getColours()
@GET public Response getForm()
@POST @Consumes(value="application/x-www-form-urlencoded") public java.lang.String processForm(MultivaluedMap<java.lang.String,java.lang.String> formData)
formData - the data from the form submission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||