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 TypeMethodDescriptionboolean
org.newsclub.net.unix.AFSocketAddress
int
hashCode()
toString()
static AFSocketTransport
withDatagramChannel
(org.newsclub.net.unix.AFSocketAddress addr) Constructs anAFSocketTransport
that establishes aDatagramChannel
to the given address.static AFSocketTransport
withSocketChannel
(org.newsclub.net.unix.AFSocketAddress addr) Constructs anAFSocketTransport
that establishes aSocketChannel
to the given address.Methods inherited from class org.eclipse.jetty.io.Transport.Socket
connect
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.io.Transport
isIntrinsicallySecure, newConnection, newEndPoint, newSelectableChannel, requiresDomainNameResolution
-
Method Details
-
withSocketChannel
Constructs anAFSocketTransport
that establishes aSocketChannel
to the given address.- Parameters:
addr
- The target address.- Returns:
- The
Transport
instance.
-
withDatagramChannel
Constructs anAFSocketTransport
that establishes aDatagramChannel
to the given address.- Parameters:
addr
- The target address.- Returns:
- The
Transport
instance.
-
getSocketAddress
public org.newsclub.net.unix.AFSocketAddress getSocketAddress() -
hashCode
-
equals
-
toString
- Overrides:
toString
in classorg.eclipse.jetty.io.Transport.Socket
-