org.jasig.portal
Class PortalSessionManager

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.jasig.portal.PortalSessionManager
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class PortalSessionManager
extends HttpServlet

This is an entry point into the uPortal.

Version:
$Revision: 19776 $
Author:
Peter Kharchenko
See Also:
Serialized Form

Field Summary
static ErrorID initPortalContext
           
static Date STARTED_AT
           
 
Constructor Summary
PortalSessionManager()
           
 
Method Summary
 void destroy()
           
 void doGet(HttpServletRequest request, HttpServletResponse res)
          Process HTTP GET request.
protected  void doGetInternal(IWritableHttpServletRequest writableRequest, HttpServletResponse res)
          Internal method just to clarify that the writableRequest should be used from here on out.
 void doPost(HttpServletRequest req, HttpServletResponse res)
          Process HTTP POST request
 boolean getFatalError()
          Accessor for the fatalError member.
static PortalSessionManager getInstance()
          Provides access to the servlet instance ultimately to provide access to the servlet context of the portal.
 Random getRandom()
          Accessor for the Random number generator instance
static InputStream getResourceAsStream(String resource)
          Gets an input stream associated with the named resource.
static URL getResourceAsURL(String resource)
          Gets a URL associated with the named resource.
static ThreadGroup getThreadGroup()
           
 void init()
          Initialize the PortalSessionManager servlet
static boolean isServletContext()
          See if our servlet context is available
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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

initPortalContext

public static final ErrorID initPortalContext

STARTED_AT

public static Date STARTED_AT
Constructor Detail

PortalSessionManager

public PortalSessionManager()
Method Detail

getThreadGroup

public static ThreadGroup getThreadGroup()

getInstance

public static final PortalSessionManager getInstance()
Provides access to the servlet instance ultimately to provide access to the servlet context of the portal.

Returns:
instance, the PortalSessionManager servlet instance

init

public void init()
          throws ServletException
Initialize the PortalSessionManager servlet

Overrides:
init in class GenericServlet
Throws:
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse res)
Process HTTP POST request

Overrides:
doPost in class HttpServlet
Parameters:
req - an incoming HttpServletRequest value
res - an outgoing HttpServletResponse value

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse res)
Process HTTP GET request.

Overrides:
doGet in class HttpServlet
Parameters:
req - an incoming HttpServletRequest
res - an outgoing HttpServletResponse

doGetInternal

protected void doGetInternal(IWritableHttpServletRequest writableRequest,
                             HttpServletResponse res)
Internal method just to clarify that the writableRequest should be used from here on out.


getResourceAsURL

public static URL getResourceAsURL(String resource)
Gets a URL associated with the named resource. Call this to access files with paths relative to the document root. Paths should begin with a "/".

Parameters:
resource - relative to the document root
Returns:
a URL associated with the named resource or null if the URL isn't accessible

getResourceAsStream

public static InputStream getResourceAsStream(String resource)
Gets an input stream associated with the named resource. Call this to access files with paths relative to the document root. Paths should begin with a "/".

Parameters:
resource - relative to the document root
Returns:
an input stream assosiated with the named resource

isServletContext

public static boolean isServletContext()
See if our servlet context is available

Returns:
boolean if so

getFatalError

public boolean getFatalError()
Accessor for the fatalError member.

Returns:
a boolean value indicating if a fatal error occured duing init

getRandom

public Random getRandom()
Accessor for the Random number generator instance

Returns:
an instance of a random number generator instantiated by the portal session manager.


Copyright © 2010 Jasig. All Rights Reserved.