Java Doc for HttpConnectionParams.java in  » Net » Apache-common-HttpClient » org » apache » commons » httpclient » params » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » Apache common HttpClient » org.apache.commons.httpclient.params 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.httpclient.params.DefaultHttpParams
      org.apache.commons.httpclient.params.HttpConnectionParams

All known Subclasses:   org.apache.commons.httpclient.params.HttpConnectionManagerParams,
HttpConnectionParams
public class HttpConnectionParams extends DefaultHttpParams (Code)
This class represents a collection of HTTP protocol parameters applicable to org.apache.commons.httpclient.HttpConnection HTTP connections . Protocol parameters may be linked together to form a hierarchy. If a particular parameter value has not been explicitly defined in the collection itself, its value will be drawn from the parent collection of parameters.
author:
   Oleg Kalnichevski
version:
   $Revision: 480424 $
since:
   3.0


Field Summary
final public static  StringCONNECTION_TIMEOUT
     Determines the timeout until a connection is etablished.
final public static  StringSO_LINGER
     Sets SO_LINGER with the specified linger time in seconds.
final public static  StringSO_RCVBUF
     Determines a hint the size of the underlying buffers used by the platform for incoming network I/O.
final public static  StringSO_SNDBUF
     Determines a hint the size of the underlying buffers used by the platform for outgoing network I/O.
final public static  StringSO_TIMEOUT
     Defines the default socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data.
final public static  StringSTALE_CONNECTION_CHECK
     Determines whether stale connection check is to be used.
final public static  StringTCP_NODELAY
     Determines whether Nagle's algorithm is to be used.

Constructor Summary
public  HttpConnectionParams()
     Creates a new collection of parameters with the collection returned by HttpConnectionParams.getDefaultParams() as a parent.

Method Summary
public  intgetConnectionTimeout()
     Returns the timeout until a connection is etablished.
public  intgetLinger()
     Returns linger-on-close timeout.
public  intgetReceiveBufferSize()
     Returns a hint the size of the underlying buffers used by the platform for incoming network I/O.
public  intgetSendBufferSize()
     Returns a hint the size of the underlying buffers used by the platform for outgoing network I/O.
public  intgetSoTimeout()
     Returns the default socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data.
public  booleangetTcpNoDelay()
     Tests if Nagle's algorithm is to be used.
public  booleanisStaleCheckingEnabled()
     Tests whether stale connection check is to be used.
public  voidsetConnectionTimeout(int timeout)
     Sets the timeout until a connection is etablished.
public  voidsetLinger(int value)
     Returns linger-on-close timeout.
public  voidsetReceiveBufferSize(int size)
     Sets a hint the size of the underlying buffers used by the platform for incoming network I/O.
public  voidsetSendBufferSize(int size)
     Sets a hint the size of the underlying buffers used by the platform for outgoing network I/O.
public  voidsetSoTimeout(int timeout)
     Sets the default socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data.
public  voidsetStaleCheckingEnabled(boolean value)
     Defines whether stale connection check is to be used.
public  voidsetTcpNoDelay(boolean value)
     Determines whether Nagle's algorithm is to be used.

Field Detail
CONNECTION_TIMEOUT
final public static String CONNECTION_TIMEOUT(Code)
Determines the timeout until a connection is etablished. A value of zero means the timeout is not used. The default value is zero.

This parameter expects a value of type Integer .




SO_LINGER
final public static String SO_LINGER(Code)
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:   java.net.SocketOptions.SO_LINGER



SO_RCVBUF
final public static String SO_RCVBUF(Code)
Determines a hint the size of the underlying buffers used by the platform for incoming network I/O. This value is a suggestion to the kernel from the application about the size of buffers to use for the data to be received over the socket.

This parameter expects a value of type Integer .


See Also:   java.net.SocketOptions.SO_RCVBUF



SO_SNDBUF
final public static String SO_SNDBUF(Code)
Determines a hint the size of the underlying buffers used by the platform for outgoing network I/O. This value is a suggestion to the kernel from the application about the size of buffers to use for the data to be sent over the socket.

This parameter expects a value of type Integer .


See Also:   java.net.SocketOptions.SO_SNDBUF



SO_TIMEOUT
final public static String SO_TIMEOUT(Code)
Defines the default 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 value is used when no socket timeout is set in the HttpMethodParams HTTP method parameters .

This parameter expects a value of type Integer .


See Also:   java.net.SocketOptions.SO_TIMEOUT



STALE_CONNECTION_CHECK
final public static String STALE_CONNECTION_CHECK(Code)
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 .




TCP_NODELAY
final public static String TCP_NODELAY(Code)
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:   java.net.SocketOptions.TCP_NODELAY




Constructor Detail
HttpConnectionParams
public HttpConnectionParams()(Code)
Creates a new collection of parameters with the collection returned by HttpConnectionParams.getDefaultParams() as a parent. The collection will defer to its parent for a default value if a particular parameter is not explicitly set in the collection itself.
See Also:   HttpConnectionParams.getDefaultParams()




Method Detail
getConnectionTimeout
public int getConnectionTimeout()(Code)
Returns the timeout until a connection is etablished. A value of zero means the timeout is not used. The default value is zero. timeout in milliseconds.



getLinger
public int getLinger()(Code)
Returns linger-on-close timeout. Value 0 implies that the option is disabled. Value -1 implies that the JRE default is used. the linger-on-close timeout



getReceiveBufferSize
public int getReceiveBufferSize()(Code)
Returns a hint the size of the underlying buffers used by the platform for incoming network I/O. This value is a suggestion to the kernel from the application about the size of buffers to use for the data to be received over the socket. the hint size of the send buffer



getSendBufferSize
public int getSendBufferSize()(Code)
Returns a hint the size of the underlying buffers used by the platform for outgoing network I/O. This value is a suggestion to the kernel from the application about the size of buffers to use for the data to be sent over the socket. the hint size of the send buffer



getSoTimeout
public int getSoTimeout()(Code)
Returns the default 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 value is used when no socket timeout is set in the HttpMethodParams HTTP method parameters . timeout in milliseconds



getTcpNoDelay
public boolean getTcpNoDelay()(Code)
Tests if Nagle's algorithm is to be used. true if the Nagle's algorithm is to NOT be used(that is enable TCP_NODELAY), false otherwise.



isStaleCheckingEnabled
public boolean isStaleCheckingEnabled()(Code)
Tests 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. true if stale connection check is to be used, false otherwise.



setConnectionTimeout
public void setConnectionTimeout(int timeout)(Code)
Sets the timeout until a connection is etablished. A value of zero means the timeout is not used. The default value is zero.
Parameters:
  timeout - Timeout in milliseconds.



setLinger
public void setLinger(int value)(Code)
Returns linger-on-close timeout. This option disables/enables immediate return from a close() of a TCP Socket. Enabling this option with a non-zero Integer timeout means that a close() will block pending the transmission and acknowledgement of all data written to the peer, at which point the socket is closed gracefully. Value 0 implies that the option is disabled. Value -1 implies that the JRE default is used.
Parameters:
  value - the linger-on-close timeout



setReceiveBufferSize
public void setReceiveBufferSize(int size)(Code)
Sets a hint the size of the underlying buffers used by the platform for incoming network I/O. This value is a suggestion to the kernel from the application about the size of buffers to use for the data to be received over the socket.
Parameters:
  size - the hint size of the send buffer



setSendBufferSize
public void setSendBufferSize(int size)(Code)
Sets a hint the size of the underlying buffers used by the platform for outgoing network I/O. This value is a suggestion to the kernel from the application about the size of buffers to use for the data to be sent over the socket.
Parameters:
  size - the hint size of the send buffer



setSoTimeout
public void setSoTimeout(int timeout)(Code)
Sets the default 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 value is used when no socket timeout is set in the HttpMethodParams HTTP method parameters .
Parameters:
  timeout - Timeout in milliseconds



setStaleCheckingEnabled
public void setStaleCheckingEnabled(boolean value)(Code)
Defines 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.
Parameters:
  value - true if stale connection check is to be used, false otherwise.



setTcpNoDelay
public void setTcpNoDelay(boolean value)(Code)
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.
Parameters:
  value - true if the Nagle's algorithm is to NOT be used(that is enable TCP_NODELAY), false otherwise.



Methods inherited from org.apache.commons.httpclient.params.DefaultHttpParams
public void clear()(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean getBooleanParameter(String name, boolean defaultValue)(Code)(Java Doc)
public static HttpParams getDefaultParams()(Code)(Java Doc)
public synchronized HttpParams getDefaults()(Code)(Java Doc)
public double getDoubleParameter(String name, double defaultValue)(Code)(Java Doc)
public int getIntParameter(String name, int defaultValue)(Code)(Java Doc)
public long getLongParameter(String name, long defaultValue)(Code)(Java Doc)
public synchronized Object getParameter(String name)(Code)(Java Doc)
public boolean isParameterFalse(String name)(Code)(Java Doc)
public boolean isParameterSet(String name)(Code)(Java Doc)
public boolean isParameterSetLocally(String name)(Code)(Java Doc)
public boolean isParameterTrue(String name)(Code)(Java Doc)
public void setBooleanParameter(String name, boolean value)(Code)(Java Doc)
public synchronized void setDefaults(HttpParams params)(Code)(Java Doc)
public void setDoubleParameter(String name, double value)(Code)(Java Doc)
public static void setHttpParamsFactory(HttpParamsFactory httpParamsFactory)(Code)(Java Doc)
public void setIntParameter(String name, int value)(Code)(Java Doc)
public void setLongParameter(String name, long value)(Code)(Java Doc)
public synchronized void setParameter(String name, Object value)(Code)(Java Doc)
public synchronized void setParameters(String[] names, Object value)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.