public class RequestService extends Object
Constructor and Description |
---|
RequestService() |
Modifier and Type | Method and Description |
---|---|
Collection<org.apache.commons.fileupload.FileItem> |
getAllFileItem() |
static String |
getAttribute(javax.servlet.http.HttpServletRequest request,
String key,
String defaultValue) |
org.apache.commons.fileupload.FileItem |
getFileItem(String key) |
Map<String,org.apache.commons.fileupload.FileItem[]> |
getFileItemMap() |
org.apache.commons.fileupload.FileItem[] |
getFileItems(String key) |
org.apache.commons.fileupload.FileItem |
getFirstFileItem() |
static RequestService |
getInstance(javax.servlet.http.HttpServletRequest request) |
String |
getParameter(String key) |
String |
getParameter(String key,
String outDefault) |
Map<String,Object> |
getParameterForAttributeMap() |
List<String> |
getParameterListValues(String key) |
List<String> |
getParameterListValues(String key,
List<String> defaultValue) |
Map<String,Object> |
getParameterMap() |
Map<String,String[]> |
getParametersMap() |
String[] |
getParameterValues(String key) |
String[] |
getParameterValues(String key,
String[] defaultValue) |
javax.servlet.http.HttpServletRequest |
getRequest() |
static String |
getURI(javax.servlet.http.HttpServletRequest request) |
void |
putParameter(String key,
String value) |
boolean |
removeParameter(String name) |
void |
restoreParameters()
restore saved parameters after operations on request.
|
void |
saveParameters()
store parameter interal for restore after operations on request.
|
void |
setParameter(String key,
String value) |
public static RequestService getInstance(javax.servlet.http.HttpServletRequest request)
public List<String> getParameterListValues(String key, List<String> defaultValue)
public org.apache.commons.fileupload.FileItem getFileItem(String key)
public org.apache.commons.fileupload.FileItem[] getFileItems(String key)
public Collection<org.apache.commons.fileupload.FileItem> getAllFileItem()
public org.apache.commons.fileupload.FileItem getFirstFileItem()
public static String getAttribute(javax.servlet.http.HttpServletRequest request, String key, String defaultValue)
public static String getURI(javax.servlet.http.HttpServletRequest request)
public javax.servlet.http.HttpServletRequest getRequest()
public void saveParameters()
public void restoreParameters()
public boolean removeParameter(String name)
Copyright © 2012-2018. All Rights Reserved.