public final class pipeAcceptor
extends java.lang.Object
XAcceptor interface.
The pipeAcceptor is a specialized component that uses TCP
pipes for communication. The pipeAcceptor is generally used
by the com.sun.star.connection.Acceptor service.
com.sun.star.connections.XAcceptor,
com.sun.star.connections.XConnection,
com.sun.star.connections.XConnector,
com.sun.star.loader.JavaLoader| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
__serviceName
The name of the service.
|
| Constructor and Description |
|---|
pipeAcceptor() |
| Modifier and Type | Method and Description |
|---|---|
static XSingleServiceFactory |
__getServiceFactory(java.lang.String implName,
XMultiServiceFactory multiFactory,
XRegistryKey regKey)
Returns a factory for creating the service.
|
XConnection |
accept(java.lang.String connectionDescription)
Accepts a connection request via the described pipe.
|
void |
stopAccepting() |
public static final java.lang.String __serviceName
The JavaLoader acceses this through reflection.
JavaLoader,
Constant Field Valuespublic static XSingleServiceFactory __getServiceFactory(java.lang.String implName,
XMultiServiceFactory multiFactory,
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 XConnection accept(java.lang.String connectionDescription)
throws AlreadyAcceptingException,
ConnectionSetupException,
com.sun.star.lang.IllegalArgumentException
This call blocks until a connection has been established.
The connection description has the following format:
type*(key=value),
where type should be pipe
(ignoring case). Supported keys (ignoring case) currently are
host
0, meaning any interface).
port
6001).
backlog
50).
tcpnodelay
0/1) enabling or disabling Nagle's
algorithm on the resulting connection.
connectionDescription - the description of the connection.XConnection to the client.AlreadyAcceptingExceptionConnectionSetupExceptioncom.sun.star.lang.IllegalArgumentExceptioncom.sun.star.connections.XConnection,
com.sun.star.connections.XConnectorpublic void stopAccepting()