public class WebScriptServletRequest extends WebScriptRequestImpl
MULTIPART_FORM_DATA| Constructor and Description |
|---|
WebScriptServletRequest(Runtime container,
javax.servlet.http.HttpServletRequest req,
Match serviceMatch,
ServerProperties serverProperties)
Construction
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
forceSuccessStatus()
Force response to return SUCCESS (200) code
Note: This is to support clients who cannot support non-success codes
e.g.
|
String |
getAgent()
Get User Agent
TODO: Expand on known agents
|
org.springframework.extensions.surf.util.Content |
getContent()
Gets the request body as content
|
String |
getContentType()
Gets the mimetype of the request
|
String |
getContextPath()
Gets the Alfresco Context Path
|
FormData.FormField |
getFileField(String name)
Returns the FormField bject representing a file uploaded via a multipart form.
|
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 |
getPathInfo()
Gets the service specific path
|
String |
getQueryString()
Gets the query String
|
String |
getServerPath()
Get server portion of the request
e.g.
|
String |
getServiceContextPath()
Gets the Alfresco Web Script Context Path
|
Match |
getServiceMatch()
Gets the matching API Service for this request
|
String |
getServicePath()
Gets the Alfresco Service Path
|
String |
getURL()
Gets the full request URL
|
static String |
resolveUserAgent(String userAgent)
Helper to resolve common user agent strings from Http request header
|
String |
toString() |
getExtensionPath, getFormat, getFormatStyle, getJSONCallback, getRuntime, isGuest, parseContentpublic WebScriptServletRequest(Runtime container, javax.servlet.http.HttpServletRequest req, Match serviceMatch, ServerProperties serverProperties)
container - request generatorreq - HttpServletRequestserviceMatch - MatchserverProperties - ServerPropertiespublic javax.servlet.http.HttpServletRequest getHttpServletRequest()
public Match getServiceMatch()
WebScriptRequestpublic String getServerPath()
WebScriptRequestpublic String getContextPath()
WebScriptRequestpublic String getServiceContextPath()
WebScriptRequestpublic String getServicePath()
WebScriptRequestpublic String getURL()
WebScriptRequestpublic String getPathInfo()
WebScriptRequestpublic String getQueryString()
WebScriptRequestpublic String[] getParameterNames()
WebScriptRequestpublic String getParameter(String name)
WebScriptRequestname - parameter namepublic String[] getParameterValues(String name)
WebScriptRequestname - parameter namepublic String[] getHeaderNames()
WebScriptRequestpublic String getHeader(String name)
WebScriptRequestname - header namepublic String[] getHeaderValues(String name)
WebScriptRequestname - header namepublic String getAgent()
WebScriptRequestpublic static String resolveUserAgent(String userAgent)
public org.springframework.extensions.surf.util.Content getContent()
WebScriptRequestpublic String getContentType()
WebScriptRequestgetContentType in interface WebScriptRequestgetContentType in class WebScriptRequestImplpublic FormData.FormField getFileField(String name)
name - The name of the field containing the contentpublic boolean forceSuccessStatus()
WebScriptRequestforceSuccessStatus in interface WebScriptRequestforceSuccessStatus in class WebScriptRequestImplCopyright © 2005–2016 Alfresco Software. All rights reserved.