TagSupportHelper Class
- public class TagSupportHelper
extends Object
A class that provides P13N helper methods for P13N JSP custom tag handler classes.
-
Hierarchy
-
Object
TagSupportHelper
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TagSupportHelper
public TagSupportHelper()
createAdviceRequest(PageContext, String, String) Method
public static AdviceRequest
createAdviceRequest(PageContext
pageContext,
String
uri,
String
identifier)
throws JspException
Populates a new AdviceRequest
with the following:
- The current HTTP Request
- The current HTTP Session
- The current User
- A new TimeInstant
- A new Time
- A new Date
Parameters
-
pageContext
- The
PageContext
.
-
uri
- the URI for the AdviceRequest - this will correspond to the
URI prefix of a deployed Advislet.
-
identifier
- the identifier for this request to the Advisor.
Returns
- a new
AdviceRequest
instance.
Exceptions
-
JspException
- if an error occurrs during creation of
an
AdviceRequest
.
Related Topics
AdviceRequest
createAdvisor() Method
public static Advisor
createAdvisor()
throws JspException
Creates an Advisor
EJB instance.
Returns
- an Advisor
Exceptions
-
JspException
- if an error occurrs during creation of
an
Advisor
.
Related Topics
Advisor
getUserProfile(HttpServletRequest) Method
public static ProfileWrapper
getUserProfile(HttpServletRequest
httpRequest)
throws JspException
Returns a ProfileWrapper
for the current user. This
method first tries to retrieve a previously cached profile. If
one cannot be found, a new ProfileWrapper
is created
for the current user ID. If the user ID is not initialized, an
anonymous profile is returned.
Returns
- a
ProfileWrapper
for the current user.
Exceptions
-
JspException
- on profile retrieval error.