Top Description Fields Constructors Methods
com.sun.star.comp.connections

public final Class Acceptor

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

A component that implements the XAcceptor interface.

The Acceptor is a general component, that uses less general components (like com.sun.star.connection.socketAcceptor) to implement its functionality.

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 String
private com.sun.star.connection.XAcceptor
private static final boolean
private final com.sun.star.lang.XMultiServiceFactory

Constructor Summary

AccessConstructor and Description
public
Acceptor(com.sun.star.lang.XMultiServiceFactory
the service factory to use.
serviceFactory
)

Constructs a new Acceptor that uses the given service factory to create a specific XAcceptor.

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 com.sun.star.connection.XConnection

Returns:

an XConnection to the client.
accept
(String
the description of the connection.
connectionDescription
)

Accepts a connection request via the given connection type.

public void
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
acceptingDescriptionback to summary
private String acceptingDescription
acceptorback to summary
private com.sun.star.connection.XAcceptor acceptor
DEBUGback to summary
private static final boolean DEBUG
serviceFactoryback to summary
private final com.sun.star.lang.XMultiServiceFactory serviceFactory

Constructor Detail

Acceptorback to summary
public Acceptor(com.sun.star.lang.XMultiServiceFactory serviceFactory)

Constructs a new Acceptor that uses the given service factory to create a specific XAcceptor.

Parameters
serviceFactory:com.sun.star.lang.XMultiServiceFactory

the service factory to use.

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
acceptback to summary
public com.sun.star.connection.XConnection accept(String connectionDescription) throws com.sun.star.connection.AlreadyAcceptingException, com.sun.star.connection.ConnectionSetupException, com.sun.star.lang.IllegalArgumentException

Accepts a connection request via the given connection type.

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).

Parameters
connectionDescription:String

the description of the connection.

Returns:com.sun.star.connection.XConnection

an XConnection to the client.

See Also
com.sun.star.connection.XConnection, com.sun.star.connection.XConnector
stopAcceptingback to summary
public void stopAccepting()
See Also
com.sun.star.connection.XAcceptor#stopAccepting