public interface PortletContent
Modifier and Type | Method and Description |
---|---|
void |
addHeadElement(HeadElement element,
String keyHint)
Adds an header element to be contributed to the page.
|
void |
complete()
Notifies that this content is completed.
|
ContentCacheKey |
getCacheKey()
Get the cache key used to cache this content
|
String |
getContent()
Retrieve the actual content of a portlet as a string
|
String |
getContentType()
Gets the MIME content type of this portlet content.
|
int |
getExpiration()
Get the expiration setting for this content if it is cached.
|
List<KeyValue<String,HeadElement>> |
getHeadElements()
Retrieves header element key value pairs to be contributed to the page.
|
javax.portlet.PortletMode |
getPortletMode()
Gets the portlet mode of the portlet instance associated with this portlet content.
|
String |
getTitle()
Get the cached title of the portlet
|
javax.portlet.WindowState |
getWindowState()
Gets the window state of the portlet instance associated with this portlet content.
|
PrintWriter |
getWriter()
Get a writer to the content to stream content into this object
|
boolean |
isComplete()
Has the renderer completed rendering the content? Used by the multi-threaded (parallel) rendering engine.
|
void |
release()
Release the buffers used by the portlet content cache.
|
void |
reset()
Reset the buffer of this instance to empty.
|
void |
resetBuffer()
Reset the buffer of this instance to empty.
|
void |
setContentType(String contentType)
Sets the MIME content type of this portlet content.
|
void |
setExpiration(int expiration)
Sets the expiration setting for this content in seconds
|
void |
setTitle(String title)
Set the title of this portlet, used during caching
|
String getContent()
boolean isComplete()
void complete()
PrintWriter getWriter()
int getExpiration()
void setExpiration(int expiration)
expiration
- the expiration value in secondsContentCacheKey getCacheKey()
String getTitle()
void setTitle(String title)
title
- the title of this portletString getContentType()
void setContentType(String contentType)
contentType
- the MIME content typejavax.portlet.PortletMode getPortletMode()
javax.portlet.WindowState getWindowState()
void addHeadElement(HeadElement element, String keyHint)
element
- the header element to contribute to the pagekeyHint
- the key hint to generate the header elementList<KeyValue<String,HeadElement>> getHeadElements()
void reset()
void resetBuffer()
void release()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.