|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
org.apache.portals.bridges.common.GenericServletPortlet
org.apache.portals.bridges.velocity.GenericVelocityPortlet
org.apache.jetspeed.portlet.WebContentPortlet
WebContentPortlet TODO: Preferences, cache stream instead of URL *
Field Summary | |
(package private) static int |
BLOCK_SIZE
|
static String |
CACHE
|
static String |
CURRENT_URL
WebContent Messages TODO: this is a simple implementation until we introduce a more sophisticated caching algorithm |
private String |
defaultEditSource
|
String |
defaultEncoding
Default encoding |
private String |
defaultViewSource
Default WebContent source attribute members. |
static String |
EDIT_SOURCE_PARAM
|
(package private) boolean |
isSSOEnabled
|
static String |
LAST_STATE
|
static String |
LAST_URL
|
(package private) org.apache.jetspeed.rewriter.RewriterController |
rewriteController
|
(package private) org.apache.jetspeed.rewriter.RulesetRewriter |
rewriter
|
static String |
VIEW_SOURCE_PARAM
Configuration constants. |
Fields inherited from class org.apache.portals.bridges.velocity.GenericVelocityPortlet |
PORTLET_BRIDGE_CONTEXT |
Fields inherited from class org.apache.portals.bridges.common.GenericServletPortlet |
PARAM_ACTION_PAGE, PARAM_ALLOW_PREFERENCES, PARAM_CUSTOM_PAGE, PARAM_EDIT_PAGE, PARAM_HELP_PAGE, PARAM_MAX_PAGE, PARAM_VIEW_PAGE |
Fields inherited from class javax.portlet.GenericPortlet |
|
Constructor Summary | |
WebContentPortlet()
|
Method Summary | |
void |
doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
void |
doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
doView Renders the URL in the following order 1) SESSION_PARAMETER 2)cached version 3) defined for preference SRC |
protected byte[] |
doWebContent(javax.portlet.RenderRequest request,
String sourceAttr,
javax.portlet.RenderResponse response)
|
private void |
drain(InputStream reader,
OutputStream writer)
|
private void |
drain(Reader r,
OutputStream os)
|
private void |
drain(Reader r,
Writer w)
|
private String |
getContentCharSet(InputStream is)
|
private org.apache.jetspeed.rewriter.RewriterController |
getController(String contextPath)
|
protected Reader |
getReader(String url)
|
private Reader |
getRemoteReader(String uri)
|
private String |
getSourcePreference(javax.portlet.RenderRequest request,
String name,
String defaultValue)
|
String |
getURLSource(String source,
javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
void |
init(javax.portlet.PortletConfig config)
Initialize portlet configuration. |
void |
processAction(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
processAction() Checks action initiated by the WebContent portlet which means that a user has clicked on an URL |
Methods inherited from class org.apache.portals.bridges.velocity.GenericVelocityPortlet |
doCustom, doHelp, doPreferencesEdit, getContext, render, setupPreferencesEdit |
Methods inherited from class org.apache.portals.bridges.common.GenericServletPortlet |
getDefaultActionPage, getDefaultCustomPage, getDefaultEditPage, getDefaultHelpPage, getDefaultViewPage, processPreferencesAction, setDefaultActionPage, setDefaultCustomPage, setDefaultEditPage, setDefaultHelpPage, setDefaultViewPage |
Methods inherited from class javax.portlet.GenericPortlet |
destroy, doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String VIEW_SOURCE_PARAM
public static final String EDIT_SOURCE_PARAM
private String defaultViewSource
private String defaultEditSource
public static final String CURRENT_URL
public static final String LAST_URL
public static final String LAST_STATE
public static final String CACHE
public String defaultEncoding
boolean isSSOEnabled
org.apache.jetspeed.rewriter.RulesetRewriter rewriter
org.apache.jetspeed.rewriter.RewriterController rewriteController
static final int BLOCK_SIZE
Constructor Detail |
public WebContentPortlet()
Method Detail |
public void init(javax.portlet.PortletConfig config) throws javax.portlet.PortletException
javax.portlet.PortletException
public void processAction(javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws javax.portlet.PortletException, IOException
actionRequest
- actionResponse
-
javax.portlet.PortletException
IOException
public void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
javax.portlet.PortletException
IOException
public void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
javax.portlet.PortletException
IOException
protected byte[] doWebContent(javax.portlet.RenderRequest request, String sourceAttr, javax.portlet.RenderResponse response) throws javax.portlet.PortletException
javax.portlet.PortletException
public String getURLSource(String source, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
private String getSourcePreference(javax.portlet.RenderRequest request, String name, String defaultValue)
private org.apache.jetspeed.rewriter.RewriterController getController(String contextPath) throws Exception
Exception
protected Reader getReader(String url) throws javax.portlet.PortletException
javax.portlet.PortletException
private void drain(InputStream reader, OutputStream writer) throws IOException
IOException
private void drain(Reader r, Writer w) throws IOException
IOException
private void drain(Reader r, OutputStream os) throws IOException
IOException
private Reader getRemoteReader(String uri) throws javax.portlet.PortletException
javax.portlet.PortletException
private String getContentCharSet(InputStream is) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |