Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

DefaultJConnectionFactory (jremote API)

Class 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.


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
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 initialization.

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()

Was this article helpful?