public class APISession extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAJOR_VERSION |
static int |
MINOR_VERSION |
static String |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
static APISession |
create(IntegrityConfigurable settings)
Creates an authenticated API Session against the Integrity Server
|
String |
getHostName()
Returns the Integrity Hostname for this APISession
|
String |
getIPHostName()
Returns the Integrity Integration Point Hostname for this APISession
|
String |
getIPPort()
Returns the Integrity Integration Point Port for this APISession
|
String |
getPort()
Returns the Integrity Port for this APISession
|
String |
getUserName()
Returns the Integrity User for this APISession
|
void |
refreshAPISession() |
com.mks.api.response.Response |
runCommand(com.mks.api.Command cmd)
This function executes a generic API/CLI Command
|
com.mks.api.response.Response |
runCommandAs(com.mks.api.Command cmd,
String impersonateUser)
This function executes a generic API/CLI Command impersonating another user
|
com.mks.api.response.Response |
runCommandWithInterim(com.mks.api.Command cmd)
This function executes a generic API/CLI Command with interim
|
void |
Terminate()
Terminate the API Session and Integration Point
|
public static final String VERSION
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public static APISession create(IntegrityConfigurable settings)
public com.mks.api.response.Response runCommand(com.mks.api.Command cmd)
throws com.mks.api.response.APIException
cmd - Integrity API Command Object representing a CLI commandcom.mks.api.response.APIExceptionpublic com.mks.api.response.Response runCommandWithInterim(com.mks.api.Command cmd)
throws com.mks.api.response.APIException
cmd - Integrity API Command Object representing a CLI commandcom.mks.api.response.APIExceptionpublic com.mks.api.response.Response runCommandAs(com.mks.api.Command cmd,
String impersonateUser)
throws com.mks.api.response.APIException
cmd - Integrity API Command Object representing a CLI commandimpersonateUser - The user to impersonatecom.mks.api.response.APIExceptionpublic void refreshAPISession()
throws com.mks.api.response.APIException
com.mks.api.response.APIExceptionpublic void Terminate()
public String getIPHostName()
public String getIPPort()
public String getHostName()
public String getPort()
public String getUserName()
Copyright © 2004-2015 Hudson. All Rights Reserved.