Top Description Fields Constructors Methods
com.sun.star.lib.connections.pipe

public final Class pipeConnector

extends Object
implements com.sun.star.connection.XConnector
Class Inheritance
Imports
com.sun.star.comp.loader.FactoryHelper, com.sun.star.connection.ConnectionSetupException, com.sun.star.connection.NoConnectException, com.sun.star.connection.XConnection, com.sun.star.connection.XConnector, com.sun.star.lang.XMultiServiceFactory, com.sun.star.lang.XSingleServiceFactory, com.sun.star.registry.XRegistryKey

A component that implements the XConnector interface.

The pipeConnector is a specialized component that uses TCP pipes for communication. The pipeConnector is generally used by the com.sun.star.connection.Connector service.

Since
UDK 1.0
See Also
com.sun.star.connection.XAcceptor, com.sun.star.connection.XConnection, com.sun.star.connection.XConnector, com.sun.star.comp.loader.JavaLoader

Field Summary

Modifier and TypeField and Description
public static final String
__serviceName

The name of the service.

private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static com.sun.star.lang.XSingleServiceFactory

Returns:

an XSingleServiceFactory for creating the component.
__getServiceFactory
(String
the name of the implementation for which a service is requested.
implName
,
com.sun.star.lang.XMultiServiceFactory
the service manager to be used (if needed).
multiFactory
,
com.sun.star.registry.XRegistryKey
the registry key.
regKey
)

Returns a factory for creating the service.

public synchronized com.sun.star.connection.XConnection

Returns:

an XConnection to the server.
connect
(String
the description of the connection.
connectionDescription
)

Connects via the described pipe to a waiting server.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

__serviceNameback to summary
public static final String __serviceName

The name of the service.

The JavaLoader accesses this through reflection.

See Also
com.sun.star.comp.loader.JavaLoader
bConnectedback to summary
private boolean bConnected

Constructor Detail

pipeConnectorback to summary
public pipeConnector()

Method Detail

__getServiceFactoryback to summary
public static com.sun.star.lang.XSingleServiceFactory __getServiceFactory(String implName, com.sun.star.lang.XMultiServiceFactory multiFactory, com.sun.star.registry.XRegistryKey regKey)

Returns a factory for creating the service.

This method is called by the JavaLoader.

Parameters
implName:String

the name of the implementation for which a service is requested.

multiFactory:com.sun.star.lang.XMultiServiceFactory

the service manager to be used (if needed).

regKey:com.sun.star.registry.XRegistryKey

the registry key.

Returns:com.sun.star.lang.XSingleServiceFactory

an XSingleServiceFactory for creating the component.

See Also
com.sun.star.comp.loader.JavaLoader
connectback to summary
public synchronized com.sun.star.connection.XConnection connect(String connectionDescription) throws com.sun.star.connection.NoConnectException, com.sun.star.connection.ConnectionSetupException

Connects via the described pipe to a waiting server.

The connection description has the following format: type*(key=value), where type should be pipe (ignoring case). Supported keys (ignoring case) currently are

host
The name or address of the server. Must be present.
port
The TCP port number of the server (defaults to 6001).
tcpnodelay
A flag (0/1) enabling or disabling Nagle's algorithm on the resulting connection.
Parameters
connectionDescription:String

the description of the connection.

Returns:com.sun.star.connection.XConnection

an XConnection to the server.

See Also
com.sun.star.connection.XAcceptor, com.sun.star.connection.XConnection