public final class Acceptor
extends java.lang.Object
XAcceptor interface.
The Acceptor is a general component, that uses less general
components (like com.sun.star.connection.socketAcceptor) to
implement its functionality.
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 |
|---|
Acceptor(XMultiServiceFactory serviceFactory)
Constructs a new
Acceptor that uses the given service
factory to create a specific XAcceptor. |
| 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 given connection type.
|
void |
stopAccepting() |
public static final java.lang.String __serviceName
The JavaLoader acceses this through reflection.
JavaLoader,
Constant Field Valuespublic Acceptor(XMultiServiceFactory serviceFactory)
Acceptor that uses the given service
factory to create a specific XAcceptor.serviceFactory - the service factory to use.public 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).
The specific XAcceptor implementation is instantiated
through the service factory as
com.sun.star.connection.typeAcceptor (with
type in lower case).
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()