HTTPBuilder Overview
Features
Builder and parser support for XML, JSON, and HTML Easy URI manipulation Streamlined client for REST interfaces Built-in support for GZIP and Deflate content-encoding Built-in support for most common authentication schemes Status code based response handling Convenience methods for GET and POST Compatible with Google App Engine AsyncHTTPBuilder for asynchronous requests Easily extensible APIComponents
HTTPBuilder is the main API class which is used to make requests and parse responses. AsyncHTTPBuilder is a subclass of the base HTTPBuilder which transparently delegates all requests to a thread pool for execution. RESTClient extends HTTPBuilder to eliminate the closure definition, to make REST operations particularly easy. Finally, HttpURLClient provides most of HTTPBuilders intelligent handling in a package that can be used from Google App Engine.
URIBuilder provides a fluent interface for manipulating complex URLs. It is also used internally by HTTPBuilder to handle path and query string modification.
See the JavaDoc for full documentation.
Requirements
At least Java 1.5. This is because HttpClient 4 requires Java 5. Groovy 1.5 or later, although it should work with earlier versions JAR dependencies can be found in the packaged distributions linked from the downlo创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!