public final class Acceptor extends Object implements com.sun.star.connection.XAcceptor
XAcceptor interface.
The Acceptor is a general component, that uses less general
components (like com.sun.star.connection.socketAcceptor) to
implement its functionality.
XAcceptor,
XConnection,
XConnector,
JavaLoader| Modifier and Type | Field and Description |
|---|---|
static String |
__serviceName
The name of the service.
|
| Constructor and Description |
|---|
Acceptor(com.sun.star.lang.XMultiServiceFactory serviceFactory)
Constructs a new
Acceptor that uses the given service
factory to create a specific XAcceptor. |
| 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 |
accept(String connectionDescription)
Accepts a connection request via the given connection type.
|
void |
stopAccepting() |
public static final String __serviceName
The JavaLoader accesses this through reflection.
JavaLoader,
Constant Field Valuespublic Acceptor(com.sun.star.lang.XMultiServiceFactory serviceFactory)
Acceptor that uses the given service
factory to create a specific XAcceptor.serviceFactory - the service factory to use.public 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 accept(String connectionDescription) throws com.sun.star.connection.AlreadyAcceptingException, com.sun.star.connection.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).
accept in interface com.sun.star.connection.XAcceptorconnectionDescription - the description of the connection.XConnection to the client.com.sun.star.connection.AlreadyAcceptingExceptioncom.sun.star.connection.ConnectionSetupExceptioncom.sun.star.lang.IllegalArgumentExceptionXConnection,
XConnectorpublic void stopAccepting()
stopAccepting in interface com.sun.star.connection.XAcceptorXAcceptor.stopAccepting()