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, unsetActiveSession
public HttpSessions(ClientApi api)
public ApiResponse sites() throws ClientApiException
ClientApiException
public ApiResponse sessions(java.lang.String site, java.lang.String session) throws ClientApiException
ClientApiException
public ApiResponse activeSession(java.lang.String site) throws ClientApiException
ClientApiException
public ApiResponse sessionTokens(java.lang.String site) throws ClientApiException
ClientApiException
public ApiResponse defaultSessionTokens() throws ClientApiException
ClientApiException
public ApiResponse createEmptySession(java.lang.String site, java.lang.String session) throws ClientApiException
ClientApiException
public ApiResponse removeSession(java.lang.String site, java.lang.String session) throws ClientApiException
ClientApiException
public ApiResponse setActiveSession(java.lang.String site, java.lang.String session) throws ClientApiException
ClientApiException
public ApiResponse unsetActiveSession(java.lang.String site) throws ClientApiException
ClientApiException
public ApiResponse addSessionToken(java.lang.String site, java.lang.String sessiontoken) throws ClientApiException
ClientApiException
public ApiResponse removeSessionToken(java.lang.String site, java.lang.String sessiontoken) throws ClientApiException
ClientApiException
public ApiResponse setSessionTokenValue(java.lang.String site, java.lang.String session, java.lang.String sessiontoken, java.lang.String tokenvalue) throws ClientApiException
ClientApiException
public ApiResponse renameSession(java.lang.String site, java.lang.String oldsessionname, java.lang.String newsessionname) throws ClientApiException
ClientApiException
public ApiResponse addDefaultSessionToken(java.lang.String sessiontoken, java.lang.String tokenenabled) throws ClientApiException
ClientApiException
public ApiResponse setDefaultSessionTokenEnabled(java.lang.String sessiontoken, java.lang.String tokenenabled) throws ClientApiException
ClientApiException
public ApiResponse removeDefaultSessionToken(java.lang.String sessiontoken) throws ClientApiException
ClientApiException