public class HttpSessions extends HttpSessionsDeprecated
| Constructor and Description |
|---|
HttpSessions(ClientApi api) |
| Modifier and Type | Method and Description |
|---|---|
ApiResponse |
activeSession(java.lang.String site)
Gets the name of the active session for the given site.
|
ApiResponse |
addDefaultSessionToken(java.lang.String sessiontoken,
java.lang.String tokenenabled)
Adds a default session token with the given name and enabled state.
|
ApiResponse |
addSessionToken(java.lang.String site,
java.lang.String sessiontoken)
Adds the session token to the given site.
|
ApiResponse |
createEmptySession(java.lang.String site,
java.lang.String session)
Creates an empty session for the given site.
|
ApiResponse |
defaultSessionTokens()
Gets the default session tokens.
|
ApiResponse |
removeDefaultSessionToken(java.lang.String sessiontoken)
Removes the default session token with the given name.
|
ApiResponse |
removeSession(java.lang.String site,
java.lang.String session)
Removes the session from the given site.
|
ApiResponse |
removeSessionToken(java.lang.String site,
java.lang.String sessiontoken)
Removes the session token from the given site.
|
ApiResponse |
renameSession(java.lang.String site,
java.lang.String oldsessionname,
java.lang.String newsessionname)
Renames the session of the given site.
|
ApiResponse |
sessions(java.lang.String site,
java.lang.String session)
Gets the sessions for the given site.
|
ApiResponse |
sessionTokens(java.lang.String site)
Gets the names of the session tokens for the given site.
|
ApiResponse |
setActiveSession(java.lang.String site,
java.lang.String session)
Sets the given session as active for the given site.
|
ApiResponse |
setDefaultSessionTokenEnabled(java.lang.String sessiontoken,
java.lang.String tokenenabled)
Sets whether or not the default session token with the given name is enabled.
|
ApiResponse |
setSessionTokenValue(java.lang.String site,
java.lang.String session,
java.lang.String sessiontoken,
java.lang.String tokenvalue)
Sets the value of the session token of the given session for the given site.
|
ApiResponse |
sites()
Gets all of the sites that have sessions.
|
ApiResponse |
unsetActiveSession(java.lang.String site)
Unsets the active session of the given site.
|
addSessionToken, createEmptySession, removeSession, removeSessionToken, renameSession, setActiveSession, setSessionTokenValue, unsetActiveSessionpublic HttpSessions(ClientApi api)
public ApiResponse sites() throws ClientApiException
ClientApiExceptionpublic ApiResponse sessions(java.lang.String site, java.lang.String session) throws ClientApiException
ClientApiExceptionpublic ApiResponse activeSession(java.lang.String site) throws ClientApiException
ClientApiExceptionpublic ApiResponse sessionTokens(java.lang.String site) throws ClientApiException
ClientApiExceptionpublic ApiResponse defaultSessionTokens() throws ClientApiException
ClientApiExceptionpublic ApiResponse createEmptySession(java.lang.String site, java.lang.String session) throws ClientApiException
ClientApiExceptionpublic ApiResponse removeSession(java.lang.String site, java.lang.String session) throws ClientApiException
ClientApiExceptionpublic ApiResponse setActiveSession(java.lang.String site, java.lang.String session) throws ClientApiException
ClientApiExceptionpublic ApiResponse unsetActiveSession(java.lang.String site) throws ClientApiException
ClientApiExceptionpublic ApiResponse addSessionToken(java.lang.String site, java.lang.String sessiontoken) throws ClientApiException
ClientApiExceptionpublic ApiResponse removeSessionToken(java.lang.String site, java.lang.String sessiontoken) throws ClientApiException
ClientApiExceptionpublic ApiResponse setSessionTokenValue(java.lang.String site, java.lang.String session, java.lang.String sessiontoken, java.lang.String tokenvalue) throws ClientApiException
ClientApiExceptionpublic ApiResponse renameSession(java.lang.String site, java.lang.String oldsessionname, java.lang.String newsessionname) throws ClientApiException
ClientApiExceptionpublic ApiResponse addDefaultSessionToken(java.lang.String sessiontoken, java.lang.String tokenenabled) throws ClientApiException
ClientApiExceptionpublic ApiResponse setDefaultSessionTokenEnabled(java.lang.String sessiontoken, java.lang.String tokenenabled) throws ClientApiException
ClientApiExceptionpublic ApiResponse removeDefaultSessionToken(java.lang.String sessiontoken) throws ClientApiException
ClientApiException