|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.servlet.RequestParameterDecoder
public class RequestParameterDecoder
This class decodes the request parameters in order to set them to a simple specified POJO which
attributes are annotated by FormParam
or
XmlElement
annotation.
It is possible to annotate the attribute with UnescapeHtml
annotation in order to
perform an HTML unescape operation (string type only).
WARNINGS:
XmlElement
is not yet
handled
Constructor Summary | |
---|---|
RequestParameterDecoder()
|
Method Summary | ||
---|---|---|
static
|
decode(HttpRequest request,
Class<OBJECT> objectClass)
Decodes the request parameters in order to return an object filled with their values. |
|
static
|
decode(javax.servlet.ServletRequest request,
Class<OBJECT> objectClass)
Decodes the request parameters in order to return an object filled with their values. |
|
protected static RequestParameterDecoder |
getInstance()
Gets the singleton instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestParameterDecoder()
Method Detail |
---|
protected static RequestParameterDecoder getInstance()
public static <OBJECT> OBJECT decode(javax.servlet.ServletRequest request, Class<OBJECT> objectClass)
OBJECT
- the type of the requested returned instance.request
- the ServletRequest
that will be wrapped by HttpRequest
objectClass
- the class of the requested returned instance.
public static <OBJECT> OBJECT decode(HttpRequest request, Class<OBJECT> objectClass)
OBJECT
- the type of the requested returned instance.request
- the HttpRequest
wrapper that handle efficiently all parameters,
included
those of multipart request type.objectClass
- the class of the requested returned instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |