org.apache.jetspeed.aggregator.impl
Class PortletContentImpl

java.lang.Object
  extended by org.apache.jetspeed.aggregator.impl.PortletContentImpl
All Implemented Interfaces:
org.apache.jetspeed.aggregator.PortletContent

public class PortletContentImpl
extends Object
implements org.apache.jetspeed.aggregator.PortletContent


Field Summary
private  org.apache.jetspeed.cache.ContentCacheKey cacheKey
           
private  boolean complete
           
private  CharArrayWriter cw
           
private  int expiration
           
private  org.apache.jetspeed.aggregator.PortletRenderer renderer
           
private  String title
           
private  PrintWriter writer
           
 
Constructor Summary
PortletContentImpl()
           
PortletContentImpl(org.apache.jetspeed.aggregator.PortletRenderer renderer, org.apache.jetspeed.cache.ContentCacheKey cacheKey, int expiration)
           
PortletContentImpl(org.apache.jetspeed.aggregator.PortletRenderer renderer, org.apache.jetspeed.cache.ContentCacheKey cacheKey, int expiration, String title)
           
 
Method Summary
 void complete()
           complete
 void completeWithError()
           
 org.apache.jetspeed.cache.ContentCacheKey getCacheKey()
           
 String getContent()
           
 int getExpiration()
           
 String getTitle()
           
 PrintWriter getWriter()
           
 void init()
           
 boolean isComplete()
           
 void release()
           
(package private)  void setComplete(boolean state, boolean notify)
           
 void setExpiration(int expiration)
           
 void setTitle(String title)
           
 char[] toCharArray()
           
 String toString()
           
 void writeTo(Writer out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cw

private CharArrayWriter cw

writer

private PrintWriter writer

complete

private boolean complete

cacheKey

private org.apache.jetspeed.cache.ContentCacheKey cacheKey

expiration

private int expiration

title

private String title

renderer

private org.apache.jetspeed.aggregator.PortletRenderer renderer
Constructor Detail

PortletContentImpl

PortletContentImpl()

PortletContentImpl

PortletContentImpl(org.apache.jetspeed.aggregator.PortletRenderer renderer,
                   org.apache.jetspeed.cache.ContentCacheKey cacheKey,
                   int expiration,
                   String title)

PortletContentImpl

PortletContentImpl(org.apache.jetspeed.aggregator.PortletRenderer renderer,
                   org.apache.jetspeed.cache.ContentCacheKey cacheKey,
                   int expiration)
Method Detail

getWriter

public PrintWriter getWriter()
Specified by:
getWriter in interface org.apache.jetspeed.aggregator.PortletContent

init

public void init()

release

public void release()

toString

public String toString()
Overrides:
toString in class Object

writeTo

public void writeTo(Writer out)
             throws IOException
Throws:
IOException

toCharArray

public char[] toCharArray()

isComplete

public boolean isComplete()
Specified by:
isComplete in interface org.apache.jetspeed.aggregator.PortletContent

setComplete

void setComplete(boolean state,
                 boolean notify)

getContent

public String getContent()
Specified by:
getContent in interface org.apache.jetspeed.aggregator.PortletContent

complete

public void complete()

complete

Specified by:
complete in interface org.apache.jetspeed.aggregator.PortletContent
See Also:
PortletContent.complete()

completeWithError

public void completeWithError()
Specified by:
completeWithError in interface org.apache.jetspeed.aggregator.PortletContent

getCacheKey

public org.apache.jetspeed.cache.ContentCacheKey getCacheKey()
Specified by:
getCacheKey in interface org.apache.jetspeed.aggregator.PortletContent

getExpiration

public int getExpiration()
Specified by:
getExpiration in interface org.apache.jetspeed.aggregator.PortletContent

setExpiration

public void setExpiration(int expiration)
Specified by:
setExpiration in interface org.apache.jetspeed.aggregator.PortletContent

getTitle

public String getTitle()
Specified by:
getTitle in interface org.apache.jetspeed.aggregator.PortletContent

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface org.apache.jetspeed.aggregator.PortletContent


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.