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

PortalServlet - JBOSS Portal 2.6 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.

Version:
$Revision: 5448 $
Author:
Julien Viet
See Also:
Serialized Form

Nested Class Summary
static class PortalServlet.Buffer
           
 
Field Summary
private  boolean asDefaultServlet
          Are we or not the default servlet ?
private  RequestController controller
          The controller for this servlet.
private  java.lang.String controllerName
          The controller name.
private static int DEFAULT_SERVLET_MAPPING
          Describes a default servlet mapping.
private static int GET_METHOD
          .
private  InterceptorStackFactory interceptorStack
          The interceptor stack.
protected  org.apache.log4j.Logger log
          The logger.
private static int PATH_MAPPING
          Describes a path mapping.
private static int POST_METHOD
          .
private static int ROOT_PATH_MAPPING
          Describes a root path mapping.
private static long serialVersionUID
          The serialVersionUID
private  Server server
          The server.
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
PortalServlet()
           
 
Method Summary
protected  boolean getAsDefaultServletInitValue()
          Return the value for the servlet mapping.
protected  RequestController getController()
           
protected  InterceptorStackFactory getInterceptorStackFactory()
           
protected  Server getServer()
           
 void init()
          Configure the as default servlet.
private  java.util.Map parseQueryString(java.lang.String queryString)
          Parse the query string and build an unmodifiable parameter map of it.
private  URLContext parseURLContext(javax.servlet.http.HttpServletRequest req)
           
private  java.lang.String retrieveMediaType(java.lang.String contentType)
           
protected  void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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

GET_METHOD

private static final int GET_METHOD
.

See Also:
Constant Field Values

POST_METHOD

private static final int POST_METHOD
.

See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
The serialVersionUID

See Also:
Constant Field Values

DEFAULT_SERVLET_MAPPING

private static final int DEFAULT_SERVLET_MAPPING
Describes a default servlet mapping.

See Also:
Constant Field Values

ROOT_PATH_MAPPING

private static final int ROOT_PATH_MAPPING
Describes a root path mapping.

See Also:
Constant Field Values

PATH_MAPPING

private static final int PATH_MAPPING
Describes a path mapping.

See Also:
Constant Field Values

log

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


server

private Server server
The server.


interceptorStack

private InterceptorStackFactory interceptorStack
The interceptor stack.


asDefaultServlet

private boolean asDefaultServlet
Are we or not the default servlet ?


controller

private RequestController controller
The controller for this servlet.


controllerName

private java.lang.String controllerName
The controller name.

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()

getInterceptorStackFactory

protected final InterceptorStackFactory getInterceptorStackFactory()

getController

protected final RequestController getController()

retrieveMediaType

private java.lang.String retrieveMediaType(java.lang.String contentType)

service

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

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


parseURLContext

private URLContext parseURLContext(javax.servlet.http.HttpServletRequest req)

parseQueryString

private java.util.Map parseQueryString(java.lang.String queryString)
Parse the query string and build an unmodifiable parameter map of it.