Class WebScriptPortletRequest
- java.lang.Object
-
- org.springframework.extensions.webscripts.WebScriptRequestImpl
-
- org.springframework.extensions.webscripts.WebScriptRequestURLImpl
-
- org.springframework.extensions.webscripts.portlet.WebScriptPortletRequest
-
- All Implemented Interfaces:
WebScriptRequest
public class WebScriptPortletRequest extends WebScriptRequestURLImpl
JSR-168 Web Script Request- Author:
- davidc
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALFPORTLETUSERNAME-
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 WebScriptPortletRequest(Runtime container, javax.portlet.PortletRequest req, java.lang.String[] scriptUrlParts, Match serviceMatch)ConstructWebScriptPortletRequest(Runtime container, javax.portlet.PortletRequest req, java.lang.String scriptUrl, Match serviceMatch)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 requestedjavax.portlet.PortletRequestgetPortletRequest()Gets the Portlet Requestjava.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
-
-
-
-
Field Detail
-
ALFPORTLETUSERNAME
public static final java.lang.String ALFPORTLETUSERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPortletRequest
public javax.portlet.PortletRequest getPortletRequest()
Gets the Portlet Request- Returns:
- Portlet Request
-
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)
-
-