|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.contextfw.web.application.request.Request
public class Request
Provides functionality to access and set GET/POST-parameters through consistent abstraction.
Request is an abstraction that provides a set of functionalities to extend the usage of GET/POST-parameters. It tries to make handling parameters more convinient.
Request is an interface
and can be replaced with test-requests.
| Field Summary | |
|---|---|
static String |
REQUEST_SEPARATOR
|
| Constructor Summary | |
|---|---|
Request(javax.servlet.http.HttpServletRequest httpRequest)
Sole constructor. |
|
| Method Summary | |
|---|---|
RequestParameter |
param(String name)
Fetches a parameter from page data with given name This method is the only way to create new parameters. |
RequestParameter |
param(String name,
int index)
Fetches a parameter from page data with given name and index This is a convience method to fetch parameters with numeral index. |
void |
reinitialize(javax.servlet.http.HttpServletRequest httpRequest)
|
Request |
subRequest(String name)
|
Request |
subRequest(String name,
long defaultIndex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REQUEST_SEPARATOR
| Constructor Detail |
|---|
public Request(javax.servlet.http.HttpServletRequest httpRequest)
| Method Detail |
|---|
public void reinitialize(javax.servlet.http.HttpServletRequest httpRequest)
public Request subRequest(String name)
public Request subRequest(String name,
long defaultIndex)
public RequestParameter param(String name)
throws NullPointerException
This method is the only way to create new parameters. If parameter does not yet exist, it is automatically created an returned. Otherwise already existing parameter is returned
If a parameter without a name is tried to be fetched, then exception is thrown.
name - Name of the parameter
NullPointerException - Thrown is name is null.
public RequestParameter param(String name,
int index)
throws NullPointerException
This is a convience method to fetch parameters with numeral index.
The index is simply appended to the end of the name for instance
name2. Otherwise behaviour is same with the single name.
name - Name of the parameterindex - Index of the parameter
NullPointerException - Thrown is name is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||