javax.ws.rs.core
Class Form

java.lang.Object
  extended by javax.ws.rs.core.Form

public class Form
extends java.lang.Object

Represents the the HTML form data request entity encoded using the "application/x-www-form-urlencoded" content type.

Since:
2.0
Author:
Marek Potociar

Constructor Summary
Form()
           
Form(MultivaluedMap<java.lang.String,java.lang.String> store)
           
Form(java.lang.String parameterName, java.lang.String parameterValue)
           
 
Method Summary
 MultivaluedMap<java.lang.String,java.lang.String> asMap()
          Returns multivalued map representation of the form.
 Form param(java.lang.String name, java.lang.String value)
          Adds a new value to the specified form parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Form

public Form()

Form

public Form(java.lang.String parameterName,
            java.lang.String parameterValue)

Form

public Form(MultivaluedMap<java.lang.String,java.lang.String> store)
Method Detail

param

public Form param(java.lang.String name,
                  java.lang.String value)
Adds a new value to the specified form parameter.

Parameters:
name - name of the parameter.
value - new parameter value to be added.
Returns:
updated Form instance.

asMap

public MultivaluedMap<java.lang.String,java.lang.String> asMap()
Returns multivalued map representation of the form.

Returns:
form represented as multivalued map.
See Also:
MultivaluedMap


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.