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 Details
-
get
A GET.- Parameters:
path- the path under the root, query included if any- 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 the session out; a failure is only noted.- 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
-