Package org.eclipse.jetty.io
Class Transport.TCPIP
java.lang.Object
org.eclipse.jetty.io.Transport.Socket
org.eclipse.jetty.io.Transport.IP
org.eclipse.jetty.io.Transport.TCPIP
- All Implemented Interfaces:
Transport
- Enclosing interface:
- Transport
The TCP/IP Transport
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Transport
Transport.IP, Transport.Socket, Transport.TCPIP, Transport.TCPUnix, Transport.UDPIP, Transport.UDPUnix, Transport.Unix, Transport.Wrapper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnewEndPoint
(Scheduler scheduler, ManagedSelector selector, SelectableChannel selectable, SelectionKey selectionKey) ForTransport
s that are based on sockets, or forTransport
s that are layered on top of anotherTransport
that is based on sockets, this method is invoked to create a newEndPoint
that wraps theSelectableChannel
created byTransport.newSelectableChannel()
.ForTransport
s that are based on sockets, or forTransport
s that are layered on top of anotherTransport
that is based on sockets, this method is invoked to create a newSelectableChannel
used for the socket communication.Methods inherited from class org.eclipse.jetty.io.Transport.IP
requiresDomainNameResolution
Methods inherited from class org.eclipse.jetty.io.Transport.Socket
connect, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.io.Transport
equals, getSocketAddress, hashCode, isIntrinsicallySecure, newConnection
-
Constructor Details
-
TCPIP
protected TCPIP()
-
-
Method Details
-
newSelectableChannel
Description copied from interface:Transport
For
Transport
s that are based on sockets, or forTransport
s that are layered on top of anotherTransport
that is based on sockets, this method is invoked to create a newSelectableChannel
used for the socket communication.- Returns:
- a new
SelectableChannel
used for the socket communication, ornull
if the communication does not use sockets. - Throws:
IOException
- if theSelectableChannel
cannot be created
-
newEndPoint
public EndPoint newEndPoint(Scheduler scheduler, ManagedSelector selector, SelectableChannel selectable, SelectionKey selectionKey) Description copied from interface:Transport
For
Transport
s that are based on sockets, or forTransport
s that are layered on top of anotherTransport
that is based on sockets, this method is invoked to create a newEndPoint
that wraps theSelectableChannel
created byTransport.newSelectableChannel()
.- Parameters:
scheduler
- theScheduler
selector
- theManagedSelector
selectable
- theSelectableChannel
selectionKey
- theSelectionKey
- Returns:
- a new
EndPoint
-