|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A layout is a resource to lay out a portal page, that can be reached via a javax.servlet.RequestDispatcher
.
A layout is lost likely a jsp page, but servlets could be used as well. The layout is not limited to exist in the portal's archive, it can be located in any deployed archive on the server.
Any layout that the portal will pick up needs to be defined in a layout descriptor. The Layout desciptor is an xml file in WEB-INF/ with the file name *-layouts.xml
A portal layout cooperates with a portal theme and a renderer set to render the markup of a portal page.
Renderer
,
LayoutStrategy
,
PortalTheme
Method Summary | |
java.lang.String |
getAppID()
Get the name of the application (WAR) that contains the layout |
java.lang.String |
getContextPath()
Return the context path of the war file in which the layout is deployed. |
java.lang.ClassLoader |
getLoader()
Get the class loader for this layout, the loader of the portal web application. |
java.lang.String |
getName()
Get the name of the layout. |
java.util.List |
getRegionNames()
Get a list of region names are they are provided in the layout descriptor. |
PortalRenderSet |
getRenderSet(MediaType mediaType)
Out of the render sets defined for this layout (in portal-layouts.xml), get the one that matches the requested content type. |
javax.servlet.ServletContext |
getServletContext()
Get the servlet context in which the layout resides |
LayoutStrategy |
getStrategy(MediaType mediaType)
Out of the portal strategies defined for this layout (if any), get the one that was defined for the provided media type. |
java.lang.String |
getURI()
Get the uri, the location of the layout, relative to its context |
java.lang.String |
getURI(java.lang.String state)
Get the uri, the location of the layout, relative to its context. |
Method Detail |
public javax.servlet.ServletContext getServletContext()
public java.lang.String getAppID()
public java.lang.String getName()
public java.lang.String getURI()
public java.lang.String getURI(java.lang.String state)
state
- an optional key to further separate URIs (for example for maximized window state).
If a layout uri was defined for the provided state, that uri will be returned, otherwise the generic
URI for this layout will be returned. If null is provided, the result is the same as calling getURI()
getServletContext()
,
getURI()
public java.lang.String getContextPath()
public PortalRenderSet getRenderSet(MediaType mediaType)
mediaType
- the media type of the current request
MediaType
,
PortalRenderSet
public java.lang.ClassLoader getLoader()
public LayoutStrategy getStrategy(MediaType mediaType)
mediaType
- the media type (content type) for which to get the strategy for
public java.util.List getRegionNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |