Class MemoryTransport

java.lang.Object
org.eclipse.jetty.server.MemoryTransport
All Implemented Interfaces:
Transport

public class MemoryTransport extends Object implements Transport

A Transport suitable to be used when using a MemoryConnector.

  • Constructor Details

  • 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
    • getSocketAddress

      public SocketAddress getSocketAddress()
      Specified by:
      getSocketAddress in interface Transport
      Returns:
      the socket address to connect to in case domain name resolution is not required
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Transport
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface Transport
      Overrides:
      equals in class Object