Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Member Functions | Private Attributes
fr.ove.utils.ConnectionFactory Class Reference

A connection factory. More...

Inheritance diagram for fr.ove.utils.ConnectionFactory:
Inheritance graph
[legend]
Collaboration diagram for fr.ove.utils.ConnectionFactory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void setHostName (String name)
 Sets the host name for the connection to create.
String getHostName ()
 Returns the host name for the connection to create.
void setPortNumber (int number)
 Sets the port number for the connexion to create.
int getPortNumber ()
 Returns the port number for the connexion to create.
Connection createConnection ()
 Returns a connection with the set parameters.

Static Public Member Functions

static Connection createConnection (String hostName, int portNumber)
 Returns a connection with the specified parameters.

Private Attributes

String hostName = "localhost"
 The host name for the connection to create.
int portNumber = 6666
 The port number for the connection to create.

Detailed Description

A connection factory.

Definition at line 13 of file ConnectionFactory.java.


Member Function Documentation

Returns a connection with the set parameters.

Definition at line 59 of file ConnectionFactory.java.

                                         {
        return new Connection(hostName, portNumber);
    }
static Connection fr.ove.utils.ConnectionFactory.createConnection ( String  hostName,
int  portNumber 
) [inline, static]

Returns a connection with the specified parameters.

Parameters:
hostNamethe host name.
portNumberthe port number.

Definition at line 68 of file ConnectionFactory.java.

                                                                               {
        return new Connection(hostName, portNumber);
    }

Returns the host name for the connection to create.

Implements fr.ove.utils.ConnectionConfigurable.

Definition at line 37 of file ConnectionFactory.java.

                                {
        return hostName;
    }

Returns the port number for the connexion to create.

Implements fr.ove.utils.ConnectionConfigurable.

Definition at line 52 of file ConnectionFactory.java.

                               {
        return portNumber;
    }
void fr.ove.utils.ConnectionFactory.setHostName ( String  name) [inline]

Sets the host name for the connection to create.

Parameters:
namethe host name.

Implements fr.ove.utils.ConnectionConfigurable.

Definition at line 30 of file ConnectionFactory.java.

                                         {
        hostName = name;
    }
void fr.ove.utils.ConnectionFactory.setPortNumber ( int  number) [inline]

Sets the port number for the connexion to create.

Parameters:
numberthe port number.

Implements fr.ove.utils.ConnectionConfigurable.

Definition at line 45 of file ConnectionFactory.java.

                                          {
        portNumber = number;
    }

Member Data Documentation

String fr.ove.utils.ConnectionFactory.hostName = "localhost" [private]

The host name for the connection to create.

The default host is localhost.

Definition at line 18 of file ConnectionFactory.java.

The port number for the connection to create.

The default port number is 6666;

Definition at line 24 of file ConnectionFactory.java.


The documentation for this class was generated from the following file: