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