Package org.zaproxy.clientapi.gen
Class HttpSessions
java.lang.Object
org.zaproxy.clientapi.gen.deprecated.HttpSessionsDeprecated
org.zaproxy.clientapi.gen.HttpSessions
This file was automatically generated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactiveSession
(String site) Gets the name of the active session for the given site.addDefaultSessionToken
(String sessiontoken, String tokenenabled) Adds a default session token with the given name and enabled state.addSessionToken
(String site, String sessiontoken) Adds the session token to the given site.createEmptySession
(String site, String session) Creates an empty session for the given site.Gets the default session tokens.removeDefaultSessionToken
(String sessiontoken) Removes the default session token with the given name.removeSession
(String site, String session) Removes the session from the given site.removeSessionToken
(String site, String sessiontoken) Removes the session token from the given site.renameSession
(String site, String oldsessionname, String newsessionname) Renames the session of the given site.Gets the sessions for the given site.sessionTokens
(String site) Gets the names of the session tokens for the given site.setActiveSession
(String site, String session) Sets the given session as active for the given site.setDefaultSessionTokenEnabled
(String sessiontoken, String tokenenabled) Sets whether or not the default session token with the given name is enabled.setSessionTokenValue
(String site, String session, String sessiontoken, String tokenvalue) Sets the value of the session token of the given session for the given site.sites()
Gets all of the sites that have sessions.unsetActiveSession
(String site) Unsets the active session of the given site.Methods inherited from class org.zaproxy.clientapi.gen.deprecated.HttpSessionsDeprecated
addSessionToken, createEmptySession, removeSession, removeSessionToken, renameSession, setActiveSession, setSessionTokenValue, unsetActiveSession
-
Constructor Details
-
HttpSessions
-
-
Method Details
-
sites
Gets all of the sites that have sessions.- Throws:
ClientApiException
-
sessions
Gets the sessions for the given site. Optionally returning just the session with the given name.- Throws:
ClientApiException
-
activeSession
Gets the name of the active session for the given site.- Throws:
ClientApiException
-
sessionTokens
Gets the names of the session tokens for the given site.- Throws:
ClientApiException
-
defaultSessionTokens
Gets the default session tokens.- Throws:
ClientApiException
-
createEmptySession
Creates an empty session for the given site. Optionally with the given name.- Throws:
ClientApiException
-
removeSession
Removes the session from the given site.- Throws:
ClientApiException
-
setActiveSession
Sets the given session as active for the given site.- Throws:
ClientApiException
-
unsetActiveSession
Unsets the active session of the given site.- Throws:
ClientApiException
-
addSessionToken
Adds the session token to the given site.- Throws:
ClientApiException
-
removeSessionToken
Removes the session token from the given site.- Throws:
ClientApiException
-
setSessionTokenValue
public ApiResponse setSessionTokenValue(String site, String session, String sessiontoken, String tokenvalue) throws ClientApiException Sets the value of the session token of the given session for the given site.- Throws:
ClientApiException
-
renameSession
public ApiResponse renameSession(String site, String oldsessionname, String newsessionname) throws ClientApiException Renames the session of the given site.- Throws:
ClientApiException
-
addDefaultSessionToken
public ApiResponse addDefaultSessionToken(String sessiontoken, String tokenenabled) throws ClientApiException Adds a default session token with the given name and enabled state.- Throws:
ClientApiException
-
setDefaultSessionTokenEnabled
public ApiResponse setDefaultSessionTokenEnabled(String sessiontoken, String tokenenabled) throws ClientApiException Sets whether or not the default session token with the given name is enabled.- Throws:
ClientApiException
-
removeDefaultSessionToken
Removes the default session token with the given name.- Throws:
ClientApiException
-