public class SimpleServiceRequest extends Object implements ServiceRequest
CLIENT_WINDOW_ID_PARAMETER
Constructor and Description |
---|
SimpleServiceRequest(MutableHttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
String |
getClientWindowId() |
String |
getMandatoryParameter(String name) |
String |
getMandatoryParameter(String name,
List<String> validValues)
Gets the value of a request parameter while validating the value against a list of allowed
values
|
String[] |
getMandatoryParameterValues(String name,
List<String> validValues)
Gets an array of values for a request parameter while checking that the parameter is indeed
provided on the request and validating each of the values against a list of allowed values.
|
MutableHttpServletRequest |
getMutableRequest() |
String |
getParameter(String name) |
String |
getParameter(String name,
List<String> validValues) |
Map<String,String[]> |
getParameterMap() |
String[] |
getParameterValues(String name,
List<String> validValues) |
String |
getQueryString() |
javax.servlet.http.HttpServletRequest |
getRequest()
Wrapped current HTTP request
|
StringBuffer |
getRequestURL() |
javax.servlet.http.HttpSession |
getSession() |
public SimpleServiceRequest(MutableHttpServletRequest request)
public javax.servlet.http.HttpServletRequest getRequest()
ServiceRequest
getRequest
in interface ServiceRequest
public String getQueryString()
getQueryString
in interface ServiceRequest
public String getParameter(String name)
getParameter
in interface ServiceRequest
public String getParameter(String name, List<String> validValues) throws StandardServiceException
getParameter
in interface ServiceRequest
StandardServiceException
public String[] getParameterValues(String name, List<String> validValues) throws StandardServiceException
getParameterValues
in interface ServiceRequest
StandardServiceException
public String getMandatoryParameter(String name) throws StandardServiceException
getMandatoryParameter
in interface ServiceRequest
StandardServiceException
public String getMandatoryParameter(String name, List<String> validValues) throws StandardServiceException
ServiceRequest
getMandatoryParameter
in interface ServiceRequest
name
- The name of the parametervalidValues
- A list of valid parameter valuesStandardServiceException
- If the parameters value is not in the list of valid values
or if the parameter is not provided with the requestpublic String[] getMandatoryParameterValues(String name, List<String> validValues) throws StandardServiceException
ServiceRequest
getMandatoryParameterValues
in interface ServiceRequest
StandardServiceException
- If any of the values are not in the list of valid values or
if no parameter of that name is provided with the requestpublic Map<String,String[]> getParameterMap()
getParameterMap
in interface ServiceRequest
public javax.servlet.http.HttpSession getSession()
getSession
in interface ServiceRequest
public StringBuffer getRequestURL()
getRequestURL
in interface ServiceRequest
public String getClientWindowId()
getClientWindowId
in interface ServiceRequest
public MutableHttpServletRequest getMutableRequest()
getMutableRequest
in interface ServiceRequest
Copyright © 2008-2015 Index Data. All Rights Reserved.