|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.surf.WrappedRequestContext
public class WrappedRequestContext
| Field Summary |
|---|
| Fields inherited from interface org.springframework.extensions.surf.RequestContext |
|---|
ATTR_REQUEST_CONTEXT, DEBUG_MODE_VALUE_COMPONENTS, VALUE_CREDENTIAL_VAULT, VALUE_HEAD_TAGS, VALUE_IDENTITY_VAULT |
| Constructor Summary | |
|---|---|
WrappedRequestContext(RequestContext context)
|
|
| Method Summary | |
|---|---|
CredentialVault |
getCredentialVault()
Returns the credential vault |
Resource |
getCurrentObject()
Returns the current object If no object has been set, then null is returned |
String |
getCurrentObjectId()
Returns the id of the current object If no object has been set, then the id will be null. |
String |
getFormatId()
Returns the current format id |
String |
getId()
Each request context instance is stamped with a unique id |
LinkBuilder |
getLinkBuilder()
Returns the LinkBuilder to be used for the currently executing page. |
Model |
getModel()
Returns the model. |
RequestContext |
getOriginalContext()
|
Page |
getPage()
If a page instance is currently executing, it can be retrieved from the request context. |
String |
getPageId()
Returns the id of the currently executing page. |
String |
getPageTitle()
Returns the title of the current page. |
Serializable |
getParameter(String key)
Retrieves a parameter from the request context |
Map<String,Serializable> |
getParameters()
Returns a map of parameters |
Component[] |
getRenderingComponents()
Returns the components that were bound to this and any of its parent context during the rendering. |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the HTTP Servlet Request bound to this request |
Content |
getRequestContent()
Returns the body of the incoming POST content This is applicable for multipart form requests |
String |
getRequestContentType()
Returns the content type of the incoming request |
String |
getRequestMethod()
Returns the method of the incoming request |
Page |
getRootPage()
Returns the root page for a site. |
WebFrameworkServiceRegistry |
getServiceRegistry()
Returns the Web Framework services registry |
Configuration |
getSiteConfiguration()
If the site has a configuration XML, then this will return it |
TemplateInstance |
getTemplate()
Returns the current executing template. |
String |
getTemplateId()
Returns the id of the currently executing template. |
Theme |
getTheme()
|
String |
getThemeId()
Returns the current theme id |
String |
getUri()
|
User |
getUser()
Returns the current user |
String |
getUserId()
Returns the current user id |
Serializable |
getValue(String key)
Retrieves a custom value from the request context |
Map<String,Serializable> |
getValuesMap()
Returns the underlying map of the custom key/values pairs stored on this RequestContext instance. |
Map |
getViewModel()
Returns the view model |
String |
getWebsiteTitle()
Returns the title of the web site. |
boolean |
hasParameter(String key)
Returns true if a parameter exists in the request context |
boolean |
hasValue(String key)
Returns true if a custom value exists in the request context |
void |
release()
Release any resources held by the request context As part of the contract for a RequestContext object, this will only ever be called once and no further method calls will be made to the RequestContext object. |
void |
removeValue(String key)
Removes a custom value from the request context |
void |
setCurrentObject(Resource object)
Sets the current object |
void |
setFormatId(String formatId)
Sets the current format id |
void |
setModel(Model model)
Sets the current model |
void |
setPage(Page page)
Sets the currently executing page. |
void |
setRenderingComponent(Component component)
Indicates that the given component is being rendered as part of the rendering execution for this and any parent rendering context. |
void |
setTemplate(TemplateInstance currentTemplate)
Sets the current executing template. |
void |
setThemeId(String themeId)
Sets the current theme id |
void |
setUri(String uri)
Sets the currently executing uri. |
void |
setUser(User user)
Sets the current user for this request |
void |
setValue(String key,
Serializable value)
Sets a custom attribute onto the request context |
void |
setViewModel(Map viewModel)
Sets the view model |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WrappedRequestContext(RequestContext context)
| Method Detail |
|---|
public final RequestContext getOriginalContext()
public String getId()
RequestContext
getId in interface RequestContextpublic Configuration getSiteConfiguration()
RequestContext
getSiteConfiguration in interface RequestContextpublic String getWebsiteTitle()
RequestContext
getWebsiteTitle in interface RequestContextpublic String getPageTitle()
RequestContext
getPageTitle in interface RequestContextpublic String getUri()
getUri in interface RequestContextpublic void setUri(String uri)
RequestContext
setUri in interface RequestContextpublic Page getPage()
RequestContext
getPage in interface RequestContextpublic void setPage(Page page)
RequestContext
setPage in interface RequestContextpublic String getPageId()
RequestContext
getPageId in interface RequestContextpublic LinkBuilder getLinkBuilder()
RequestContext
getLinkBuilder in interface RequestContextpublic Page getRootPage()
RequestContext
getRootPage in interface RequestContextpublic TemplateInstance getTemplate()
RequestContext
getTemplate in interface RequestContextpublic void setTemplate(TemplateInstance currentTemplate)
RequestContext
setTemplate in interface RequestContextpublic String getTemplateId()
RequestContext
getTemplateId in interface RequestContextpublic String getCurrentObjectId()
RequestContext
getCurrentObjectId in interface RequestContextpublic void setCurrentObject(Resource object)
RequestContext
setCurrentObject in interface RequestContextpublic Resource getCurrentObject()
RequestContext
getCurrentObject in interface RequestContextpublic String getFormatId()
RequestContext
getFormatId in interface RequestContextpublic void setFormatId(String formatId)
RequestContext
setFormatId in interface RequestContextpublic Model getModel()
RequestContext
getModel in interface RequestContextpublic void setModel(Model model)
RequestContext
setModel in interface RequestContextpublic void setUser(User user)
RequestContext
setUser in interface RequestContextpublic User getUser()
RequestContext
getUser in interface RequestContextpublic String getUserId()
RequestContext
getUserId in interface RequestContextpublic CredentialVault getCredentialVault()
RequestContext
getCredentialVault in interface RequestContextpublic String getThemeId()
RequestContext
getThemeId in interface RequestContextpublic void setThemeId(String themeId)
RequestContext
setThemeId in interface RequestContextpublic Theme getTheme()
getTheme in interface RequestContextpublic String getRequestContentType()
RequestContext
getRequestContentType in interface RequestContextpublic String getRequestMethod()
RequestContext
getRequestMethod in interface RequestContextpublic Content getRequestContent()
RequestContext
getRequestContent in interface RequestContext
public void setValue(String key,
Serializable value)
RequestContext
setValue in interface RequestContextpublic Serializable getValue(String key)
RequestContext
getValue in interface RequestContextpublic void removeValue(String key)
RequestContext
removeValue in interface RequestContextpublic boolean hasValue(String key)
RequestContext
hasValue in interface RequestContextpublic Map<String,Serializable> getValuesMap()
RequestContext
getValuesMap in interface RequestContextpublic Serializable getParameter(String key)
RequestContext
getParameter in interface RequestContextpublic boolean hasParameter(String key)
RequestContext
hasParameter in interface RequestContextpublic Map<String,Serializable> getParameters()
RequestContext
getParameters in interface RequestContextpublic Map getViewModel()
RequestContext
getViewModel in interface RequestContextpublic void setViewModel(Map viewModel)
RequestContext
setViewModel in interface RequestContextviewModel - mappublic Component[] getRenderingComponents()
RequestContext
getRenderingComponents in interface RequestContextpublic void setRenderingComponent(Component component)
RequestContext
setRenderingComponent in interface RequestContextcomponent - The component that is being renderedpublic javax.servlet.http.HttpServletRequest getRequest()
RequestContext
getRequest in interface RequestContextpublic void release()
RequestContext
release in interface RequestContextpublic String toString()
toString in class Objectpublic WebFrameworkServiceRegistry getServiceRegistry()
RequestContext
getServiceRegistry in interface RequestContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||