Class socketConnector

java.lang.Object
com.sun.star.lib.connections.socket.socketConnector
All Implemented Interfaces:
com.sun.star.connection.XConnector, com.sun.star.uno.XInterface

public final class socketConnector extends Object implements com.sun.star.connection.XConnector
A component that implements the XConnector interface.

The socketConnector is a specialized component that uses TCP sockets for communication. The socketConnector is generally used by the com.sun.star.connection.Connector service.

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

    UNOTYPEINFO
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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
    connect(String connectionDescription)
    Connects via the described socket to a waiting server.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • socketConnector

      public socketConnector()
  • 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:
    • connect

      public com.sun.star.connection.XConnection connect(String connectionDescription) throws com.sun.star.connection.NoConnectException, com.sun.star.connection.ConnectionSetupException
      Connects via the described socket to a waiting server.

      The connection description has the following format: type*(key=value), where type should be socket (ignoring case). Supported keys (ignoring case) currently are

      host
      The name or address of the server. Must be present.
      port
      The TCP port number of the server (defaults to 6001).
      tcpnodelay
      A flag (0/1) enabling or disabling Nagle's algorithm on the resulting connection.
      Specified by:
      connect in interface com.sun.star.connection.XConnector
      Parameters:
      connectionDescription - the description of the connection.
      Returns:
      an XConnection to the server.
      Throws:
      com.sun.star.connection.NoConnectException
      com.sun.star.connection.ConnectionSetupException
      See Also:
      • XAcceptor
      • XConnection