Class WebScriptRequestImpl
java.lang.Object
org.springframework.extensions.webscripts.WebScriptRequestImpl
- All Implemented Interfaces:
WebScriptRequest
- Direct Known Subclasses:
WebScriptRequestURLImpl,WebScriptServletRequest
Basic Implementation of a Web Script Request
- Author:
- davidc
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Logstatic final String"multipart/form-data" content type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanForce response to return SUCCESS (200) code Note: This is to support clients who cannot support non-success codes e.g.Gets the mimetype of the requestGets the path extension beyond the path registered for this service e.g.Get Requested FormatGet the style the Format was specified inGet the JSON callback methodGets the initiating runtimebooleanisGuest()Determine if Guest User?Gets the request body as a parsed entityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.extensions.webscripts.WebScriptRequest
getAgent, getContent, getContextPath, getHeader, getHeaderNames, getHeaderValues, getParameter, getParameterNames, getParameterValues, getPathInfo, getQueryString, getServerPath, getServiceContextPath, getServiceMatch, getServicePath, getURL
-
Field Details
-
MULTIPART_FORM_DATA
"multipart/form-data" content type- See Also:
-
logger
protected static final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
WebScriptRequestImpl
Construction- Parameters:
runtime- Runtime
-
-
Method Details
-
getRuntime
Description copied from interface:WebScriptRequestGets the initiating runtime- Specified by:
getRuntimein interfaceWebScriptRequest- Returns:
- runtime that constructed this request
-
getExtensionPath
Description copied from interface:WebScriptRequestGets the path extension beyond the path registered for this service e.g. a) service registered path = /search/engine b) request path = /search/engine/external => /external- Specified by:
getExtensionPathin interfaceWebScriptRequest- Returns:
- extension path
-
isGuest
public boolean isGuest()Description copied from interface:WebScriptRequestDetermine if Guest User?- Specified by:
isGuestin interfaceWebScriptRequest- Returns:
- true => guest user
-
getFormat
Description copied from interface:WebScriptRequestGet Requested Format- Specified by:
getFormatin interfaceWebScriptRequest- Returns:
- content type requested
-
getFormatStyle
Description copied from interface:WebScriptRequestGet the style the Format was specified in- Specified by:
getFormatStylein interfaceWebScriptRequest- Returns:
- format style (excludes any)
-
getJSONCallback
Description copied from interface:WebScriptRequestGet the JSON callback method- Specified by:
getJSONCallbackin interfaceWebScriptRequest- Returns:
- method (or null, if not specified)
-
forceSuccessStatus
public boolean forceSuccessStatus()Description copied from interface:WebScriptRequestForce response to return SUCCESS (200) code Note: This is to support clients who cannot support non-success codes e.g. Flash player- Specified by:
forceSuccessStatusin interfaceWebScriptRequest- Returns:
- true => force return of 200, otherwise return status explicitly set
-
getContentType
Description copied from interface:WebScriptRequestGets the mimetype of the request- Specified by:
getContentTypein interfaceWebScriptRequest- Returns:
- request content mimetype
-
parseContent
Description copied from interface:WebScriptRequestGets the request body as a parsed entity- Specified by:
parseContentin interfaceWebScriptRequest- Returns:
- the parsed entity (or null, if no content, or the content type cannot be parsed)
-