Class AFSocketTransport

java.lang.Object
org.eclipse.jetty.io.Transport.Socket
org.newsclub.net.unix.jetty.AFSocketTransport
All Implemented Interfaces:
org.eclipse.jetty.io.Transport

public class AFSocketTransport extends org.eclipse.jetty.io.Transport.Socket
A Transport implementation for junixsocket socket and datagram channels (Unix domains etc.)

This implementation should work with jetty version 12.0.7 or newer.

Author:
Christian Kohlschütter
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Transport

    org.eclipse.jetty.io.Transport.IP, org.eclipse.jetty.io.Transport.Socket, org.eclipse.jetty.io.Transport.TCPIP, org.eclipse.jetty.io.Transport.TCPUnix, org.eclipse.jetty.io.Transport.UDPIP, org.eclipse.jetty.io.Transport.UDPUnix, org.eclipse.jetty.io.Transport.Unix, org.eclipse.jetty.io.Transport.Wrapper
  • Field Summary

    Fields inherited from interface org.eclipse.jetty.io.Transport

    CONTEXT_KEY, TCP_IP, UDP_IP
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.newsclub.net.unix.AFSocketAddress
     
    int
     
     
    withDatagramChannel(org.newsclub.net.unix.AFSocketAddress addr)
    Constructs an AFSocketTransport that establishes a DatagramChannel to the given address.
    withSocketChannel(org.newsclub.net.unix.AFSocketAddress addr)
    Constructs an AFSocketTransport that establishes a SocketChannel to the given address.

    Methods inherited from class org.eclipse.jetty.io.Transport.Socket

    connect

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.io.Transport

    isIntrinsicallySecure, newClientConnectionFactory, newConnection, newEndPoint, newSelectableChannel, requiresDomainNameResolution
  • Method Details

    • withSocketChannel

      public static AFSocketTransport withSocketChannel(org.newsclub.net.unix.AFSocketAddress addr)
      Constructs an AFSocketTransport that establishes a SocketChannel to the given address.
      Parameters:
      addr - The target address.
      Returns:
      The Transport instance.
    • withDatagramChannel

      public static AFSocketTransport withDatagramChannel(org.newsclub.net.unix.AFSocketAddress addr)
      Constructs an AFSocketTransport that establishes a DatagramChannel to the given address.
      Parameters:
      addr - The target address.
      Returns:
      The Transport instance.
    • getSocketAddress

      public org.newsclub.net.unix.AFSocketAddress getSocketAddress()
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface org.eclipse.jetty.io.Transport
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface org.eclipse.jetty.io.Transport
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class org.eclipse.jetty.io.Transport.Socket