org.apache.http.params
Interface CoreConnectionPNames

All Known Implementing Classes:
HttpConnectionParams

public interface CoreConnectionPNames

Defines parameter names for connections in HttpCore.

Since:
4.0
Version:
$Revision: 688678 $

Field Summary
static java.lang.String CONNECTION_TIMEOUT
          Determines the timeout in milliseconds until a connection is established.
static java.lang.String MAX_HEADER_COUNT
          Determines the maximum HTTP header count allowed.
static java.lang.String MAX_LINE_LENGTH
          Determines the maximum line length limit.
static java.lang.String SO_LINGER
          Sets SO_LINGER with the specified linger time in seconds.
static java.lang.String SO_TIMEOUT
          Defines the socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data.
static java.lang.String SOCKET_BUFFER_SIZE
          Determines the size of the internal socket buffer used to buffer data while receiving / transmitting HTTP messages.
static java.lang.String STALE_CONNECTION_CHECK
          Determines whether stale connection check is to be used.
static java.lang.String TCP_NODELAY
          Determines whether Nagle's algorithm is to be used.
 

Field Detail

SO_TIMEOUT

static final java.lang.String SO_TIMEOUT
Defines the socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data. A timeout value of zero is interpreted as an infinite timeout.

This parameter expects a value of type Integer.

See Also:
SocketOptions.SO_TIMEOUT, Constant Field Values

TCP_NODELAY

static final java.lang.String TCP_NODELAY
Determines whether Nagle's algorithm is to be used. The Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent. When applications wish to decrease network latency and increase performance, they can disable Nagle's algorithm (that is enable TCP_NODELAY). Data will be sent earlier, at the cost of an increase in bandwidth consumption.

This parameter expects a value of type Boolean.

See Also:
SocketOptions.TCP_NODELAY, Constant Field Values

SOCKET_BUFFER_SIZE

static final java.lang.String SOCKET_BUFFER_SIZE
Determines the size of the internal socket buffer used to buffer data while receiving / transmitting HTTP messages.

This parameter expects a value of type Integer.

See Also:
Constant Field Values

SO_LINGER

static final java.lang.String SO_LINGER
Sets SO_LINGER with the specified linger time in seconds. The maximum timeout value is platform specific. Value 0 implies that the option is disabled. Value -1 implies that the JRE default is used. The setting only affects socket close.

This parameter expects a value of type Integer.

See Also:
SocketOptions.SO_LINGER, Constant Field Values

CONNECTION_TIMEOUT

static final java.lang.String CONNECTION_TIMEOUT
Determines the timeout in milliseconds until a connection is established. A timeout value of zero is interpreted as an infinite timeout.

This parameter expects a value of type Integer.

See Also:
Constant Field Values

STALE_CONNECTION_CHECK

static final java.lang.String STALE_CONNECTION_CHECK
Determines whether stale connection check is to be used. Disabling stale connection check may result in slight performance improvement at the risk of getting an I/O error when executing a request over a connection that has been closed at the server side.

This parameter expects a value of type Boolean.

See Also:
Constant Field Values

MAX_LINE_LENGTH

static final java.lang.String MAX_LINE_LENGTH
Determines the maximum line length limit. If set to a positive value, any HTTP line exceeding this limit will cause an IOException. A negative or zero value will effectively disable the check.

This parameter expects a value of type Integer.

See Also:
Constant Field Values

MAX_HEADER_COUNT

static final java.lang.String MAX_HEADER_COUNT
Determines the maximum HTTP header count allowed. If set to a positive value, the number of HTTP headers received from the data stream exceeding this limit will cause an IOException. A negative or zero value will effectively disable the check.

This parameter expects a value of type Integer.

See Also:
Constant Field Values


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.