org.mortbay.jetty.bio
protected class SocketConnector.Connection extends SocketEndPoint implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected java.net.Socket |
_socket |
| Constructor and Description |
|---|
SocketConnector.Connection(java.net.Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
run() |
close, getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isOpen, shutdownOutputblockReadable, blockWritable, flush, flush, flush, getInputStream, getOutputStream, isBlocking, isBufferingInput, isBufferingOutput, isBufferred, isClosed, setInputStream, setOutputStreampublic SocketConnector.Connection(java.net.Socket socket)
throws java.io.IOException
java.io.IOExceptionpublic void dispatch()
throws java.lang.InterruptedException,
java.io.IOException
java.lang.InterruptedExceptionjava.io.IOExceptionpublic int fill(Buffer buffer) throws java.io.IOException
EndPointfill in interface EndPointfill in class StreamEndPointint value indicating the number of bytes
filled or -1 if EOF is reached.java.io.IOExceptionpublic void run()
run in interface java.lang.RunnableCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.