当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
LayoutDispatcher - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.theme
Class LayoutDispatcher
java.lang.Object
org.jboss.portal.theme.LayoutDispatcher
- All Implemented Interfaces:
- FilterCommand
- public 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.
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoutDispatcher
public LayoutDispatcher(PageService pageService,
PageRequest request,
PageResponse response)
throws java.lang.IllegalArgumentException
- Parameters:
pageService
-
- 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