org.eclipse.jetty.server.bio
Class SocketConnector.ConnectorEndPoint

java.lang.Object
  extended by org.eclipse.jetty.io.bio.StreamEndPoint
      extended by org.eclipse.jetty.io.bio.SocketEndPoint
          extended by org.eclipse.jetty.server.bio.SocketConnector.ConnectorEndPoint
All Implemented Interfaces:
java.lang.Runnable, ConnectedEndPoint, EndPoint
Direct Known Subclasses:
SslSocketConnector.SslConnection
Enclosing class:
SocketConnector

protected class SocketConnector.ConnectorEndPoint
extends SocketEndPoint
implements java.lang.Runnable, ConnectedEndPoint


Field Summary
protected  java.net.Socket _socket
           
 
Constructor Summary
SocketConnector.ConnectorEndPoint(java.net.Socket socket)
           
 
Method Summary
 void close()
           
 void dispatch()
           
 int fill(Buffer buffer)
           
 Connection getConnection()
           
 void run()
           
 void setConnection(Connection connection)
           
 
Methods inherited from class org.eclipse.jetty.io.bio.SocketEndPoint
getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isOpen
 
Methods inherited from class org.eclipse.jetty.io.bio.StreamEndPoint
blockReadable, blockWritable, flush, flush, flush, getInputStream, getOutputStream, isBlocking, isBufferingInput, isBufferingOutput, isBufferred, isClosed, setInputStream, setOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jetty.io.EndPoint
blockReadable, blockWritable, flush, flush, flush, getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isBufferingInput, isBufferingOutput, isBufferred, isOpen
 

Field Detail

_socket

protected final java.net.Socket _socket
Constructor Detail

SocketConnector.ConnectorEndPoint

public SocketConnector.ConnectorEndPoint(java.net.Socket socket)
                                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getConnection

public Connection getConnection()
Specified by:
getConnection in interface ConnectedEndPoint

setConnection

public void setConnection(Connection connection)
Specified by:
setConnection in interface ConnectedEndPoint

dispatch

public void dispatch()
              throws java.io.IOException
Throws:
java.io.IOException

fill

public int fill(Buffer buffer)
         throws java.io.IOException
Specified by:
fill in interface EndPoint
Overrides:
fill in class StreamEndPoint
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface EndPoint
Overrides:
close in class SocketEndPoint
Throws:
java.io.IOException

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.