|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.UniformResource
org.restlet.resource.ServerResource
restgroupsServer.BaseResource
public class BaseResource
Every time a client who is already registered in the RestGroups sends a request (i.e. he wants to check for messages), appropriate data structures are pulled out. The client is identified by a token which is passed with the requests cookies.
Field Summary | |
---|---|
protected ProfileEntity |
mySession
|
Constructor Summary | |
---|---|
BaseResource()
|
Method Summary | |
---|---|
void |
doInit()
Pulls out from the request the session cookie holding identifier of the client. |
protected GcsFactory |
getFactory()
Returns a factory for gcs objects. |
protected java.util.concurrent.ConcurrentMap<java.lang.String,ProfileEntity> |
getProfileEntities()
Returns profileEntities hash-map from the main application. |
protected java.util.concurrent.ConcurrentMap<java.lang.Long,ProfileEntity> |
getProfileEntitiesThreadIDs()
Returns profileEntitiesThreadIDs hash-map from the main application. |
protected java.util.concurrent.ConcurrentMap<java.lang.String,ProfilesPilotEntity> |
getProfilesPilotEntities()
Returns profilesPilotEntities hash-map from the main application. |
protected java.lang.String |
getRequestSessionId()
Retrieves sessionId from the requests cookie. |
protected void |
printProfileEntities()
Prints the content of the profileEntities hash-table. |
protected void |
printProfilesPilotEntities()
Prints the content of the profilesPilotEntities. |
protected void |
setResponseSessionId(java.lang.String sessionToken)
Sets given by the argument sessionId as the responses cookie. |
Methods inherited from class org.restlet.resource.ServerResource |
---|
delete, delete, describeVariants, doConditionalHandle, doHandle, doHandle, doNegotiatedHandle, get, get, getConverterService, getInfo, getInfo, getMetadataService, getPreferredVariant, getVariants, handle, head, head, isAnnotated, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setChallengeRequests, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions |
Methods inherited from class org.restlet.resource.UniformResource |
---|
doCatch, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMethod, getOriginalRef, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, init, isConfidential, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ProfileEntity mySession
Constructor Detail |
---|
public BaseResource()
Method Detail |
---|
protected java.util.concurrent.ConcurrentMap<java.lang.String,ProfileEntity> getProfileEntities()
protected java.util.concurrent.ConcurrentMap<java.lang.Long,ProfileEntity> getProfileEntitiesThreadIDs()
protected java.util.concurrent.ConcurrentMap<java.lang.String,ProfilesPilotEntity> getProfilesPilotEntities()
protected GcsFactory getFactory()
gcs
objects.
gcs
objectsprotected java.lang.String getRequestSessionId()
protected void setResponseSessionId(java.lang.String sessionToken)
sessionToken
- sessionId to be set as the responses cookiepublic void doInit()
ProfileEntity
object concerning this client is retrieved and
assigned to the mySession variable. Otherwise null is assigned to the
mySession variable.
doInit
in class org.restlet.resource.UniformResource
protected void printProfileEntities()
protected void printProfilesPilotEntities()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |