jremote jbase5.2.1

com.jbase.jremote
Class DefaultJConnectionFactory

java.lang.Object
  extended by com.jbase.jremote.DefaultJConnectionFactory
All Implemented Interfaces:
JConnectionFactory

public class DefaultJConnectionFactory
extends Object
implements JConnectionFactory

The default implementation of a JConnectionFactory that will connect to a remote jBASE instance using a host and a port.

Author:
aphethean

Field Summary
static boolean DEFAULT_ENABLE_COMPRESSION
           
static boolean DEFAULT_ENABLE_NAIVETRUSTMANAGER
           
static boolean DEFAULT_ENABLE_SSL
           
static int DEFAULT_PORT
           
static String JBASE_PRODUCT_JREMOTEJAVA
           
 
Constructor Summary
DefaultJConnectionFactory()
           
 
Method Summary
 void disableCompression()
           
 void disableNaiveTrustManager()
           
 void disableSSL()
           
 void enableCompression()
           
 void enableNaiveTrustManager()
           
 void enableSSL()
           
 JConnection getConnection()
          Get a connection to a remote jBASE instance.
 JConnection getConnection(JConnectionCallbackHandler handler)
          Get a connection to a remote jBASE instance, in a managed environment the callback handler provides ancillary connection initialisation.
 JConnection getConnection(String user, String password)
          Get a connection to a remote jBASE instance.
 JConnection getConnection(String user, String password, Properties props)
          Get a connection to a remote jBASE instance.
 JConnection getConnection(String user, String account, String password)
          Get a connection to a remote jBASE account.
protected  Properties getConnectionProperties()
           
protected  Properties getConnectionProperties(Properties props)
           
 String getHost()
           
 int getPort()
           
 boolean isEnabledCompression()
           
 boolean isEnabledNaiveTrustManager()
           
 boolean isEnabledSSL()
           
 void setHost(String host)
           
 void setPort(int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_ENABLE_SSL

public static final boolean DEFAULT_ENABLE_SSL
See Also:
Constant Field Values

DEFAULT_ENABLE_NAIVETRUSTMANAGER

public static final boolean DEFAULT_ENABLE_NAIVETRUSTMANAGER
See Also:
Constant Field Values

DEFAULT_ENABLE_COMPRESSION

public static final boolean DEFAULT_ENABLE_COMPRESSION
See Also:
Constant Field Values

JBASE_PRODUCT_JREMOTEJAVA

public static final String JBASE_PRODUCT_JREMOTEJAVA
See Also:
Constant Field Values
Constructor Detail

DefaultJConnectionFactory

public DefaultJConnectionFactory()
Method Detail

getConnection

public JConnection getConnection()
                          throws JRemoteException
Description copied from interface: JConnectionFactory

Get a connection to a remote jBASE instance.

Specified by:
getConnection in interface JConnectionFactory
Returns:
JConnection The connection
Throws:
JRemoteException

getConnection

public JConnection getConnection(String user,
                                 String password)
                          throws JRemoteException
Description copied from interface: JConnectionFactory

Get a connection to a remote jBASE instance.

Specified by:
getConnection in interface JConnectionFactory
Returns:
JConnection The connection
Throws:
JRemoteException

getConnection

public JConnection getConnection(String user,
                                 String password,
                                 Properties props)
                          throws JRemoteException
Description copied from interface: JConnectionFactory

Get a connection to a remote jBASE instance.

Specified by:
getConnection in interface JConnectionFactory
Returns:
JConnection The connection
Throws:
JRemoteException

getConnection

public JConnection getConnection(String user,
                                 String account,
                                 String password)
                          throws JRemoteException
Description copied from interface: JConnectionFactory

Get a connection to a remote jBASE account.

Specified by:
getConnection in interface JConnectionFactory
Returns:
JConnection The connection
Throws:
JRemoteException

getConnection

public JConnection getConnection(JConnectionCallbackHandler handler)
                          throws JRemoteException
Description copied from interface: JConnectionFactory

Get a connection to a remote jBASE instance, in a managed environment the callback handler provides ancillary connection initialisation.

Specified by:
getConnection in interface JConnectionFactory
Returns:
JConnection The connection
Throws:
JRemoteException

getConnectionProperties

protected Properties getConnectionProperties()

getConnectionProperties

protected Properties getConnectionProperties(Properties props)

getHost

public String getHost()

setHost

public void setHost(String host)

getPort

public int getPort()

setPort

public void setPort(int port)

enableSSL

public void enableSSL()

disableSSL

public void disableSSL()

isEnabledSSL

public boolean isEnabledSSL()

enableNaiveTrustManager

public void enableNaiveTrustManager()

disableNaiveTrustManager

public void disableNaiveTrustManager()

isEnabledNaiveTrustManager

public boolean isEnabledNaiveTrustManager()

enableCompression

public void enableCompression()

disableCompression

public void disableCompression()

isEnabledCompression

public boolean isEnabledCompression()

jremote jbase5.2.1

Copyright © 2016 TEMENOS. All Rights Reserved.