|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.WebScriptRequestImpl org.springframework.extensions.webscripts.WebScriptRequestURLImpl org.springframework.extensions.webscripts.LocalWebScriptRequest
public class LocalWebScriptRequest
The Class LocalWebScriptRequest.
Field Summary |
---|
Fields inherited from class org.springframework.extensions.webscripts.WebScriptRequestURLImpl |
---|
contextPath, pathInfo, queryArgs, queryArgsMulti, queryString, serviceMatch, servletPath |
Fields inherited from class org.springframework.extensions.webscripts.WebScriptRequestImpl |
---|
logger |
Constructor Summary | |
---|---|
LocalWebScriptRequest(Runtime runtime,
String scriptUrl,
Match match,
Map<String,String> parameters,
ServerProperties serverProps,
javax.servlet.http.HttpServletRequest request,
LocalWebScriptContext context)
Instantiates a new local web script request. |
Method Summary | |
---|---|
String |
getAgent()
Get User Agent TODO: Expand on known agents |
Content |
getContent()
Gets the request body as content |
String |
getHeader(String name)
Gets the value of the named header |
String[] |
getHeaderNames()
Gets the names of all headers for this request |
String[] |
getHeaderValues(String name)
Gets the (array) value of the named header Note: An array of one item is returned when a "single value" named header is requested |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Gets the http servlet request. |
String |
getParameter(String name)
Gets the value of the named parameter |
String[] |
getParameterNames()
Gets the names of all parameters on the Url |
String[] |
getParameterValues(String name)
Gets the (array) value of the named parameter Note: An array of one item is returned when a "single value" named parameter is requested |
String |
getServerPath()
Get server portion of the request e.g. |
Methods inherited from class org.springframework.extensions.webscripts.WebScriptRequestURLImpl |
---|
getContextPath, getPathInfo, getQueryString, getServiceContextPath, getServiceMatch, getServicePath, getURL, splitURL, splitURL, toString |
Methods inherited from class org.springframework.extensions.webscripts.WebScriptRequestImpl |
---|
forceSuccessStatus, getContentType, getExtensionPath, getFormat, getFormatStyle, getJSONCallback, getRuntime, isGuest, parseContent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocalWebScriptRequest(Runtime runtime, String scriptUrl, Match match, Map<String,String> parameters, ServerProperties serverProps, javax.servlet.http.HttpServletRequest request, LocalWebScriptContext context)
runtime
- the runtimescriptUrl
- the script urlmatch
- the matchparameters
- the parametersrequest
- the requestMethod Detail |
---|
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public String[] getParameterNames()
WebScriptRequest
getParameterNames
in interface WebScriptRequest
getParameterNames
in class WebScriptRequestURLImpl
public String getParameter(String name)
WebScriptRequest
getParameter
in interface WebScriptRequest
getParameter
in class WebScriptRequestURLImpl
name
- parameter name
public String[] getParameterValues(String name)
WebScriptRequest
getParameterValues
in interface WebScriptRequest
getParameterValues
in class WebScriptRequestURLImpl
name
- parameter name
public String getAgent()
WebScriptRequest
public String getServerPath()
WebScriptRequest
public String[] getHeaderNames()
WebScriptRequest
public String getHeader(String name)
WebScriptRequest
name
- header name
public String[] getHeaderValues(String name)
WebScriptRequest
name
- header name
public Content getContent()
WebScriptRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |