|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netegrity.sdk.apiutil.SmApiConnection
public class SmApiConnection
Establishes the connection to the Policy Server and sends Java API requests to the Policy Server.
This class holds the Agent API handle through which Java API request are sent.
The AgentAPI object is in the package
netegrity.siteminder.javaagent.
For background information about connections, see
Establish a Connection to the Policy Server in the Programming Guide for Java.
There are two types of connection handles in this class:
SmApiConnnection
constructor with defaultAgentConnection set to
true. If you already established an Agent API handle,
call the SmApiConnnection constructor that takes the Agent API handle as
its only parameter.
| Constructor Summary | |
|---|---|
SmApiConnection(AgentAPI agentApiConnection)
Creates a user-defined Agent API connection. |
|
SmApiConnection(boolean defaultAgentConnection,
boolean disableLoadBalancing)
Creates an API connection object and establishes a connection to the Policy Server. |
|
| Method Summary | |
|---|---|
SmApiResult |
execute(java.lang.String sessionspec,
SmApiConstants method,
SmApiObject apiObj)
Executes the API command request. |
SmApiResult |
execute(java.lang.String sessionspec,
java.lang.String library,
SmApiConstants method,
SmApiObject apiObj)
Executes the API command request. |
AgentAPI |
getAgentApiConnection()
Gets an Agent API connection. |
boolean |
isValidApiConnection()
Verifies whether a valid Agent API connection is available. |
void |
setAgentApiConnection(AgentAPI agentApiConnection)
Sets an Agent API connection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmApiConnection(boolean defaultAgentConnection,
boolean disableLoadBalancing)
throws SmApiException
defaultAgentConnection - Specifies the type of connection:
true,
the default static connection is established.
false, you need to
call setAgentApiConnection with a valid
AgentAPI handle.
disableLoadBalancing - Specifies whether to disable load balancing
for the Agent API connection, if any. If true, Java
API calls can access the configured Policy Servers in
failover mode. Otherwise, the existing agent
configuration is preserved.
SmApiExceptionpublic SmApiConnection(AgentAPI agentApiConnection)
agentApiConnection - Valid AgentAPI handle.| Method Detail |
|---|
public void setAgentApiConnection(AgentAPI agentApiConnection)
throws SmApiException
agentApiConnection - A valid AgentAPI connection * handle. The connection handle overrides the default handle
or any other user-defined handle. If a null handle is passed,
the connection is switched to the default handle, provided the
default handle is already established through
SmApiConnnection.
SmApiException
public AgentAPI getAgentApiConnection()
throws SmApiException
AgentAPI handle
SmApiExceptionpublic boolean isValidApiConnection()
true if there is a valid Agent API connection;
false otherwise.
public SmApiResult execute(java.lang.String sessionspec,
SmApiConstants method,
SmApiObject apiObj)
throws SmApiException
sessionspec - Valid session specification.method - Requested method to be executed.apiObj - An SmApiObject containing information about the request.
SmApiException
public SmApiResult execute(java.lang.String sessionspec,
java.lang.String library,
SmApiConstants method,
SmApiObject apiObj)
throws SmApiException
sessionspec - Valid session specification.The - dll to connect to for this methodmethod - Requested method to be executed.apiObj - An SmApiObject containing information about the request.
SmApiException
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||