httpclient
-
HttpClient uses an order of preference to select the correct authentication scheme .
HttpClient使用一个有序偏好来选择正确的认证机制。
-
First , set up an HTTP client by using the Apache HttpClient ( 4.0.1 ) library .
首先,使用ApacheHttpClient(4.0.1)库来创建一个HTTP客户端。
-
You can leverage them to add OAuth authentication support to your HttpClient application .
您可以利用它们来添加OAuth支持到您的HttpClient应用程序。
-
The following example shows how to get a user profile from LinkedIn using HttpClient with OAuth support .
以下示例展示如何使用有OAuth支持的HttpClient从LinkedIn获取一个用户的配置文件。
-
The HttpClient component can be of great use to anyone building client applications such as web browsers or REST clients .
而使用网络浏览器或者REST客户端的所有人,都可以尽量使用HttpClient构件。
-
Later in the series , we will see one such toolkit provided by Apache Commons HttpClient API .
在本系列稍后,我们将了解ApacheCommonsHttpClientAPI所提供的这样的工具集。
-
The HttpClient library is quite simple to use and allows a POST operation to be programmatically constructed before execution .
HttpClient类库用起来很简单,并且允许POST操作在执行之前被以编程的方式创建。
-
You retrieve dynamic data from Yahoo Finance ( for example , the current price of the stock ) using the HttpClient class .
您可以使用HttpClient类从YahooFinance检索动态数据(例如,这支股票目前的价格)。
-
For each server interaction , each user reuses two Apache HttpClient objects to communicate with the server through HTTP .
对于每一次服务器交流,每一个用户都重复使用两个ApacheHttpClient对象来与服务器通过HTTP进行交流。
-
By default , only basic , digest , and NTLM authentication schemes are supported in HttpClient .
默认情况下,在HttpClient中仅支持基础认证、摘要认证和NTLM认证。
-
In this article , use the Apache HttpClient library to create a JAX-RS client for Android & the popular smartphone platform .
在本文中,使用ApacheHttpClient库为流行的智能手机平台Android创建一个JAX-RS客户端。
-
The HttpClient also has built-in functions to store cookies and handle certificates , which you will use in the examples in the following sections .
HttpClient也拥有内构功能来存储缓存并处理确认,在接下来章节中的范例中您将会使用到这一点。
-
Use the Apache HttpClient library for publishing updates to the Pachube system , and the Jetty lightweight Web server to implement the listener component .
使用ApacheHttpClient库将更新发布到Pachube系统,并使用Jettylightweightweb服务器实现监听组件。
-
The Apache HTTP client ( HttpClient ) adds extra functionality by providing a feature-rich and fully functional Java package for accessing resources through HTTP .
ApacheHTTP客户端(HttpClient)通过提供多特性以及全功能Java包以通过HTTP访问资源来添加其他的功能。
-
For example , you can write a Java program that uses the open-source Ganymed SSH library or the Apache HttpClient library for HTTP services .
例如,您可以编写一个Java程序,为HTTP服务使用开源GanymedSSH库或ApacheHttpClient库。
-
Later in the series , you 'll see one such toolkit provided by Apache Commons HttpClient ( hereafter referred to as HttpClient ) API .
在本系列的后面,将看到ApacheCommonsHttpClient(以下称为HttpClient)API所提供的这样一个工具。
-
The lions'share of this code is the HttpClient boilerplate & interested readers should check out the HttpClient API docs for details .
此代码中最重要的一部分是HttpClient样板&感兴趣的读者应该查阅HttpClientAPI文档了解详细信息。
-
This tutorial introduces the technique of automating the testing of a typical Web service using several technologies , including JUnit , Apache Commons HttpClient , and Apache XMLUnit .
该教程介绍了利用许多技术,包括JUnit、ApacheCommonsHttpClient,和ApacheXMLUnit将典型的Web服务的测试自动化的技术。
-
XSocket – http includes a HttpClient and helps to write event based HTTP network components such as HTTP proxies or COMET server applications by providing an asynchronous , streaming API .
xSocket–http包括一个HttpClient,而且通过提供异步的、流技术的API,有利于编写像HTTP代理、COMET服务器应用程序一样的基于事件的HTTP网络组件。
-
Because Apache Commons HttpClient wants the POST request body to be done in NameValuePairs , we iterate through the elements of the map using the foreach () call .
由于ApacheCommonsHttpClient要求POST请求的主体放在NameValuePairs中,因此我们使用foreach()调用遍历map的元素。