|
||||||||||
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.servlet.WebScriptServletRequest
public class WebScriptServletRequest
HTTP Servlet Web Script Request
Constructor Summary | |
---|---|
WebScriptServletRequest(Runtime container,
javax.servlet.http.HttpServletRequest req,
Match serviceMatch,
ServerProperties serverProperties)
Construct |
Method Summary | |
---|---|
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 |
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()
|
Methods inherited from class org.springframework.extensions.webscripts.WebScriptRequestImpl |
---|
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 WebScriptServletRequest(Runtime container, javax.servlet.http.HttpServletRequest req, Match serviceMatch, ServerProperties serverProperties)
container
- request generatorreq
- serviceMatch
- Method Detail |
---|
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public Match getServiceMatch()
WebScriptRequest
public String getServerPath()
WebScriptRequest
public String getContextPath()
WebScriptRequest
public String getServiceContextPath()
WebScriptRequest
public String getServicePath()
WebScriptRequest
public String getURL()
WebScriptRequest
public String getPathInfo()
WebScriptRequest
public String getQueryString()
WebScriptRequest
public String[] getParameterNames()
WebScriptRequest
public String getParameter(String name)
WebScriptRequest
name
- parameter name
public String[] getParameterValues(String name)
WebScriptRequest
name
- parameter name
public String[] getHeaderNames()
WebScriptRequest
public String getHeader(String name)
WebScriptRequest
name
- header name
public String[] getHeaderValues(String name)
WebScriptRequest
name
- header name
public String getAgent()
WebScriptRequest
public static String resolveUserAgent(String userAgent)
public Content getContent()
WebScriptRequest
public String getContentType()
WebScriptRequest
getContentType
in interface WebScriptRequest
getContentType
in class WebScriptRequestImpl
public FormData.FormField getFileField(String name)
name
- The name of the field containing the content
public boolean forceSuccessStatus()
WebScriptRequest
forceSuccessStatus
in interface WebScriptRequest
forceSuccessStatus
in class WebScriptRequestImpl
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |