|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.palo.api.ConnectionFactory
org.palo.api.impl.ConnectionFactoryImpl
public class ConnectionFactoryImpl
ConnectionFactoryImpl
| Constructor Summary | |
|---|---|
ConnectionFactoryImpl()
|
|
| Method Summary | |
|---|---|
ConnectionConfiguration |
getConfiguration(java.lang.String host,
java.lang.String service)
Returns a default ConnectionConfiguration instance. |
ConnectionConfiguration |
getConfiguration(java.lang.String host,
java.lang.String service,
java.lang.String user,
java.lang.String password)
Creates a new ConnectionConfiguration instance with the specified
settings for host, service, user and password. |
Connection |
newConnection(ConnectionConfiguration cfg)
Creates a new Connection using the connection settings from the
given ConnectionConfiguration |
Connection |
newConnection(java.lang.String server,
java.lang.String service,
java.lang.String user,
java.lang.String pass)
Deprecated. please use @{link newConnection(ConnectionConfiguration) |
Connection |
newConnection(java.lang.String server,
java.lang.String service,
java.lang.String user,
java.lang.String pass,
boolean doLoadOnDemand,
int type)
Deprecated. please use @{link newConnection(ConnectionConfiguration) |
| Methods inherited from class org.palo.api.ConnectionFactory |
|---|
getInstance |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionFactoryImpl()
| Method Detail |
|---|
public final Connection newConnection(java.lang.String server,
java.lang.String service,
java.lang.String user,
java.lang.String pass)
newConnection(ConnectionConfiguration)
ConnectionFactoryConnection which is connected to the specified
palo-server. The default connection is of type HTTP and no
load on demand is activated. To
define the connection type and to use load on demand please call
ConnectionFactory.newConnection(String, String, String, String, boolean, int)
newConnection in class ConnectionFactoryserver - the server to connect to.service - the service to use (corresponds to port numbers given as a string)user - the username to use for authenticationpass - the password to use for authentication
public final Connection newConnection(java.lang.String server,
java.lang.String service,
java.lang.String user,
java.lang.String pass,
boolean doLoadOnDemand,
int type)
newConnection(ConnectionConfiguration)
ConnectionFactoryConnection which is connected to the specified
palo-server using specified type (legacy of HTTP). Load on demand can
be used. In this case the API tries to load only the information which
is currently required.
newConnection in class ConnectionFactoryserver - the server to connect to.service - the service to use (corresponds to port numbers given as a string)user - the username to use for authenticationpass - the password to use for authenticationdoLoadOnDemand - activate load on demandtype - palo server type to be used. Please use one of the defined
constants Connection.TYPE_LEGACY or Connection.TYPE_HTTP
public final ConnectionConfiguration getConfiguration(java.lang.String host,
java.lang.String service)
ConnectionConfiguration instance. The type is
Connection.TYPE_HTTP, load on demand is disabled and timeout
is set to #CONNECTION_TIMEOUT.
getConfiguration in class ConnectionFactoryhost - host which runs the palo serverservice - the service which handles palo requests
ConnectionConfiguration instance
public final ConnectionConfiguration getConfiguration(java.lang.String host,
java.lang.String service,
java.lang.String user,
java.lang.String password)
ConnectionFactoryConnectionConfiguration instance with the specified
settings for host, service, user and password.
getConfiguration in class ConnectionFactoryhost - host which runs the palo serverservice - the service which handles palo requestsuser - the login namepassword - the login password
ConnectionConfiguration instancepublic final Connection newConnection(ConnectionConfiguration cfg)
ConnectionFactoryConnection using the connection settings from the
given ConnectionConfiguration
newConnection in class ConnectionFactorycfg - ConnectionConfiguration containg connection settings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||