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

PortalServlet - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.server.servlet
Class PortalServlet

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

public class PortalServlet
extends javax.servlet.http.HttpServlet

The main servlet of the portal. This servlet must be properly configured with the servlet mapping style it is mapped.

See Also:
Serialized Form

Nested Class Summary
static class PortalServlet.Buffer
           
 class PortalServlet.ServerRequestContextImpl
           
 class PortalServlet.ServerResponseContextImpl
           
 
Field Summary
protected  org.apache.log4j.Logger log
          The logger.
 
Constructor Summary
PortalServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
protected  boolean getAsDefaultServletInitValue()
          Return the value for the servlet mapping.
protected  RequestController getController()
           
protected  javax.management.ObjectName getControllerNameInitValue()
          Return the object name of the controller used by this portal servlet.
protected  InterceptorStack getInterceptorStack()
           
protected  Server getServer()
           
 void init()
          Configure the as default servlet.
protected  void process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, boolean isGet)
           
 
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

log

protected org.apache.log4j.Logger log
The logger.

Constructor Detail

PortalServlet

public PortalServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Configure the as default servlet.

Throws:
javax.servlet.ServletException

getServer

protected final Server getServer()

getInterceptorStack

protected final InterceptorStack getInterceptorStack()

getController

protected final RequestController getController()

doPost

protected void doPost(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp)
               throws javax.servlet.ServletException,
                      java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

process

protected void process(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse resp,
                       boolean isGet)
                throws javax.servlet.ServletException,
                       java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

getControllerNameInitValue

protected javax.management.ObjectName getControllerNameInitValue()
                                                          throws javax.servlet.ServletException
Return the object name of the controller used by this portal servlet. This implementation get the value from an init parameter of the servlet called controllerName

Throws:
javax.servlet.ServletException

getAsDefaultServletInitValue

protected boolean getAsDefaultServletInitValue()
Return the value for the servlet mapping. This implementation get the value from an init parameter of the servlet called asDefaultServlet