Class BlueMindRestSession.Session
java.lang.Object
org.exoplatform.caldav.client.bluemind.BlueMindRestSession.Session
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
BlueMindRestSession
An open session: the REST root and the key every call carries. Paths are
given relative to the root and always start with
/api/; a query
may follow, and is never named in a message.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Logs out a session nothing keeps (closeIfMine()); a failure is only noted.A DELETE.The uid of the domain the authenticated account belongs to: the{domainUid}segment of BlueMind's per-user REST paths.A GET.The URI a message may name for a path: root and path, without the query.A POST with a body.A PUT with a body.toString()userUid()The directory entry uid BlueMind authenticated this session as, the segment of the account's DAV principal/dav/principals/__uids__/<uid>/.
-
Method Details
-
userUid
The directory entry uid BlueMind authenticated this session as, the segment of the account's DAV principal/dav/principals/__uids__/<uid>/.- Returns:
- the uid, or null when the login answer named none
-
domainUid
The uid of the domain the authenticated account belongs to: the{domainUid}segment of BlueMind's per-user REST paths.- Returns:
- the domain uid, or null when the login answer named none
-
get
A GET.- Parameters:
path- the path under the root, query included if any- Returns:
- the answer
-
post
A POST with a body.- Parameters:
path- the path under the rootbody- the body textcontentType- its media type, sent exactly as given- Returns:
- the answer
-
put
A PUT with a body.- Parameters:
path- the path under the rootbody- the body textcontentType- its media type, sent exactly as given- Returns:
- the answer
-
delete
A DELETE.- Parameters:
path- the path under the root, query included if any- Returns:
- the answer
-
close
public void close()Logs out a session nothing keeps (closeIfMine()); a failure is only noted. A kept session stays in the store, for the next call to reuse.- Specified by:
closein interfaceAutoCloseable
-
toString
-
named
The URI a message may name for a path: root and path, without the query.- Parameters:
path- the path under the root- Returns:
- the URI, query stripped
-