当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
LayoutDispatcher - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.theme
Class LayoutDispatcher
java.lang.Object
org.jboss.portal.theme.LayoutDispatcher
- All Implemented Interfaces:
- FilterCommand
- public final class LayoutDispatcher
- extends java.lang.Object
- implements FilterCommand
Dispatches the request to the target layout. The major side effect is to change the context path returned by the
request to the value returned by PortalLayout#getContextPath()
so the layout can safely use the
getContextPath in order to designates resources located in the same web application.
- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
Method Summary |
void |
execute(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
javax.servlet.FilterChain chain)
|
void |
include()
Perform the dispatch to the target layout |
private static void |
writeResponse(RenderContext renderCtx,
javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.log4j.Logger log
request
private final javax.servlet.http.HttpServletRequest request
- The layout
response
private final javax.servlet.http.HttpServletResponse response
markupResult
private final MarkupResult markupResult
renderContext
private final RenderContext renderContext
LayoutDispatcher
public LayoutDispatcher(RenderContext renderContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
MarkupResult result)
throws java.lang.IllegalArgumentException
- Parameters:
renderContext
-
- Throws:
java.lang.IllegalArgumentException
- if the layout is null
execute
public void execute(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
javax.servlet.FilterChain chain)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
execute
in interface FilterCommand
- Throws:
javax.servlet.ServletException
java.io.IOException
include
public void include()
throws java.io.IOException,
javax.servlet.ServletException
- Perform the dispatch to the target layout
- Throws:
java.io.IOException
javax.servlet.ServletException
writeResponse
private static void writeResponse(RenderContext renderCtx,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Throws:
java.io.IOException