Java Doc for HttpConnectionParams.java in  » Net » httpcomponents-core-4.0-beta1 » org » apache » http » 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 » httpcomponents core 4.0 beta1 » org.apache.http.params 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.http.params.HttpConnectionParams

HttpConnectionParams
final public class HttpConnectionParams implements CoreConnectionPNames(Code)
An adaptor for accessing connection parameters in HttpParams .
Note that the implements relation to CoreConnectionPNames is for compatibility with existing application code only. References to the parameter names should use the interface, not this class.
author:
   Oleg Kalnichevski
version:
   $Revision: 576089 $
since:
   4.0




Method Summary
public static  intgetConnectionTimeout(HttpParams params)
     Returns the timeout until a connection is etablished.
public static  intgetLinger(HttpParams params)
     Returns linger-on-close timeout.
public static  intgetSoTimeout(HttpParams params)
     Returns the default socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data.
public static  intgetSocketBufferSize(HttpParams params)
    
public static  booleangetTcpNoDelay(HttpParams params)
     Tests if Nagle's algorithm is to be used.
public static  booleanisStaleCheckingEnabled(HttpParams params)
     Tests whether stale connection check is to be used.
public static  voidsetConnectionTimeout(HttpParams params, int timeout)
     Sets the timeout until a connection is etablished.
public static  voidsetLinger(HttpParams params, int value)
     Returns linger-on-close timeout.
public static  voidsetSoTimeout(HttpParams params, int timeout)
     Sets the default socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data.
public static  voidsetSocketBufferSize(HttpParams params, int size)
    
public static  voidsetStaleCheckingEnabled(HttpParams params, boolean value)
     Defines whether stale connection check is to be used.
public static  voidsetTcpNoDelay(HttpParams params, boolean value)
     Determines whether Nagle's algorithm is to be used.



Method Detail
getConnectionTimeout
public static int getConnectionTimeout(HttpParams params)(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 static int getLinger(HttpParams params)(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



getSoTimeout
public static int getSoTimeout(HttpParams params)(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 method parameters. timeout in milliseconds



getSocketBufferSize
public static int getSocketBufferSize(HttpParams params)(Code)



getTcpNoDelay
public static boolean getTcpNoDelay(HttpParams params)(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 static boolean isStaleCheckingEnabled(HttpParams params)(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 static void setConnectionTimeout(HttpParams params, 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 static void setLinger(HttpParams params, 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



setSoTimeout
public static void setSoTimeout(HttpParams params, 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 method parameters.
Parameters:
  timeout - Timeout in milliseconds



setSocketBufferSize
public static void setSocketBufferSize(HttpParams params, int size)(Code)



setStaleCheckingEnabled
public static void setStaleCheckingEnabled(HttpParams params, 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 static void setTcpNoDelay(HttpParams params, 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 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.