org.mortbay.jetty.bio
Class SocketConnector.Connection

java.lang.Object
  extended byorg.mortbay.io.bio.StreamEndPoint
      extended byorg.mortbay.io.bio.SocketEndPoint
          extended byorg.mortbay.jetty.bio.SocketConnector.Connection
All Implemented Interfaces:
EndPoint, Runnable
Enclosing class:
SocketConnector

protected class SocketConnector.Connection
extends SocketEndPoint
implements Runnable


Constructor Summary
SocketConnector.Connection(Socket socket)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.mortbay.io.bio.SocketEndPoint
close, getConnection, getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, isClosed
 
Methods inherited from class org.mortbay.io.bio.StreamEndPoint
blockReadable, blockWritable, flush, flush, getInputStream, getOutputStream, isBlocking, isOpen, setInputStream, setOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketConnector.Connection

public SocketConnector.Connection(Socket socket)
                           throws IOException
Method Detail

dispatch

public void dispatch()
              throws InterruptedException,
                     IOException
Throws:
InterruptedException
IOException

fill

public int fill(Buffer buffer)
         throws IOException
Description copied from interface: EndPoint
Fill the buffer from the current putIndex to it's capacity from whatever byte source is backing the buffer. The putIndex is increased if bytes filled. The buffer may chose to do a compact before filling.

Specified by:
fill in interface EndPoint
Overrides:
fill in class StreamEndPoint
Throws:
IOException

run

public void run()
Specified by:
run in interface Runnable