BEA Systems, Inc.

com.beasys.commerce.axiom.p13n.jsp
Class P13NJspHelper

java.lang.Object
  |
  +--com.beasys.commerce.axiom.jsp.JspHelper
        |
        +--com.beasys.commerce.axiom.p13n.jsp.P13NJspHelper

public class P13NJspHelper
extends JspHelper

A helper class for all P13N JSP pages.


Constructor Summary
P13NJspHelper()
           
 
Method Summary
static ConfigurableEntity createP13NProfile(javax.servlet.http.HttpServletRequest request)
          Returns the current user profile in use for the session.
static Request createP13NRequest(javax.servlet.http.HttpServletRequest request)
          Returns a P13N Request that acts as a surrogate for an HTTP request.
static Session createP13NSession(javax.servlet.http.HttpServletRequest request)
          Returns a P13N Session that acts as a surrogate for an HTTP session.
 
Methods inherited from class com.beasys.commerce.axiom.jsp.JspHelper
decode, encode, findCookie, getCookieTimeout, getCookieValue, getDefaultDestination, getDefaultSuccessor, getDequalifiedSessionValues, getLoggedIn, getRepositoryDirectory, getServletConfig, getSessionValue, getSessionValue, getSessionValues, getSessionValues, getTrafficURI, getTrafficURINoContext, getWorkingDirectory, isWar, putSessionValue, putSessionValue, qualifiedName, removeSessionValue, setCookie, setSessionValue, setSessionValue, validSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

P13NJspHelper

public P13NJspHelper()
Method Detail

createP13NSession

public static Session createP13NSession(javax.servlet.http.HttpServletRequest request)
                                 throws java.lang.IllegalArgumentException
Returns a P13N Session that acts as a surrogate for an HTTP session.
Parameters:
request - the request used to create the Session object.
Returns:
a new ConfigurableEntity that allows access to an HttpServletSession
Throws:
java.lang.IllegalArgumentException - If the paramater is null.

createP13NRequest

public static Request createP13NRequest(javax.servlet.http.HttpServletRequest request)
                                 throws java.lang.IllegalArgumentException
Returns a P13N Request that acts as a surrogate for an HTTP request.
Parameters:
request - the request used to create the Session object.
Returns:
a new ConfigurableEntity that allows access to an HttpServletRequest
Throws:
java.lang.IllegalArgumentException - If the paramater is null.

createP13NProfile

public static ConfigurableEntity createP13NProfile(javax.servlet.http.HttpServletRequest request)
                                            throws java.lang.IllegalArgumentException
Returns the current user profile in use for the session.
Parameters:
request - the request used to obtain the profile
Returns:
the session user profile
Throws:
java.lang.IllegalArgumentException - If the paramater is null.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved