Known Direct Subclasses
|
Class Overview
Implementation of a client-side HTTP connection that can be bound to a
network Socket in order to receive and transmit data.
Summary
|
[Expand]
Inherited Methods |
From class org.apache.http.impl.AbstractHttpClientConnection
|
From class java.lang.Object
|
Object
|
clone()
Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver.
|
|
boolean
|
equals(Object o)
Compares the argument to the receiver, and returns true if they represent
the same object using a class specific comparison.
|
|
void
|
finalize()
Called by the virtual machine when there are no longer any (non-weak)
references to the receiver.
|
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of java.lang.Class which represents the class
of the receiver.
|
|
int
|
hashCode()
Returns an integer hash code for the receiver.
|
|
final
void
|
notify()
Causes one thread which is wait ing on the receiver to be
made ready to run.
|
|
final
void
|
notifyAll()
Causes all threads which are wait ing on the receiver to
be made ready to run.
|
|
String
|
toString()
Returns a string containing a concise, human-readable description of the
receiver.
|
|
final
void
|
wait(long time, int frac)
Causes the thread which sent this message to be made not ready to run
either pending some change in the receiver (as indicated by
notify or notifyAll) or the expiration of
the timeout.
|
|
final
void
|
wait(long time)
Causes the thread which sent this message to be made not ready to run
either pending some change in the receiver (as indicated by
notify or notifyAll) or the expiration of
the timeout.
|
|
final
void
|
wait()
Causes the thread which sent this message to be made not ready to run
pending some change in the receiver (as indicated by notify
or notifyAll).
|
|
From interface org.apache.http.HttpClientConnection
|
From interface org.apache.http.HttpConnection
|
abstract
void
|
close()
Closes this connection gracefully.
|
|
abstract
HttpConnectionMetrics
|
getMetrics()
Returns a collection of connection metrcis
|
|
abstract
int
|
getSocketTimeout()
Returns the socket timeout value.
|
|
abstract
boolean
|
isOpen()
Checks if this connection is open.
|
|
abstract
boolean
|
isStale()
Checks whether this connection has gone down.
|
|
abstract
void
|
setSocketTimeout(int timeout)
Sets the socket timeout value.
|
|
abstract
void
|
shutdown()
Force-closes this connection.
|
|
From interface org.apache.http.HttpInetConnection
|
Public Constructors
public
SocketHttpClientConnection
()
Public Methods
public
void
close
()
Closes this connection gracefully.
This method will attempt to flush the transmitter's
internal buffer prior to closing the underlying socket.
This method MUST NOT be called from a different thread to force
shutdown of the connection. Use shutdown instead.
public
int
getLocalPort
()
public
int
getRemotePort
()
public
int
getSocketTimeout
()
Returns the socket timeout value.
Returns
- positive value in milliseconds if a timeout is set,
0 if timeout is disabled or -1 if
timeout is undefined.
public
boolean
isOpen
()
Checks if this connection is open.
Returns
- true if it is open, false if it is closed.
public
void
setSocketTimeout
(int timeout)
Sets the socket timeout value.
Parameters
| timeout
| timeout value in milliseconds
|
public
void
shutdown
()
Force-closes this connection.
This is the only method of a connection which may be called
from a different thread to terminate the connection.
This method will not attempt to flush the transmitter's
internal buffer prior to closing the underlying socket.
Protected Methods
protected
void
assertNotOpen
()
protected
void
assertOpen
()