org.apache.portals.gems.util
Class PortletContentImpl

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

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


Field Summary
private  String cacheKey
           
private  org.apache.jetspeed.cache.ContentCacheKey ccKey
           
private  boolean complete
           
private  CharArrayWriter cw
           
private  int expiration
           
private  String title
           
private  PrintWriter writer
           
 
Constructor Summary
PortletContentImpl()
           
PortletContentImpl(org.apache.jetspeed.cache.ContentCacheKey ccKey, int expiration, String title, boolean complete)
           
PortletContentImpl(String cacheKey, int expiration)
           
PortletContentImpl(String cacheKey, int expiration, String title, boolean complete)
           
 
Method Summary
 void complete()
           complete
 void completeWithError()
           
 org.apache.jetspeed.cache.ContentCacheKey getCacheKey()
           
 String getContent()
           
 int getExpiration()
           
 String getStringCacheKey()
           
 String getTitle()
           
 PrintWriter getWriter()
           
 void init()
           
 boolean isComplete()
           
 void release()
           
(package private)  void setComplete(boolean state)
           
 void setExpiration(int e)
           
 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 String cacheKey

ccKey

private org.apache.jetspeed.cache.ContentCacheKey ccKey

expiration

private int expiration

title

private String title
Constructor Detail

PortletContentImpl

public PortletContentImpl()

PortletContentImpl

PortletContentImpl(org.apache.jetspeed.cache.ContentCacheKey ccKey,
                   int expiration,
                   String title,
                   boolean complete)

PortletContentImpl

PortletContentImpl(String cacheKey,
                   int expiration,
                   String title,
                   boolean complete)

PortletContentImpl

PortletContentImpl(String 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

completeWithError

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

setComplete

void setComplete(boolean state)

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()

getCacheKey

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

getStringCacheKey

public String getStringCacheKey()

getExpiration

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

setExpiration

public void setExpiration(int e)
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.