Class Acceptor

java.lang.Object
com.sun.star.comp.connections.Acceptor
All Implemented Interfaces:
com.sun.star.connection.XAcceptor, com.sun.star.uno.XInterface

public final class Acceptor extends Object implements com.sun.star.connection.XAcceptor
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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the service.

    Fields inherited from interface com.sun.star.connection.XAcceptor

    UNOTYPEINFO
  • Constructor Summary

    Constructors
    Constructor
    Description
    Acceptor(com.sun.star.lang.XMultiServiceFactory serviceFactory)
    Constructs a new Acceptor that uses the given service factory to create a specific XAcceptor.
  • Method Summary

    Modifier and Type
    Method
    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
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Acceptor

      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 - the service factory to use.
  • Method Details

    • __getServiceFactory

      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 - the name of the implementation for which a service is requested.
      multiFactory - the service manager to be used (if needed).
      regKey - the registry key.
      Returns:
      an XSingleServiceFactory for creating the component.
      See Also:
    • accept

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

      Specified by:
      accept in interface com.sun.star.connection.XAcceptor
      Parameters:
      connectionDescription - the description of the connection.
      Returns:
      an XConnection to the client.
      Throws:
      com.sun.star.connection.AlreadyAcceptingException
      com.sun.star.connection.ConnectionSetupException
      com.sun.star.lang.IllegalArgumentException
      See Also:
      • XConnection
      • XConnector
    • stopAccepting

      public void stopAccepting()
      Specified by:
      stopAccepting in interface com.sun.star.connection.XAcceptor
      See Also:
      • XAcceptor.stopAccepting()