public class PortletFragment extends AbstractFragmentSingle
Responsible for rendering a single Portlet.
Requires two JSP files to exist, PortletFragmentHeader.jsp and PortletFragmentFooter.jsp. These pages define the header and footer of the portlet.
A PortletFragment.PortletInfo object is added to the request attributes and makes information about the Portlet available to the header and footer JSP pages.
| Modifier and Type | Class and Description |
|---|---|
static class |
PortletFragment.PortletInfo |
static class |
PortletFragment.PortletModeInfo |
static class |
PortletFragment.PortletWindowStateInfo |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PORTLET_ERROR_MSG |
BASE_ROOT| Constructor and Description |
|---|
PortletFragment(java.lang.String id,
javax.servlet.ServletConfig config,
Fragment parent,
Fragment fragDesc,
Navigation navigation) |
| Modifier and Type | Method and Description |
|---|---|
void |
createURL(PortalURL url)
Creates an URL pointing to this fragment
|
protected java.lang.String |
getErrorMsg() |
org.apache.pluto.om.window.PortletWindow |
getPortletWindow() |
boolean |
isPartOfURL(PortalURL url)
Returns true if the fragment is part of the URL
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Is called to render the fragment.
|
addChild, getChildFragments, postService, preServicegetFragmentDescription, getId, getInitParameters, getInitParameterValue, getNavigation, getParent, getServletConfigpublic static final java.lang.String PORTLET_ERROR_MSG
public PortletFragment(java.lang.String id,
javax.servlet.ServletConfig config,
Fragment parent,
Fragment fragDesc,
Navigation navigation)
throws java.lang.Exception
java.lang.Exceptionpublic void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
Fragmentservice in interface Fragmentservice in class AbstractFragmentrequest - the servlet requestresponse - the servlet responsejavax.servlet.ServletExceptionjava.io.IOExceptionpublic void createURL(PortalURL url)
FragmentcreateURL in interface FragmentcreateURL in class AbstractFragmentSingleurl - the PortalURL object usedpublic boolean isPartOfURL(PortalURL url)
FragmentisPartOfURL in interface FragmentisPartOfURL in class AbstractFragmentSingleurl - the PortalURL object usedpublic org.apache.pluto.om.window.PortletWindow getPortletWindow()
protected java.lang.String getErrorMsg()
Copyright © 2003-2013 . All Rights Reserved.