public final class pipeConnector extends Object implements com.sun.star.connection.XConnector
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.
XAcceptor,
XConnection,
XConnector,
JavaLoader| Modifier and Type | Field and Description |
|---|---|
static String |
__serviceName
The name of the service.
|
| Constructor and Description |
|---|
pipeConnector() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
com.sun.star.connection.XConnection |
connect(String connectionDescription)
Connects via the described pipe to a waiting server.
|
public static final String __serviceName
The JavaLoader accesses this through reflection.
JavaLoader,
Constant Field Valuespublic static com.sun.star.lang.XSingleServiceFactory __getServiceFactory(String implName, com.sun.star.lang.XMultiServiceFactory multiFactory, com.sun.star.registry.XRegistryKey regKey)
This method is called by the JavaLoader.
implName - the name of the implementation for which a service is
requested.multiFactory - the service manager to be used (if needed).regKey - the registry key.XSingleServiceFactory for creating the component.JavaLoaderpublic com.sun.star.connection.XConnection connect(String connectionDescription) throws com.sun.star.connection.NoConnectException, com.sun.star.connection.ConnectionSetupException
The connection description has the following format:
type*(key=value),
where type should be pipe
(ignoring case). Supported keys (ignoring case) currently are
host
port
6001).
tcpnodelay
0/1) enabling or disabling Nagle's
algorithm on the resulting connection.
connect in interface com.sun.star.connection.XConnectorconnectionDescription - the description of the connection.XConnection to the server.com.sun.star.connection.NoConnectExceptioncom.sun.star.connection.ConnectionSetupExceptionXAcceptor,
XConnection