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

java.lang.Object
  继承者 org.eclipse.jetty.io.bio.StreamEndPoint
      继承者 org.eclipse.jetty.io.bio.SocketEndPoint
          继承者 org.eclipse.jetty.server.bio.SocketConnector.ConnectorEndPoint
所有已实现的接口:
Runnable, ConnectedEndPoint, EndPoint
直接已知子类:
SslSocketConnector.SslConnectorEndPoint
包容类:
SocketConnector

protected class SocketConnector.ConnectorEndPoint
extends SocketEndPoint
implements Runnable, ConnectedEndPoint


字段摘要
protected  Socket _socket
           
 
构造方法摘要
SocketConnector.ConnectorEndPoint(Socket socket)
           
 
方法摘要
 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)
           
 
从类 org.eclipse.jetty.io.bio.SocketEndPoint 继承的方法
getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, idleExpired, isInputShutdown, isOpen, isOutputShutdown, setMaxIdleTime, shutdownInput, shutdownOutput, shutdownSocketInput, shutdownSocketOutput, toString
 
从类 org.eclipse.jetty.io.bio.StreamEndPoint 继承的方法
blockReadable, blockWritable, flush, flush, flush, getInputStream, getMaxIdleTime, getOutputStream, isBlocking, isClosed, setInputStream, setOutputStream
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 org.eclipse.jetty.io.EndPoint 继承的方法
blockReadable, blockWritable, flush, flush, flush, getLocalAddr, getLocalHost, getLocalPort, getMaxIdleTime, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isInputShutdown, isOpen, isOutputShutdown, setMaxIdleTime, shutdownInput, shutdownOutput
 

字段详细信息

_socket

protected final Socket _socket
构造方法详细信息

SocketConnector.ConnectorEndPoint

public SocketConnector.ConnectorEndPoint(Socket socket)
                                  throws IOException
抛出:
IOException
方法详细信息

getConnection

public Connection getConnection()
指定者:
接口 ConnectedEndPoint 中的 getConnection

setConnection

public void setConnection(Connection connection)
指定者:
接口 ConnectedEndPoint 中的 setConnection

dispatch

public void dispatch()
              throws IOException
抛出:
IOException

fill

public int fill(Buffer buffer)
         throws IOException
从接口 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.

指定者:
接口 EndPoint 中的 fill
覆盖:
StreamEndPoint 中的 fill
返回:
an int value indicating the number of bytes filled or -1 if EOF is reached.
抛出:
EofException - If input is shutdown or the endpoint is closed.
IOException

close

public void close()
           throws IOException
从接口 EndPoint 复制的描述
Close any backing stream associated with the endpoint

指定者:
接口 EndPoint 中的 close
覆盖:
SocketEndPoint 中的 close
抛出:
IOException

run

public void run()
指定者:
接口 Runnable 中的 run


Copyright © 2013. All Rights Reserved.