|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static int |
DEFAULT_SESSION_EXPIRATION_TIME
The default session expiration time in mili seconds. |
static int |
INFINITE_SESSION_EXPIRATION_TIME
The value used to specify that a session will never expire. |
static java.lang.String |
SESSION_ATTRIBUTE
Key under which the session is stored in the invocation attributes. |
static java.lang.String |
SESSION_ID_ATTRIBUTE
Key under which the session id is stored in the invocation attributes. |
Method Summary | |
void |
addRegistrationProperty(PropertyDescription propertyDescription)
Adds a registration property to the set of required information for Consumers to provide when registering with this Producer |
void |
clearRegistrationProperties()
Remove all existing registration properties. |
CookieProtocol |
getRequiresInitCookie()
Indicates whether or not the Producer requires the Consumer to assist with cookie support of the HTTP protocol. |
int |
getSessionExpirationTime()
Maximum number of seconds between invocations referencing a session ID before this Producer will schedule releasing the related resources. |
boolean |
isRequiresRegistration()
Determines whether registration is required to access this Producer's information and services. |
boolean |
isSessionValid(java.lang.String sessionId)
Checks that the session identified with the specified id is valid. |
void |
setRequiresInitCookie(CookieProtocol requiresInitCookie)
Sets the level of cookie support required by the Consumer. |
void |
setRequiresRegistration(boolean requiresRegistration)
Specifies whether this Producer requires clients to be registered or not. |
void |
setSessionExpirationTime(int sessionExpirationTime)
Sets the expiration time (in seconds) of session associated resources. |
Field Detail |
public static final int DEFAULT_SESSION_EXPIRATION_TIME
public static final int INFINITE_SESSION_EXPIRATION_TIME
public static final java.lang.String SESSION_ATTRIBUTE
public static final java.lang.String SESSION_ID_ATTRIBUTE
Method Detail |
public void setRequiresRegistration(boolean requiresRegistration)
requiresRegistration
- true
if registration is required, false
otherwise.public boolean isRequiresRegistration()
true
if registration is required, false
otherwise.public CookieProtocol getRequiresInitCookie()
org.jboss.portal.wsrp.core.CookieProtocol#none
: The Producer does
not need the Consumer to ever invoke org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType#initCookie(org.jboss.portal.wsrp.core.InitCookie)
.org.jboss.portal.wsrp.core.CookieProtocol#perUser
: The Consumer MUST invoke org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType#initCookie(org.jboss.portal.wsrp.core.InitCookie)
once per
user of the Consumer, and associate any returned cookies with subsequent invocations on behalf of that user.org.jboss.portal.wsrp.core.CookieProtocol#perGroup
: The Consumer MUST invoke org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType#initCookie(org.jboss.portal.wsrp.core.InitCookie)
once per
unique groupID from the PortletDescriptions for the Portlets it is aggregating on a page for each user of the
Consumer, and associate any returned cookies with subsequent invocations on behalf of that user targeting Portlets
with identical groupIDs.
public void setRequiresInitCookie(CookieProtocol requiresInitCookie)
requiresInitCookie
- either org.jboss.portal.wsrp.core.CookieProtocol#none
, org.jboss.portal.wsrp.core.CookieProtocol#perUser
or org.jboss.portal.wsrp.core.CookieProtocol#perGroup
public int getSessionExpirationTime()
INFINITE_SESSION_EXPIRATION_TIME
indicates that the sessionID will never
expire.
public void setSessionExpirationTime(int sessionExpirationTime)
sessionExpirationTime
- the maximum number of seconds between invocations referencing a session ID before
this Producer will schedule releasing the related resources. If INFINITE_SESSION_EXPIRATION_TIME
is passed, then the session will never expire.public boolean isSessionValid(java.lang.String sessionId)
sessionId
-
true
if the session associated with the given id is valid, false
otherwise.public void addRegistrationProperty(PropertyDescription propertyDescription)
propertyDescription
- public void clearRegistrationProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |