Package org.eclipse.jetty.io
Class SocketChannelEndPoint
- java.lang.Object
-
- org.eclipse.jetty.io.IdleTimeout
-
- org.eclipse.jetty.io.AbstractEndPoint
-
- org.eclipse.jetty.io.ChannelEndPoint
-
- org.eclipse.jetty.io.SocketChannelEndPoint
-
- All Implemented Interfaces:
Closeable,AutoCloseable,EndPoint,ManagedSelector.Selectable
- Direct Known Subclasses:
SelectChannelEndPoint
public class SocketChannelEndPoint extends ChannelEndPoint
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.io.ChannelEndPoint
_currentInterestOps, _desiredInterestOps, _key, _selector
-
-
Constructor Summary
Constructors Constructor Description SocketChannelEndPoint(SelectableChannel channel, ManagedSelector selector, SelectionKey key, org.eclipse.jetty.util.thread.Scheduler scheduler)SocketChannelEndPoint(SocketChannel channel, ManagedSelector selector, SelectionKey key, org.eclipse.jetty.util.thread.Scheduler scheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoShutdownOutput()InetSocketAddressgetLocalAddress()InetSocketAddressgetRemoteAddress()SocketgetSocket()-
Methods inherited from class org.eclipse.jetty.io.ChannelEndPoint
doClose, fill, flush, getChannel, getTransport, isOpen, isOptimizedForDirectBuffers, needsFillInterest, onClose, onIncompleteFlush, onSelected, toEndPointString, updateKey
-
Methods inherited from class org.eclipse.jetty.io.AbstractEndPoint
checkFill, checkFlush, close, close, doShutdownInput, fillInterested, getConnection, getCreatedTimeStamp, getFillInterest, getWriteFlusher, isFillInterested, isInputShutdown, isOutputShutdown, onClose, onIdleExpired, onOpen, reset, setConnection, shutdownInput, shutdownOutput, toConnectionString, toString, tryFillInterested, upgrade, write
-
Methods inherited from class org.eclipse.jetty.io.IdleTimeout
checkIdleTimeout, getIdleFor, getIdleTimeout, getIdleTimestamp, getScheduler, notIdle, setIdleTimeout
-
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.EndPoint
getIdleTimeout, setIdleTimeout
-
-
-
-
Constructor Detail
-
SocketChannelEndPoint
public SocketChannelEndPoint(SelectableChannel channel, ManagedSelector selector, SelectionKey key, org.eclipse.jetty.util.thread.Scheduler scheduler)
-
SocketChannelEndPoint
public SocketChannelEndPoint(SocketChannel channel, ManagedSelector selector, SelectionKey key, org.eclipse.jetty.util.thread.Scheduler scheduler)
-
-
Method Detail
-
getSocket
public Socket getSocket()
-
getLocalAddress
public InetSocketAddress getLocalAddress()
- Returns:
- The local Inet address to which this
EndPointis bound, ornullif thisEndPointdoes not represent a network connection.
-
getRemoteAddress
public InetSocketAddress getRemoteAddress()
- Returns:
- The remote Inet address to which this
EndPointis bound, ornullif thisEndPointdoes not represent a network connection.
-
doShutdownOutput
protected void doShutdownOutput()
- Overrides:
doShutdownOutputin classAbstractEndPoint
-
-