Apache common HttpClient

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 
HttpClient
License:Apache License
URL:http://jakarta.apache.org/httpcomponents/httpclient-3.x/
Description:Framework for working with the client-side of the HTTP protocol.
Package NameComment
examples
org.apache.commons.httpclient Package Documentation for org.apache.commons.httpclient

Classes and interfaces supporting the client side of the HTTP protocol.

The HttpClient component supports the client-side of RFC 1945 (HTTP/1.0) and RFC 2616 (HTTP/1.1), several related specifications (RFC 2109 (Cookies), RFC 2617 (HTTP Authentication), etc.), and provides a framework by which new request types (methods) or HTTP extensions can can be easily created or supported.

The basis for the abstraction is provided by three types:

    {@link org.apache.commons.httpclient.HttpConnection}
    represents a network connection to some HTTP host.
    {@link org.apache.commons.httpclient.HttpMethod}
    represents a request to be made over some {@link org.apache.commons.httpclient.HttpConnection} and contains the server's response.
    {@link org.apache.commons.httpclient.HttpState}
    contains the HTTP attributes that may persist from request to request, such as cookies and authentication credentials.

and several simple bean-style classes:

    {@link org.apache.commons.httpclient.Cookie}
    represents HTTP cookie.
    {@link org.apache.commons.httpclient.Credentials}
    an interface representing a set of authentication credentials.
    {@link org.apache.commons.httpclient.Header}
    represents an HTTP request or response header.
    {@link org.apache.commons.httpclient.HeaderElement}
    represents a single element of a multi-part header.
    {@link org.apache.commons.httpclient.UsernamePasswordCredentials}
    a username and password pair.

{@link org.apache.commons.httpclient.HttpClient} provides a simple "user-agent" implementation that will suffice for many applications, but whose use is not required.

HttpClient also provides several utilities that may be useful when extending the framework:

    {@link org.apache.commons.httpclient.HttpMethodBase}
    an abstract base implementation of HttpMethod, which may be extended to create new method types or to support additional protocol HTTP features.
    {@link org.apache.commons.httpclient.HttpStatus}
    an enumeration of HttpStatus codes.
    {@link org.apache.commons.httpclient.ChunkedOutputStream}
    an {@link java.io.OutputStream} wrapper supporting the "chunked" transfer encoding.
    {@link org.apache.commons.httpclient.ChunkedInputStream}
    an {@link java.io.InputStream} wrapper supporting the "chunked" transfer encoding.
    {@link org.apache.commons.httpclient.util.URIUtil}
    provides utilities for encoding and decoding URI's in the %HH format.

HttpClient Configuration with Java Properties

Java properties can be set at run time with the -Dname=value command line arguments to the application that uses HttpClient. These properties can also be set programaticly by calling System.getProperties().setProperty(name, value). This is the list of properties that HttpClient recognizes:
Name Type Effect
httpclient.useragent String Sets the User-Agent string to be sent on every HTTP request.
httpclient.authentication.preemptive boolean Sends authorization credentials without requiring explicit requests from the web server
org.apache.commons.httpclient.auth Package Documentation for org.apache.commons.httpclient.auth Provides implementation of various authentication schemes as well as utility classes that can be used to authenticate HTTP requests. @since 2.0
org.apache.commons.httpclient.contrib.auth
org.apache.commons.httpclient.contrib.benchmark
org.apache.commons.httpclient.contrib.methods.multipart
org.apache.commons.httpclient.contrib.proxy
org.apache.commons.httpclient.contrib.ssl
org.apache.commons.httpclient.contrib.utils
org.apache.commons.httpclient.cookie Package Documentation for org.apache.commons.httpclient.cookie Provides cookie handling in conjunction with {@link org.apache.commons.httpclient.Cookie}. @since 2.0
org.apache.commons.httpclient.methods Package Documentation for org.apache.commons.httpclient.methods Classes implementing {@link org.apache.commons.httpclient.HttpMethod} for the base HTTP methods. @since 1.0
org.apache.commons.httpclient.methods.multipart Package Documentation for org.apache.commons.httpclient.methods.multipart Provides Multipart support classes for the {@link org.apache.commons.httpclient.methods.MultipartPostMethod}. @since 2.0
org.apache.commons.httpclient.params Package Documentation for org.apache.commons.httpclient.params HttpClient preferences framework. @since 3.0
org.apache.commons.httpclient.protocol Package Documentation for org.apache.commons.httpclient.protocol Provides protocol specific socket factory handling. @since 2.0
org.apache.commons.httpclient.server
org.apache.commons.httpclient.ssl
org.apache.commons.httpclient.util Package Documentation for org.apache.commons.httpclient.util Provides some utility classes for use by HttpClient. @since 2.0
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.