# DefaultJConnectionFactory (jremote API)

Read Time: 3 minute(s)

# Class DefaultJConnectionFactory

All Implemented Interfaces:

JConnectionFactory


public class DefaultJConnectionFactory
extends Object
implements JConnectionFactory
1
2
3

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

# Field Summary

Modifier and Type Field and Description
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

Constructor and Description
DefaultJConnectionFactory()

# Method Summary

Modifier and Type Method and Description
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
1

See Also:Constant Field Values

# DEFAULT_ENABLE_SSL

public static final boolean DEFAULT_ENABLE_SSL
1

See Also:Constant Field Values

# DEFAULT_ENABLE_NAIVETRUSTMANAGER

public static final boolean DEFAULT_ENABLE_NAIVETRUSTMANAGER
1

See Also:Constant Field Values

# DEFAULT_ENABLE_COMPRESSION

public static final boolean DEFAULT_ENABLE_COMPRESSION
1

See Also:Constant Field Values

# JBASE_PRODUCT_JREMOTEJAVA

public static final String JBASE_PRODUCT_JREMOTEJAVA
1

See Also:Constant Field Values

Back to jRemote API

# Constructor Detail

# DefaultJConnectionFactory

public DefaultJConnectionFactory()
1

# Method Detail

# getConnection

public JConnection getConnection()
                          throws JRemoteException
1
2

Description copied from interface: JConnectionFactory

Get a connection to a remote jBASE instance. Specified by:getConnection in interface JConnectionFactoryReturns:JConnection The connectionThrows:JRemoteException

# getConnection

public JConnection getConnection(String user,
                                 String password)
                          throws JRemoteException
1
2
3

Description copied from interface: JConnectionFactory

Get a connection to a remote jBASE instance. Specified by:getConnection in interface JConnectionFactoryReturns:JConnection The connectionThrows:JRemoteException

# getConnection

public JConnection getConnection(String user,
                                 String password,
                                 Properties props)
                          throws JRemoteException
1
2
3
4

Description copied from interface: JConnectionFactory

Get a connection to a remote jBASE instance. Specified by:getConnection in interface JConnectionFactoryReturns:JConnection The connectionThrows:JRemoteException

# getConnection

public JConnection getConnection(String user,
                                 String account,
                                 String password)
                          throws JRemoteException
1
2
3
4

Description copied from interface: JConnectionFactory

Get a connection to a remote jBASE account. Specified by:getConnection in interface JConnectionFactoryReturns:JConnection The connectionThrows:JRemoteException

# getConnection

public JConnection getConnection(JConnectionCallbackHandler handler)
                          throws JRemoteException
1
2

Description copied from interface: JConnectionFactory

Get a connection to a remote jBASE instance, in a managed environment the callback handler provides ancillary connection initialization. Specified by:getConnection in interface JConnectionFactoryReturns:JConnection The connectionThrows:JRemoteException

# getConnectionProperties

protected Properties getConnectionProperties()
1

# getConnectionProperties

protected Properties getConnectionProperties(Properties props)
1

# getHost

public String getHost()
1

# setHost

public void setHost(String host)
1

# getPort

public int getPort()
1

# setPort

public void setPort(int port)
1

# enableSSL

public void enableSSL()
1

# disableSSL

public void disableSSL()
1

# isEnabledSSL

public boolean isEnabledSSL()
1

# enableNaiveTrustManager

public void enableNaiveTrustManager()
1

# disableNaiveTrustManager

public void disableNaiveTrustManager()
1

# isEnabledNaiveTrustManager

public boolean isEnabledNaiveTrustManager()
1

# enableCompression

public void enableCompression()
1

# disableCompression

public void disableCompression()
1

# isEnabledCompression

public boolean isEnabledCompression()
1

Back to jRemote API