Class Transport.Socket

java.lang.Object
org.eclipse.jetty.io.Transport.Socket
All Implemented Interfaces:
Transport
Direct Known Subclasses:
Transport.IP, Transport.Unix
Enclosing interface:
Transport

public abstract static class Transport.Socket extends Object implements Transport

Abstract implementation of Transport based on sockets.

  • Constructor Details

    • Socket

      public Socket()
  • Method Details

    • connect

      public void connect(SocketAddress socketAddress, Map<String,Object> context)
      Description copied from interface: Transport

      Establishes a connection to the given socket address.

      For Transports that require domain name resolution, this is the IP address resolved from the domain name. For Transports that do not require domain name resolution (for example Unix-Domain sockets, or memory) this is the socket address to connect to.

      Specified by:
      connect in interface Transport
      Parameters:
      socketAddress - the socket address to connect to
      context - the context information to establish the connection
    • toString

      public String toString()
      Overrides:
      toString in class Object