Class WebScriptJSFRequest
- java.lang.Object
-
- org.springframework.extensions.webscripts.WebScriptRequestImpl
-
- org.springframework.extensions.webscripts.WebScriptRequestURLImpl
-
- org.springframework.extensions.webscripts.jsf.WebScriptJSFRequest
-
- All Implemented Interfaces:
WebScriptRequest
public class WebScriptJSFRequest extends WebScriptRequestURLImpl
Implementation of a WebScript Request for the JSF environment.- Author:
- Kevin Roast
-
-
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, MULTIPART_FORM_DATA
-
-
Constructor Summary
Constructors Constructor Description WebScriptJSFRequest(Runtime container, java.lang.String[] scriptUrlParts, Match match)Construct
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAgent()Get User Agent TODO: Expand on known agentsorg.springframework.extensions.surf.util.ContentgetContent()Gets the request body as contentjava.lang.StringgetHeader(java.lang.String name)Gets the value of the named headerjava.lang.String[]getHeaderNames()Gets the names of all headers for this requestjava.lang.String[]getHeaderValues(java.lang.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 requestedjava.lang.StringgetServerPath()Get server portion of the request e.g.-
Methods inherited from class org.springframework.extensions.webscripts.WebScriptRequestURLImpl
getContextPath, getParameter, getParameterNames, getParameterValues, 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
-
-
-
-
Method Detail
-
getServerPath
public java.lang.String getServerPath()
Description copied from interface:WebScriptRequestGet server portion of the request e.g. scheme://host:port- Returns:
- server path
-
getAgent
public java.lang.String getAgent()
Description copied from interface:WebScriptRequestGet User Agent TODO: Expand on known agents- Returns:
- MSIE / Firefox
-
getHeaderNames
public java.lang.String[] getHeaderNames()
Description copied from interface:WebScriptRequestGets the names of all headers for this request- Returns:
- the names (empty, if none)
-
getHeader
public java.lang.String getHeader(java.lang.String name)
Description copied from interface:WebScriptRequestGets the value of the named header- Parameters:
name- header name- Returns:
- header value (or null, if header does not exist)
-
getHeaderValues
public java.lang.String[] getHeaderValues(java.lang.String name)
Description copied from interface:WebScriptRequestGets the (array) value of the named header Note: An array of one item is returned when a "single value" named header is requested- Parameters:
name- header name- Returns:
- array of values (or null, if header does not exist)
-
getContent
public org.springframework.extensions.surf.util.Content getContent()
Description copied from interface:WebScriptRequestGets the request body as content- Returns:
- request content (or null, if none)
-
-