|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 RequestContext
public Configuration getSiteConfiguration()
RequestContext
getSiteConfiguration
in interface RequestContext
public String getWebsiteTitle()
RequestContext
getWebsiteTitle
in interface RequestContext
public String getPageTitle()
RequestContext
getPageTitle
in interface RequestContext
public String getUri()
getUri
in interface RequestContext
public void setUri(String uri)
RequestContext
setUri
in interface RequestContext
public Page getPage()
RequestContext
getPage
in interface RequestContext
public void setPage(Page page)
RequestContext
setPage
in interface RequestContext
public String getPageId()
RequestContext
getPageId
in interface RequestContext
public LinkBuilder getLinkBuilder()
RequestContext
getLinkBuilder
in interface RequestContext
public Page getRootPage()
RequestContext
getRootPage
in interface RequestContext
public TemplateInstance getTemplate()
RequestContext
getTemplate
in interface RequestContext
public void setTemplate(TemplateInstance currentTemplate)
RequestContext
setTemplate
in interface RequestContext
public String getTemplateId()
RequestContext
getTemplateId
in interface RequestContext
public String getCurrentObjectId()
RequestContext
getCurrentObjectId
in interface RequestContext
public void setCurrentObject(Resource object)
RequestContext
setCurrentObject
in interface RequestContext
public Resource getCurrentObject()
RequestContext
getCurrentObject
in interface RequestContext
public String getFormatId()
RequestContext
getFormatId
in interface RequestContext
public void setFormatId(String formatId)
RequestContext
setFormatId
in interface RequestContext
public Model getModel()
RequestContext
getModel
in interface RequestContext
public void setModel(Model model)
RequestContext
setModel
in interface RequestContext
public void setUser(User user)
RequestContext
setUser
in interface RequestContext
public User getUser()
RequestContext
getUser
in interface RequestContext
public String getUserId()
RequestContext
getUserId
in interface RequestContext
public CredentialVault getCredentialVault()
RequestContext
getCredentialVault
in interface RequestContext
public String getThemeId()
RequestContext
getThemeId
in interface RequestContext
public void setThemeId(String themeId)
RequestContext
setThemeId
in interface RequestContext
public Theme getTheme()
getTheme
in interface RequestContext
public String getRequestContentType()
RequestContext
getRequestContentType
in interface RequestContext
public String getRequestMethod()
RequestContext
getRequestMethod
in interface RequestContext
public Content getRequestContent()
RequestContext
getRequestContent
in interface RequestContext
public void setValue(String key, Serializable value)
RequestContext
setValue
in interface RequestContext
public Serializable getValue(String key)
RequestContext
getValue
in interface RequestContext
public void removeValue(String key)
RequestContext
removeValue
in interface RequestContext
public boolean hasValue(String key)
RequestContext
hasValue
in interface RequestContext
public Map<String,Serializable> getValuesMap()
RequestContext
getValuesMap
in interface RequestContext
public Serializable getParameter(String key)
RequestContext
getParameter
in interface RequestContext
public boolean hasParameter(String key)
RequestContext
hasParameter
in interface RequestContext
public Map<String,Serializable> getParameters()
RequestContext
getParameters
in interface RequestContext
public Map getViewModel()
RequestContext
getViewModel
in interface RequestContext
public void setViewModel(Map viewModel)
RequestContext
setViewModel
in interface RequestContext
viewModel
- mappublic Component[] getRenderingComponents()
RequestContext
getRenderingComponents
in interface RequestContext
public void setRenderingComponent(Component component)
RequestContext
setRenderingComponent
in interface RequestContext
component
- The component that is being renderedpublic javax.servlet.http.HttpServletRequest getRequest()
RequestContext
getRequest
in interface RequestContext
public void release()
RequestContext
release
in interface RequestContext
public String toString()
toString
in class Object
public WebFrameworkServiceRegistry getServiceRegistry()
RequestContext
getServiceRegistry
in interface RequestContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |