org.apache.tomcat.util.net
Class TcpConnection

java.lang.Object
  extended by org.apache.tomcat.util.net.TcpConnection

public class TcpConnection
extends Object


Constructor Summary
TcpConnection()
           
 
Method Summary
 PoolTcpEndpoint getEndpoint()
           
 Socket getSocket()
           
static int readLine(InputStream in, byte[] b, int off, int len)
           
 void recycle()
           
 void setEndpoint(PoolTcpEndpoint endpoint)
           
static void setMaxShutdownTries(int mst)
           
 void setSocket(Socket socket)
           
static void shutdownInput(Socket socket)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpConnection

public TcpConnection()
Method Detail

setMaxShutdownTries

public static void setMaxShutdownTries(int mst)

setEndpoint

public void setEndpoint(PoolTcpEndpoint endpoint)

getEndpoint

public PoolTcpEndpoint getEndpoint()

setSocket

public void setSocket(Socket socket)

getSocket

public Socket getSocket()

recycle

public void recycle()

readLine

public static int readLine(InputStream in,
                           byte[] b,
                           int off,
                           int len)
                    throws IOException
Throws:
IOException

shutdownInput

public static void shutdownInput(Socket socket)
                          throws IOException
Throws:
IOException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.