|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CamsClient
Defines a central interface for connecting to a Cams policy server and accessing services.
| Method Summary | |
|---|---|
void |
addConnectionExceptionListener(ConnectionExceptionListener listener)
Adds the specified listener to this CamsClient. |
void |
connect()
Connect to the CamsPolicyServer. |
void |
destroy()
Destroy the CamsClient. |
void |
disconnect()
Disconnect from the CamsPolicyServer. |
void |
initialize(Config config)
Initialize the CamsClient. |
boolean |
isConnected()
Check to see if connected to the CamsPolicyServer. |
void |
removeConnectionExceptionListener(ConnectionExceptionListener listener)
Removes the specified listener from this CamsClient. |
| Methods inherited from interface com.cafesoft.core.service.ServiceFinder |
|---|
find, find, find |
| Method Detail |
|---|
void initialize(Config config)
throws ConfigException
config - Configuration Properties.
ConfigExceptionvoid connect()
The underlying client implementation may create any number of network connections to support the configured Cams services. Connection creation can be "eager" or "lazy", but the underlying CamsClient implementation should at least establish that a CamsPolicyServer is located and listening at the configured URL. //@exception ConnectionException if the CamsClient fails to connect to the CamsPolicyServer. If the CamsClient attempts to create more than one Connection, then ConnectionException is thrown if any single Connection cannot be created. Any existing Connections should be cleaned up by invoking disconnect().
boolean isConnected()
void disconnect()
Any open connections to the CamsPolicyServer are gracefully disconnected and destroyed.
void addConnectionExceptionListener(ConnectionExceptionListener listener)
listener - receives connection exceptionsvoid removeConnectionExceptionListener(ConnectionExceptionListener listener)
listener - receives connection exceptionsvoid destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||