|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.p13n.http.HttpConfigurableEntity
com.bea.p13n.http.Session
public class Session
The Personalization Server implementation of the Http Session interface.
This object is used by the Personalization Server to get properties on an Http Session in a format understandable to Personalization Core Services such as the Rules Service. Note, we require the request to be passed into many methods since there are cases where we need to look at the request. The getProperty method will look in the HTTP session attributes for the property./
This will use a DefaultRequestFilter
to filter out attributes. After loading the request attributes, this will additionally call out to any AttributeLoaders
specified by the AttributeLoaderBean's SessionLoaders attribute./
Nested Class Summary | |
---|---|
static interface |
Session.AttributeLoader An object which is capable of loading additional attributes into a Session. |
Field Summary | |
---|---|
static String |
SESSION_PROPERTY_SET_TYPE request property set type |
Fields inherited from interface com.bea.p13n.property.ConfigurableEntity |
---|
RESERVED_PROPERTY_SET |
Constructor Summary | |
---|---|
Session() Default (empty) constructor |
|
Session(javax.servlet.http.HttpServletRequest request) Creates a P13N HTTP Session. |
|
Session(javax.servlet.http.HttpSession session) Creates a P13N HTTP Session. |
Method Summary | |
---|---|
static Session |
createP13NSession(javax.servlet.http.HttpServletRequest request) Returns a P13N Session that acts as a surrogate for an HTTP session. |
Object |
getAttribute(String name) |
Enumeration |
getAttributeNames() |
long |
getCreationTime() |
String |
getId() Returns the id of the HttpSession for which this surrogate represents |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
Object |
getProperty(String propertySet, String propertyName) Retrieves a property value for the specified scope and key. |
Object |
getPropertyNoDefault(String propertySet, String propertyName) Retrieves a property value for the specified scope and key. |
javax.servlet.ServletContext |
getServletContext() Always returns null |
javax.servlet.http.HttpSessionContext |
getSessionContext() |
Object |
getValue(String name) |
String[] |
getValueNames() |
void |
invalidate() |
boolean |
isNew() |
void |
putValue(String name, Object val) |
void |
removeAttribute(String name) |
void |
removeValue(String name) |
void |
setAttribute(String name, Object val) |
void |
setMaxInactiveInterval(int interval) |
Methods inherited from class com.bea.p13n.http.HttpConfigurableEntity |
---|
getJndiName, getPkString, getProperty, getPropertyAsString, getPropertyDefault, getPropertySetManager, getUniqueId, removeProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bea.p13n.http.SerializableSession |
---|
getProperty, getPropertyAsString |
Methods inherited from interface com.bea.p13n.property.ConfigurableEntity |
---|
getJndiName, getPkString, getUniqueId, removeProperty, setProperty |
Field Detail |
---|
public static final String SESSION_PROPERTY_SET_TYPE
Constructor Detail |
---|
public Session()
public Session(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest
used to get the Http session values.public Session(javax.servlet.http.HttpSession session)
session
- the HttpSession
used to get the Http session values.Method Detail |
---|
public static Session createP13NSession(javax.servlet.http.HttpServletRequest request) throws IllegalArgumentException
request
- the request used to create the Session object.HttpServletSession
IllegalArgumentException
- If the paramater is null.public Object getPropertyNoDefault(String propertySet, String propertyName)
getPropertyNoDefault
in interface SerializableSession
getPropertyNoDefault
in interface ConfigurableEntity
getPropertyNoDefault
in class HttpConfigurableEntity
propertySet
- The name of the property set for which the property is sought. The property set is only used if no property is found in the session and we use the property set to look up the default value in the PropertySet for the session. This parameter can be null.propertyName
- The property name.public Object getProperty(String propertySet, String propertyName)
getProperty
in interface SerializableSession
getProperty
in interface ConfigurableEntity
getProperty
in class HttpConfigurableEntity
propertySet
- The name of the property set for which the property is sought. The property set is only used if no property is found in the session and we use the property set to look up the default value in the PropertySet for the session. This parameter can be null.propertyName
- The property name.getPropertyNoDefault(java.lang.String, java.lang.String)
public long getCreationTime()
getCreationTime
in interface javax.servlet.http.HttpSession
public String getId()
getId
in interface javax.servlet.http.HttpSession
public long getLastAccessedTime()
getLastAccessedTime
in interface javax.servlet.http.HttpSession
public void setMaxInactiveInterval(int interval)
setMaxInactiveInterval
in interface javax.servlet.http.HttpSession
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface javax.servlet.http.HttpSession
public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext
in interface javax.servlet.http.HttpSession
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.http.HttpSession
public Object getAttribute(String name)
getAttribute
in interface javax.servlet.http.HttpSession
public Object getValue(String name)
getValue
in interface javax.servlet.http.HttpSession
public Enumeration getAttributeNames()
getAttributeNames
in interface javax.servlet.http.HttpSession
public String[] getValueNames()
getValueNames
in interface javax.servlet.http.HttpSession
public void setAttribute(String name, Object val)
setAttribute
in interface javax.servlet.http.HttpSession
public void putValue(String name, Object val)
putValue
in interface javax.servlet.http.HttpSession
public void removeAttribute(String name)
removeAttribute
in interface javax.servlet.http.HttpSession
public void removeValue(String name)
removeValue
in interface javax.servlet.http.HttpSession
public void invalidate()
invalidate
in interface javax.servlet.http.HttpSession
public boolean isNew()
isNew
in interface javax.servlet.http.HttpSession
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.