public interface RenderingJob extends Runnable
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_CONTROL_CONTEXT_WORKER_ATTR
Worker attribute name of AccessControlContext object in the current request processing context.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute the rendering of a portlet window, delegating to the portlet container.
|
int |
getExpirationCache()
The expiration cache timeout value in seconds for the content of this job
|
ContentFragment |
getFragment()
The content fragment to hold the rendered output of this job
|
PortletContent |
getPortletContent()
Returns the portlet content buffer associated with this job
|
PortletDefinition |
getPortletDefinition()
Returns the portlet definition associated with this portlet window and job
|
PortletRenderer |
getRenderer()
Deprecated.
|
javax.servlet.http.HttpServletRequest |
getRequest()
The underlying HttpServletRequest used to render this job
|
RequestContext |
getRequestContext()
The request context associated with this job
|
javax.servlet.http.HttpServletResponse |
getResponse()
The underlying HttpServletResponse used to render this job
|
long |
getTimeout()
The timeout for rendering this job in milliseconds.
|
PortletWindow |
getWindow()
Returns the portlet window associated with this job
|
Object |
getWorkerAttribute(String name)
Retrieve a generic worker attribute associated it with this job.
|
boolean |
isTimeout()
Determines if this job has exceeded the timeout for rendering this job in milliseconds.
|
void |
removeWorkerAttribute(String name)
Remove a generic worker attribute associated with this job.
|
void |
setTimeout(long portletTimeout)
The timeout for rendering this job in milliseconds.
|
void |
setWorkerAttribute(String name,
Object value)
Set a generic worker attribute and associate it with this job.
|
static final String ACCESS_CONTROL_CONTEXT_WORKER_ATTR
void execute()
PortletRenderer getRenderer()
PortletWindow getWindow()
PortletContent getPortletContent()
void setTimeout(long portletTimeout)
PortletTrackingManager
policy,
this portlet can be taken out of service after timing out repeatedly.portletTimeout
- the rendering timeout in millisecondslong getTimeout()
PortletTrackingManager
policy,
this portlet can be taken out of service after timing out repeatedly.boolean isTimeout()
PortletTrackingManager
policy this portlet can be taken out of
service after timing out repeatedly.PortletDefinition getPortletDefinition()
javax.servlet.http.HttpServletRequest getRequest()
javax.servlet.http.HttpServletResponse getResponse()
ContentFragment getFragment()
RequestContext getRequestContext()
int getExpirationCache()
void setWorkerAttribute(String name, Object value)
name
- the name of the attributevalue
- the value of the attributeObject getWorkerAttribute(String name)
name
- the name of the attributevoid removeWorkerAttribute(String name)
name
- the name oof the attributeCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.