org.eclipse.jetty.io.bio
类 SocketEndPoint

java.lang.Object
  继承者 org.eclipse.jetty.io.bio.StreamEndPoint
      继承者 org.eclipse.jetty.io.bio.SocketEndPoint
所有已实现的接口:
EndPoint
直接已知子类:
SocketConnector.ConnectorEndPoint

public class SocketEndPoint
extends StreamEndPoint


构造方法摘要
  SocketEndPoint(Socket socket)
           
protected SocketEndPoint(Socket socket, int maxIdleTime)
           
 
方法摘要
 void close()
          Close any backing stream associated with the endpoint
 String getLocalAddr()
           
 String getLocalHost()
           
 int getLocalPort()
           
 String getRemoteAddr()
           
 String getRemoteHost()
           
 int getRemotePort()
           
 Object getTransport()
           
protected  void idleExpired()
           
 boolean isInputShutdown()
           
 boolean isOpen()
           
 boolean isOutputShutdown()
           
 void setMaxIdleTime(int timeMs)
          Set the max idle time.
 void shutdownInput()
          Shutdown any backing input stream associated with the endpoint
 void shutdownOutput()
          Shutdown any backing output stream associated with the endpoint
 void shutdownSocketInput()
           
protected  void shutdownSocketOutput()
           
 String toString()
           
 
从类 org.eclipse.jetty.io.bio.StreamEndPoint 继承的方法
blockReadable, blockWritable, fill, flush, flush, flush, getInputStream, getMaxIdleTime, getOutputStream, isBlocking, isClosed, setInputStream, setOutputStream
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

SocketEndPoint

public SocketEndPoint(Socket socket)
               throws IOException
抛出:
IOException

SocketEndPoint

protected SocketEndPoint(Socket socket,
                         int maxIdleTime)
                  throws IOException
抛出:
IOException
方法详细信息

isOpen

public boolean isOpen()
指定者:
接口 EndPoint 中的 isOpen
覆盖:
StreamEndPoint 中的 isOpen

isInputShutdown

public boolean isInputShutdown()
指定者:
接口 EndPoint 中的 isInputShutdown
覆盖:
StreamEndPoint 中的 isInputShutdown

isOutputShutdown

public boolean isOutputShutdown()
指定者:
接口 EndPoint 中的 isOutputShutdown
覆盖:
StreamEndPoint 中的 isOutputShutdown

shutdownSocketOutput

protected final void shutdownSocketOutput()
                                   throws IOException
抛出:
IOException

shutdownOutput

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

指定者:
接口 EndPoint 中的 shutdownOutput
覆盖:
StreamEndPoint 中的 shutdownOutput
抛出:
IOException

shutdownSocketInput

public void shutdownSocketInput()
                         throws IOException
抛出:
IOException

shutdownInput

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

指定者:
接口 EndPoint 中的 shutdownInput
覆盖:
StreamEndPoint 中的 shutdownInput
抛出:
IOException

close

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

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

getLocalAddr

public String getLocalAddr()
指定者:
接口 EndPoint 中的 getLocalAddr
覆盖:
StreamEndPoint 中的 getLocalAddr
返回:
The local IP address to which this EndPoint is bound, or null if this EndPoint does not represent a network connection.

getLocalHost

public String getLocalHost()
指定者:
接口 EndPoint 中的 getLocalHost
覆盖:
StreamEndPoint 中的 getLocalHost
返回:
The local host name to which this EndPoint is bound, or null if this EndPoint does not represent a network connection.

getLocalPort

public int getLocalPort()
指定者:
接口 EndPoint 中的 getLocalPort
覆盖:
StreamEndPoint 中的 getLocalPort
返回:
The local port number on which this EndPoint is listening, or 0 if this EndPoint does not represent a network connection.

getRemoteAddr

public String getRemoteAddr()
指定者:
接口 EndPoint 中的 getRemoteAddr
覆盖:
StreamEndPoint 中的 getRemoteAddr
返回:
The remote IP address to which this EndPoint is connected, or null if this EndPoint does not represent a network connection.

getRemoteHost

public String getRemoteHost()
指定者:
接口 EndPoint 中的 getRemoteHost
覆盖:
StreamEndPoint 中的 getRemoteHost
返回:
The host name of the remote machine to which this EndPoint is connected, or null if this EndPoint does not represent a network connection.

getRemotePort

public int getRemotePort()
指定者:
接口 EndPoint 中的 getRemotePort
覆盖:
StreamEndPoint 中的 getRemotePort
返回:
The remote port number to which this EndPoint is connected, or 0 if this EndPoint does not represent a network connection.

getTransport

public Object getTransport()
指定者:
接口 EndPoint 中的 getTransport
覆盖:
StreamEndPoint 中的 getTransport
返回:
The underlying transport object (socket, channel, etc.)

setMaxIdleTime

public void setMaxIdleTime(int timeMs)
                    throws IOException
从接口 EndPoint 复制的描述
Set the max idle time.

指定者:
接口 EndPoint 中的 setMaxIdleTime
覆盖:
StreamEndPoint 中的 setMaxIdleTime
参数:
timeMs - the max idle time in MS. Timeout <= 0 implies an infinite timeout
抛出:
IOException - if the timeout cannot be set.
另请参见:
StreamEndPoint.setMaxIdleTime(int)

idleExpired

protected void idleExpired()
                    throws IOException
覆盖:
StreamEndPoint 中的 idleExpired
抛出:
IOException

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2013. All Rights Reserved.