Known Direct Subclasses
|
Class Overview
Implementation of a server-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.AbstractHttpServerConnection
|
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Called before the object's memory is reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
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
|
From interface org.apache.http.HttpServerConnection
|
Public Constructors
public
SocketHttpServerConnection
()
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
()