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, preService
getFragmentDescription, getId, getInitParameters, getInitParameterValue, getNavigation, getParent, getServletConfig
public 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.Exception
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
Fragment
service
in interface Fragment
service
in class AbstractFragment
request
- the servlet requestresponse
- the servlet responsejavax.servlet.ServletException
java.io.IOException
public void createURL(PortalURL url)
Fragment
createURL
in interface Fragment
createURL
in class AbstractFragmentSingle
url
- the PortalURL object usedpublic boolean isPartOfURL(PortalURL url)
Fragment
isPartOfURL
in interface Fragment
isPartOfURL
in class AbstractFragmentSingle
url
- the PortalURL object usedpublic org.apache.pluto.om.window.PortletWindow getPortletWindow()
protected java.lang.String getErrorMsg()
Copyright © 2003-2013 . All Rights Reserved.