|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.infront.cartridge.RequestParamMarshaller
public class RequestParamMarshaller
A class that transforms request parameter values into a ContentItem
.
Field Summary | |
---|---|
protected javax.servlet.http.HttpServletRequest |
mRequest
|
protected Map<String,String> |
mRequestMap
|
Constructor Summary | |
---|---|
RequestParamMarshaller()
|
Method Summary | |
---|---|
static void |
convertToBoolean(ContentItem item,
String key)
Helper method for converting the String value associated with a key to a boolean. |
static void |
convertToInt(ContentItem item,
String key)
Helper method for converting the String value associated with a key to an integer. |
static void |
convertToList(ContentItem item,
String key)
Helper method for converting a pipe delimited String value associated with a key to a list of strings. |
static void |
convertToLong(ContentItem item,
String key)
Helper method for converting the String value associated with a key to a long. |
ContentItem |
marshall()
Creates a new ContentItem and populates it with information from the HttpServletRequest. |
void |
override(ContentItem contentItem)
Helper method for layering a ContentItem on top of another ContentItem. |
void |
setHttpServletRequest(javax.servlet.http.HttpServletRequest pRequest)
Sets the current servlet request. |
void |
setRequestMap(Map<String,String> requestMap)
Sets the mapping of request parameters to ContentItem keys. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.servlet.http.HttpServletRequest mRequest
protected Map<String,String> mRequestMap
Constructor Detail |
---|
public RequestParamMarshaller()
Method Detail |
---|
public void setHttpServletRequest(javax.servlet.http.HttpServletRequest pRequest)
public void setRequestMap(Map<String,String> requestMap)
public ContentItem marshall()
public void override(ContentItem contentItem)
contentItem
- the ContentItem to mutate by overlaying the values
from another ContentItempublic static void convertToLong(ContentItem item, String key)
public static void convertToInt(ContentItem item, String key)
public static void convertToBoolean(ContentItem item, String key)
public static void convertToList(ContentItem item, String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |