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

TestThemeServlet - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.theme.servlet
Class TestThemeServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.jboss.portal.test.theme.servlet.TestThemeServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class TestThemeServlet
extends javax.servlet.http.HttpServlet

Author:
Roy Russo
See Also:
Serialized Form

Field Summary
private static int CENTER_WINDOWS
          How many windows to create on center region *
private  PortalLayout layout
           
private static int LEFT_WINDOWS
          How many windows to create on left region *
private  PortalRenderSet renderSet
           
private static java.lang.String TEST_PAGE_NAME
           
private  PortalTheme theme
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
TestThemeServlet()
           
 
Method Summary
private  ModifiableWindowResult createWindowMarkup(java.lang.String sTitle, java.lang.String sContent, WindowContext wCtx, java.util.Map portalProps, java.util.Map pageProps)
          Generates the WindowResult for our windowcontext
 void doGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
          Generates a portal page with windows, using the theme api.
 void doPost(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
           
 void init()
          Set theme api services
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderSet

private PortalRenderSet renderSet

layout

private PortalLayout layout

theme

private PortalTheme theme

TEST_PAGE_NAME

private static final java.lang.String TEST_PAGE_NAME
See Also:
Constant Field Values

LEFT_WINDOWS

private static final int LEFT_WINDOWS
How many windows to create on left region *

See Also:
Constant Field Values

CENTER_WINDOWS

private static final int CENTER_WINDOWS
How many windows to create on center region *

See Also:
Constant Field Values
Constructor Detail

TestThemeServlet

public TestThemeServlet()
Method Detail

init

public void init()
Set theme api services


doGet

public void doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
                  javax.servlet.http.HttpServletResponse httpServletResponse)
           throws javax.servlet.ServletException,
                  java.io.IOException
Generates a portal page with windows, using the theme api.

Parameters:
httpServletRequest -
httpServletResponse -
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
                   javax.servlet.http.HttpServletResponse httpServletResponse)
            throws javax.servlet.ServletException,
                   java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

createWindowMarkup

private ModifiableWindowResult createWindowMarkup(java.lang.String sTitle,
                                                  java.lang.String sContent,
                                                  WindowContext wCtx,
                                                  java.util.Map portalProps,
                                                  java.util.Map pageProps)
Generates the WindowResult for our windowcontext

Parameters:
sTitle -
sContent -
wCtx -
Returns:
window markup result