|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.ConnectionConfiguration
public class ConnectionConfiguration
ConnectionConfiguration
A simple data class for holding connection concerned settings.
A ConnectionConfiguration
is only used to configure a connection
to a palo server. After the connection is established it is no longer used.
Constructor Summary | |
---|---|
ConnectionConfiguration(java.lang.String host,
java.lang.String service)
Create a new ConnectionConfiguration instance with the
specified host name and port number. |
Method Summary | |
---|---|
boolean |
doLoadOnDemand()
Returns true if load on demand is activated,
false otherwise |
java.lang.String |
getHost()
Returns the host which runs the palo server |
java.lang.String |
getPassword()
Returns the login password in plaintext |
java.lang.String |
getPort()
Deprecated. please use getService() instead |
java.lang.String |
getService()
Returns the service as string representation which handles palo requests. |
int |
getTimeout()
Returns the timeout setting in milliseconds after which a request is interrupted. |
int |
getType()
Returns the connection type. |
java.lang.String |
getUser()
Returns the login name |
void |
setLoadOnDemand(boolean loadOnDemand)
En- or disables the load on demand behaviour. |
void |
setPassword(java.lang.String password)
Sets the password in plaintext |
void |
setTimeout(int timeout)
Specifies connection timeout in milliseconds after which a request is interrupted. |
void |
setType(int type)
Specifies the connection type. |
void |
setUser(java.lang.String name)
Sets the user login name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionConfiguration(java.lang.String host, java.lang.String service)
ConnectionConfiguration
instance with the
specified host name and port number. The user name and password are not
set. The type is Connection.TYPE_HTTP
, load on demand is disabled
and the timeout is Connection.DEFAULT_TIMEOUT
host
- port
- Method Detail |
---|
public final boolean doLoadOnDemand()
true
if load on demand is activated,
false
otherwise
true
if load on demand is used,
false
otherwisepublic final java.lang.String getHost()
public final java.lang.String getPassword()
public final java.lang.String getPort()
getService()
instead
public final java.lang.String getService()
public final int getTimeout()
public final int getType()
Connection.TYPE_HTTP
,
Connection.TYPE_XMLA
and Connection.TYPE_LEGACY
are
supported
public final java.lang.String getUser()
public final void setLoadOnDemand(boolean loadOnDemand)
true
to activate load on demand behaviour for this
connection, specify false
to deactivate it.
loadOnDemand
- specify true
to activate it,
false
otherwisepublic final void setPassword(java.lang.String password)
password
- login passwordpublic final void setTimeout(int timeout)
timeout
- the timeout in millisecondspublic final void setType(int type)
Connection.TYPE_HTTP
,
Connection.TYPE_XMLA
and Connection.TYPE_LEGACY
are
supported
type
- connection typepublic final void setUser(java.lang.String name)
name
- login name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |