java.lang.Object | |||
↳ | org.springframework.context.support.ApplicationObjectSupport | ||
↳ | org.springframework.web.portlet.context.PortletApplicationObjectSupport | ||
↳ | org.springframework.web.portlet.handler.PortletContentGenerator |
Known Direct Subclasses |
Known Indirect Subclasses |
Convenient superclass for any kind of web content generator,
like AbstractController
.
Can also be used for custom handlers that have their own
HandlerAdapter
.
Supports portlet cache control options.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.context.support.ApplicationObjectSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the number of seconds that content is cached.
| |||||||||||
Return whether a session is required to handle requests.
| |||||||||||
Cache content for the given number of seconds.
| |||||||||||
Set whether a session should be required to handle requests.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Apply the given cache seconds to the render response
| |||||||||||
Set portlet response to allow caching for the given number of seconds.
| |||||||||||
Check and prepare the given request and response according to the settings
of this generator.
| |||||||||||
Check and prepare the given request and response according to the settings
of this generator.
| |||||||||||
Check and prepare the given request and response according to the settings
of this generator.
| |||||||||||
Prevent the render response from being cached.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.portlet.context.PortletApplicationObjectSupport
| |||||||||||
From class
org.springframework.context.support.ApplicationObjectSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.ApplicationContextAware
| |||||||||||
From interface
org.springframework.web.portlet.context.PortletContextAware
|
Return the number of seconds that content is cached.
Return whether a session is required to handle requests.
Cache content for the given number of seconds. Default is -1, indicating no override of portlet content caching.
Only if this is set to 0 (no cache) or a positive value (cache for this many seconds) will this class override the portlet settings.
The cache setting can be overwritten by subclasses, before content is generated.
Set whether a session should be required to handle requests.
Apply the given cache seconds to the render response
response | current portlet render response |
---|---|
seconds | positive number of seconds into the future that the response should be cacheable for, 0 to prevent caching |
Set portlet response to allow caching for the given number of seconds.
response | current portlet render response |
---|---|
seconds | number of seconds into the future that the response should be cacheable for |
Check and prepare the given request and response according to the settings of this generator. Checks for a required session, and applies the number of cache seconds configured for this generator (if it is a render request/response).
request | current portlet request |
---|---|
response | current portlet response |
if the request cannot be handled because a check failed | |
PortletException |
Check and prepare the given request and response according to the settings of this generator. Checks for a required session, and applies the number of cache seconds configured for this generator (if it is a render request/response).
request | current portlet request |
---|---|
response | current portlet response |
if the request cannot be handled because a check failed | |
PortletException |
Check and prepare the given request and response according to the settings of this generator. Checks for a required session, and applies the given number of cache seconds (if it is a render request/response).
request | current portlet request |
---|---|
response | current portlet response |
cacheSeconds | positive number of seconds into the future that the response should be cacheable for, 0 to prevent caching |
if the request cannot be handled because a check failed | |
PortletException |
Prevent the render response from being cached.