sunlabs.brazil.util.http

Class HttpSocket

public class HttpSocket extends Object

This class is used as the bag of information kept about a open, idle socket. It is not meant to be used externally by anyone except someone writing a new implementation of an HttpSocketPool for the HttpRequest object.

This class should not be visible at this scope. It is only here until a better place for it is found.

Field Summary
booleanfirstTime
Stringhost
InputStreamin
longlastUsed
OutputStreamout
intport
Socketsock
inttimesUsed
Constructor Summary
HttpSocket(String host, int port)
Method Summary
StringtoString()

Field Detail

firstTime

public boolean firstTime

host

public String host

in

public InputStream in

lastUsed

public long lastUsed

out

public OutputStream out

port

public int port

sock

public Socket sock

timesUsed

public int timesUsed

Constructor Detail

HttpSocket

public HttpSocket(String host, int port)

Method Detail

toString

public String toString()