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, shutdownOutput
blockReadable, blockWritable, flush, flush, flush, getInputStream, getOutputStream, isBlocking, isBufferingInput, isBufferingOutput, isBufferred, isClosed, setInputStream, setOutputStream
public SocketConnector.Connection(java.net.Socket socket) throws java.io.IOException
java.io.IOException
public void dispatch() throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedException
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.java.io.IOException
public void run()
run
in interface java.lang.Runnable
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.