org.eclipse.jetty.server.bio
protected class SocketConnector.ConnectorEndPoint extends SocketEndPoint implements java.lang.Runnable, ConnectedEndPoint
Modifier and Type | Field and Description |
---|---|
protected java.net.Socket |
_socket |
Constructor and Description |
---|
SocketConnector.ConnectorEndPoint(java.net.Socket socket) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close any backing stream associated with the endpoint
|
void |
dispatch() |
int |
fill(Buffer buffer)
Fill the buffer from the current putIndex to it's capacity from whatever
byte source is backing the buffer.
|
Connection |
getConnection() |
void |
run() |
void |
setConnection(Connection connection) |
getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, idleExpired, isInputShutdown, isOpen, isOutputShutdown, setMaxIdleTime, shutdownInput, shutdownOutput, shutdownSocketInput, shutdownSocketOutput, toString
blockReadable, blockWritable, flush, flush, flush, getInputStream, getMaxIdleTime, getOutputStream, isBlocking, isClosed, setInputStream, setOutputStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
blockReadable, blockWritable, flush, flush, flush, getLocalAddr, getLocalHost, getLocalPort, getMaxIdleTime, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isInputShutdown, isOpen, isOutputShutdown, setMaxIdleTime, shutdownInput, shutdownOutput
public SocketConnector.ConnectorEndPoint(java.net.Socket socket) throws java.io.IOException
java.io.IOException
public Connection getConnection()
getConnection
in interface ConnectedEndPoint
public void setConnection(Connection connection)
setConnection
in interface ConnectedEndPoint
public void dispatch() throws java.io.IOException
java.io.IOException
public int fill(Buffer buffer) throws java.io.IOException
EndPoint
fill
in interface EndPoint
fill
in class StreamEndPoint
int
value indicating the number of bytes
filled or -1 if EOF is reached.EofException
- If input is shutdown or the endpoint is closed.java.io.IOException
public void close() throws java.io.IOException
EndPoint
close
in interface EndPoint
close
in class SocketEndPoint
java.io.IOException
public void run()
run
in interface java.lang.Runnable
Copyright © 2017. All Rights Reserved.