Package org.newsclub.net.unix.jetty
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
TCP_IP, UDP_IP -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.newsclub.net.unix.AFSocketAddressinthashCode()toString()static AFSocketTransportwithDatagramChannel(org.newsclub.net.unix.AFSocketAddress addr) Constructs anAFSocketTransportthat establishes aDatagramChannelto the given address.static AFSocketTransportwithSocketChannel(org.newsclub.net.unix.AFSocketAddress addr) Constructs anAFSocketTransportthat establishes aSocketChannelto the given address.Methods inherited from class org.eclipse.jetty.io.Transport.Socket
connectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.io.Transport
isIntrinsicallySecure, newConnection, newEndPoint, newSelectableChannel, requiresDomainNameResolution
-
Method Details
-
withSocketChannel
Constructs anAFSocketTransportthat establishes aSocketChannelto the given address.- Parameters:
addr- The target address.- Returns:
- The
Transportinstance.
-
withDatagramChannel
Constructs anAFSocketTransportthat establishes aDatagramChannelto the given address.- Parameters:
addr- The target address.- Returns:
- The
Transportinstance.
-
getSocketAddress
public org.newsclub.net.unix.AFSocketAddress getSocketAddress() -
hashCode
-
equals
-
toString
- Overrides:
toStringin classorg.eclipse.jetty.io.Transport.Socket
-