org.apache.jetspeed.portal.portlets
Class WebClippingPortlet

java.lang.Object
  extended byorg.apache.jetspeed.portal.portlets.AbstractPortlet
      extended byorg.apache.jetspeed.portal.portlets.AbstractInstancePortlet
          extended byorg.apache.jetspeed.portal.portlets.WebClippingPortlet
All Implemented Interfaces:
Cacheable, Portlet, PortletState, org.apache.turbine.services.cache.Refreshable, java.io.Serializable

public class WebClippingPortlet
extends AbstractInstancePortlet

A class that clips parts of one or more web pages.

Version:
$Id: WebClippingPortlet.java,v 1.3 2004/06/02 15:18:18 taylor Exp $
Author:
Marco Mari
See Also:
Serialized Form

Field Summary
protected  boolean cacheContent
           
protected  boolean contentStale
           
protected  boolean initDone
           
protected  java.lang.String password
           
static java.lang.String START
           
static java.lang.String STOP
           
static java.lang.String TAG
           
static java.lang.String TAGNUM
           
static java.lang.String URL
           
protected  java.lang.String username
           
 
Fields inherited from class org.apache.jetspeed.portal.portlets.AbstractPortlet
content
 
Fields inherited from interface org.apache.jetspeed.portal.Portlet
PORTLET_MAXIMIZED, PORTLET_MINIMIZED, PORTLET_NORMAL
 
Constructor Summary
WebClippingPortlet()
           
 
Method Summary
 org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData data)
          This methods outputs the content of the portlet for a given request.
protected  java.io.Reader getReader(java.lang.String url)
          took this from FileServerPortlet as it was private
 void init()
          Initialize this portlet
 void refresh()
          Usually called by caching system when portlet is marked as expired, but has not be idle longer then TimeToLive.
protected  java.lang.String selectUrl(org.apache.turbine.util.RunData data, PortletConfig config)
          Select the URL to use for this portlet.
 
Methods inherited from class org.apache.jetspeed.portal.portlets.AbstractInstancePortlet
getHandle
 
Methods inherited from class org.apache.jetspeed.portal.portlets.AbstractPortlet
allowClose, allowCustomize, allowInfo, allowMaximize, allowMinimize, allowPrintFriendly, allowView, clearContent, getAllowEdit, getAllowMaximize, getAllowView, getAttribute, getContent, getContent, getCreationTime, getDescription, getDescription, getExpirationMillis, getExpire, getHandle, getID, getImage, getImage, getInstance, getName, getPortletConfig, getTitle, getTitle, isCacheable, isClosed, isMinimized, isShowTitleBar, providesCustomization, setAttribute, setCacheable, setCachedObject, setClosed, setContent, setContent, setContent, setCreationTime, setDescription, setExpirationMillis, setHandle, setID, setImage, setMinimized, setName, setPortletConfig, setTitle, setTitle, supportsType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START

public static final java.lang.String START
See Also:
Constant Field Values

STOP

public static final java.lang.String STOP
See Also:
Constant Field Values

TAG

public static final java.lang.String TAG
See Also:
Constant Field Values

TAGNUM

public static final java.lang.String TAGNUM
See Also:
Constant Field Values

URL

public static final java.lang.String URL
See Also:
Constant Field Values

initDone

protected boolean initDone

contentStale

protected boolean contentStale

cacheContent

protected boolean cacheContent

username

protected java.lang.String username

password

protected java.lang.String password
Constructor Detail

WebClippingPortlet

public WebClippingPortlet()
Method Detail

init

public void init()
Initialize this portlet

Specified by:
init in interface Portlet
Overrides:
init in class AbstractPortlet
Throws:
PortletException - Initialization failed

getReader

protected java.io.Reader getReader(java.lang.String url)
                            throws java.io.IOException
took this from FileServerPortlet as it was private

Throws:
java.io.IOException

getContent

public org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData data)
This methods outputs the content of the portlet for a given request.

Specified by:
getContent in interface Portlet
Overrides:
getContent in class AbstractPortlet
Parameters:
data - the RunData object for the request
Returns:
the content to be displayed to the user-agent

refresh

public void refresh()
Usually called by caching system when portlet is marked as expired, but has not be idle longer then TimeToLive. Any cached content that is expired need to be refreshed.

Specified by:
refresh in interface org.apache.turbine.services.cache.Refreshable
Overrides:
refresh in class AbstractPortlet

selectUrl

protected java.lang.String selectUrl(org.apache.turbine.util.RunData data,
                                     PortletConfig config)
Select the URL to use for this portlet.

Returns:
The URL to use for this portlet


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.