站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

LayoutDispatcher - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.theme
Class LayoutDispatcher

java.lang.Object
  extended byorg.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.


Field Summary
 
Fields inherited from interface org.jboss.portal.server.servlet.FilterCommand
REQ_ATT_KEY
 
Constructor Summary
LayoutDispatcher(RenderContext renderContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, MarkupResult result)
           
 
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
 

Constructor Detail

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
Method Detail

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