Removed website resources
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1519408 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
56b4d027d8
commit
6b5327c64b
|
@ -1,101 +0,0 @@
|
||||||
~~ ====================================================================
|
|
||||||
~~ Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
~~ or more contributor license agreements. See the NOTICE file
|
|
||||||
~~ distributed with this work for additional information
|
|
||||||
~~ regarding copyright ownership. The ASF licenses this file
|
|
||||||
~~ to you under the Apache License, Version 2.0 (the
|
|
||||||
~~ "License"); you may not use this file except in compliance
|
|
||||||
~~ with the License. You may obtain a copy of the License at
|
|
||||||
~~
|
|
||||||
~~ http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
~~
|
|
||||||
~~ Unless required by applicable law or agreed to in writing,
|
|
||||||
~~ software distributed under the License is distributed on an
|
|
||||||
~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
~~ KIND, either express or implied. See the License for the
|
|
||||||
~~ specific language governing permissions and limitations
|
|
||||||
~~ under the License.
|
|
||||||
~~ ====================================================================
|
|
||||||
~~
|
|
||||||
~~ This software consists of voluntary contributions made by many
|
|
||||||
~~ individuals on behalf of the Apache Software Foundation. For more
|
|
||||||
~~ information on the Apache Software Foundation, please see
|
|
||||||
~~ <http://www.apache.org/>.
|
|
||||||
|
|
||||||
----------
|
|
||||||
HttpComponents Fluent HC Module
|
|
||||||
----------
|
|
||||||
----------
|
|
||||||
----------
|
|
||||||
|
|
||||||
Fluent HC
|
|
||||||
|
|
||||||
This module provides an easy to use facade API for HttpClient based on the concept of
|
|
||||||
a fluent interface. Fluent facade API exposes only the most fundamental functions of
|
|
||||||
HttpClient and is indended for simple use cases that do not require the full flexibility
|
|
||||||
of HttpClient. For instance, fluent facade API relieves the users from having to deal with
|
|
||||||
connection management and resource deallocation. In most cases, though, this comes at
|
|
||||||
a price of having to buffer content of response messages in memory. However, users can
|
|
||||||
still use custom response handlers to process response streams of arbitrary length.
|
|
||||||
|
|
||||||
----------------------------------
|
|
||||||
String result1 = Request.Get("http://somehost/")
|
|
||||||
.version(HttpVersion.HTTP_1_1)
|
|
||||||
.connectTimeout(1000)
|
|
||||||
.socketTimeout(1000)
|
|
||||||
.viaProxy(new HttpHost("myproxy", 8080))
|
|
||||||
.execute().returnContent().asString();
|
|
||||||
|
|
||||||
String result2 = Request.Post("http://somehost/do-stuff")
|
|
||||||
.version(HttpVersion.HTTP_1_1)
|
|
||||||
.useExpectContinue()
|
|
||||||
.viaProxy(new HttpHost("myproxy", 8080))
|
|
||||||
.bodyForm(Form.form().add("username", "vip").add("password", "secret").build())
|
|
||||||
.execute().returnContent().asString();
|
|
||||||
----------------------------------
|
|
||||||
|
|
||||||
----------------------------------
|
|
||||||
Document result3 = Request.Get("http://somehost/content")
|
|
||||||
.execute().handleResponse(new ResponseHandler<Document>() {
|
|
||||||
|
|
||||||
public Document handleResponse(final HttpResponse response) throws IOException {
|
|
||||||
StatusLine statusLine = response.getStatusLine();
|
|
||||||
HttpEntity entity = response.getEntity();
|
|
||||||
if (statusLine.getStatusCode() >= 300) {
|
|
||||||
throw new HttpResponseException(
|
|
||||||
statusLine.getStatusCode(),
|
|
||||||
statusLine.getReasonPhrase());
|
|
||||||
}
|
|
||||||
if (entity == null) {
|
|
||||||
throw new ClientProtocolException("Response contains no content");
|
|
||||||
}
|
|
||||||
DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
|
|
||||||
try {
|
|
||||||
DocumentBuilder docBuilder = dbfac.newDocumentBuilder();
|
|
||||||
ContentType contentType = ContentType.getOrDefault(entity);
|
|
||||||
if (!contentType.equals(ContentType.APPLICATION_XML)) {
|
|
||||||
throw new ClientProtocolException("Unexpected content type:" + contentType);
|
|
||||||
}
|
|
||||||
String charset = contentType.getCharset();
|
|
||||||
if (charset == null) {
|
|
||||||
charset = HTTP.DEFAULT_CONTENT_CHARSET;
|
|
||||||
}
|
|
||||||
return docBuilder.parse(entity.getContent(), charset);
|
|
||||||
} catch (ParserConfigurationException ex) {
|
|
||||||
throw new IllegalStateException(ex);
|
|
||||||
} catch (SAXException ex) {
|
|
||||||
throw new ClientProtocolException("Malformed XML document", ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
----------------------------------
|
|
||||||
|
|
||||||
{{{./apidocs/index.html}Javadocs}}
|
|
||||||
|
|
||||||
{{{./xref/index.html}Project sources}}
|
|
||||||
|
|
||||||
{{{./dependencies.html}Dependencies}}
|
|
||||||
|
|
||||||
{{{./issue-tracking.html}Issue Tracking}}
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
@import url("../../../css/hc-maven.css");
|
|
|
@ -1,41 +0,0 @@
|
||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
||||||
<!--
|
|
||||||
====================================================================
|
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
or more contributor license agreements. See the NOTICE file
|
|
||||||
distributed with this work for additional information
|
|
||||||
regarding copyright ownership. The ASF licenses this file
|
|
||||||
to you under the Apache License, Version 2.0 (the
|
|
||||||
"License"); you may not use this file except in compliance
|
|
||||||
with the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
|
||||||
software distributed under the License is distributed on an
|
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
KIND, either express or implied. See the License for the
|
|
||||||
specific language governing permissions and limitations
|
|
||||||
under the License.
|
|
||||||
====================================================================
|
|
||||||
|
|
||||||
This software consists of voluntary contributions made by many
|
|
||||||
individuals on behalf of the Apache Software Foundation. For more
|
|
||||||
information on the Apache Software Foundation, please see
|
|
||||||
<http://www.apache.org/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project xmlns="http://maven.apache.org/DECORATION/1.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd"
|
|
||||||
name="HttpClient">
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<menu name="HttpClient Overview">
|
|
||||||
<item name="Description" href="../index.html"/>
|
|
||||||
<item name="Quick Start" href="../quickstart.html"/>
|
|
||||||
</menu>
|
|
||||||
<menu ref="modules" />
|
|
||||||
<menu ref="reports"/>
|
|
||||||
</body>
|
|
||||||
</project>
|
|
|
@ -1,45 +0,0 @@
|
||||||
~~ ====================================================================
|
|
||||||
~~ Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
~~ or more contributor license agreements. See the NOTICE file
|
|
||||||
~~ distributed with this work for additional information
|
|
||||||
~~ regarding copyright ownership. The ASF licenses this file
|
|
||||||
~~ to you under the Apache License, Version 2.0 (the
|
|
||||||
~~ "License"); you may not use this file except in compliance
|
|
||||||
~~ with the License. You may obtain a copy of the License at
|
|
||||||
~~
|
|
||||||
~~ http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
~~
|
|
||||||
~~ Unless required by applicable law or agreed to in writing,
|
|
||||||
~~ software distributed under the License is distributed on an
|
|
||||||
~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
~~ KIND, either express or implied. See the License for the
|
|
||||||
~~ specific language governing permissions and limitations
|
|
||||||
~~ under the License.
|
|
||||||
~~ ====================================================================
|
|
||||||
~~
|
|
||||||
~~ This software consists of voluntary contributions made by many
|
|
||||||
~~ individuals on behalf of the Apache Software Foundation. For more
|
|
||||||
~~ information on the Apache Software Foundation, please see
|
|
||||||
~~ <http://www.apache.org/>.
|
|
||||||
|
|
||||||
----------
|
|
||||||
HttpComponents HttpClient Cache Module
|
|
||||||
----------
|
|
||||||
----------
|
|
||||||
----------
|
|
||||||
|
|
||||||
HttpClient Cache
|
|
||||||
|
|
||||||
This module provides support for HTTP/1.1 response caching.
|
|
||||||
|
|
||||||
{{{./apidocs/index.html}Javadocs}}
|
|
||||||
|
|
||||||
{{{./xref/index.html}Project sources}}
|
|
||||||
|
|
||||||
{{{./dependencies.html}Dependencies}}
|
|
||||||
|
|
||||||
{{{./issue-tracking.html}Issue Tracking}}
|
|
||||||
|
|
||||||
{External Documentation}
|
|
||||||
|
|
||||||
* {{{http://labs.xfinity.com/benchmarking-the-httpclient-caching-module}"Benchmarking the HttpClient Caching Module"}} by Comcast Interactive Media
|
|
|
@ -1 +0,0 @@
|
||||||
@import url("../../../css/hc-maven.css");
|
|
|
@ -1,41 +0,0 @@
|
||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
||||||
<!--
|
|
||||||
====================================================================
|
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
or more contributor license agreements. See the NOTICE file
|
|
||||||
distributed with this work for additional information
|
|
||||||
regarding copyright ownership. The ASF licenses this file
|
|
||||||
to you under the Apache License, Version 2.0 (the
|
|
||||||
"License"); you may not use this file except in compliance
|
|
||||||
with the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
|
||||||
software distributed under the License is distributed on an
|
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
KIND, either express or implied. See the License for the
|
|
||||||
specific language governing permissions and limitations
|
|
||||||
under the License.
|
|
||||||
====================================================================
|
|
||||||
|
|
||||||
This software consists of voluntary contributions made by many
|
|
||||||
individuals on behalf of the Apache Software Foundation. For more
|
|
||||||
information on the Apache Software Foundation, please see
|
|
||||||
<http://www.apache.org/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project xmlns="http://maven.apache.org/DECORATION/1.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd"
|
|
||||||
name="HttpClient">
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<menu name="HttpClient Overview">
|
|
||||||
<item name="Description" href="../index.html"/>
|
|
||||||
<item name="Quick Start" href="../quickstart.html"/>
|
|
||||||
</menu>
|
|
||||||
<menu ref="modules" />
|
|
||||||
<menu ref="reports"/>
|
|
||||||
</body>
|
|
||||||
</project>
|
|
|
@ -1,44 +0,0 @@
|
||||||
~~ ====================================================================
|
|
||||||
~~ Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
~~ or more contributor license agreements. See the NOTICE file
|
|
||||||
~~ distributed with this work for additional information
|
|
||||||
~~ regarding copyright ownership. The ASF licenses this file
|
|
||||||
~~ to you under the Apache License, Version 2.0 (the
|
|
||||||
~~ "License"); you may not use this file except in compliance
|
|
||||||
~~ with the License. You may obtain a copy of the License at
|
|
||||||
~~
|
|
||||||
~~ http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
~~
|
|
||||||
~~ Unless required by applicable law or agreed to in writing,
|
|
||||||
~~ software distributed under the License is distributed on an
|
|
||||||
~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
~~ KIND, either express or implied. See the License for the
|
|
||||||
~~ specific language governing permissions and limitations
|
|
||||||
~~ under the License.
|
|
||||||
~~ ====================================================================
|
|
||||||
~~
|
|
||||||
~~ This software consists of voluntary contributions made by many
|
|
||||||
~~ individuals on behalf of the Apache Software Foundation. For more
|
|
||||||
~~ information on the Apache Software Foundation, please see
|
|
||||||
~~ <http://www.apache.org/>.
|
|
||||||
|
|
||||||
----------
|
|
||||||
HttpComponents HttpClient Module
|
|
||||||
----------
|
|
||||||
----------
|
|
||||||
----------
|
|
||||||
|
|
||||||
HttpClient
|
|
||||||
|
|
||||||
This module is a full-featured,
|
|
||||||
{{{http://www.ietf.org/rfc/rfc2616.txt}RFC 2616}} compliant
|
|
||||||
HTTP client built on top of
|
|
||||||
{{{./httpcomponents/httpcomponents-core/index.html}HttpCore}}
|
|
||||||
|
|
||||||
{{{./apidocs/index.html}Javadocs}}
|
|
||||||
|
|
||||||
{{{./xref/index.html}Project sources}}
|
|
||||||
|
|
||||||
{{{./dependencies.html}Dependencies}}
|
|
||||||
|
|
||||||
{{{./issue-tracking.html}Issue Tracking}}
|
|
|
@ -1 +0,0 @@
|
||||||
@import url("../../../css/hc-maven.css");
|
|
|
@ -1,38 +0,0 @@
|
||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
||||||
<!--
|
|
||||||
====================================================================
|
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
or more contributor license agreements. See the NOTICE file
|
|
||||||
distributed with this work for additional information
|
|
||||||
regarding copyright ownership. The ASF licenses this file
|
|
||||||
to you under the Apache License, Version 2.0 (the
|
|
||||||
"License"); you may not use this file except in compliance
|
|
||||||
with the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
|
||||||
software distributed under the License is distributed on an
|
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
KIND, either express or implied. See the License for the
|
|
||||||
specific language governing permissions and limitations
|
|
||||||
under the License.
|
|
||||||
====================================================================
|
|
||||||
|
|
||||||
This software consists of voluntary contributions made by many
|
|
||||||
individuals on behalf of the Apache Software Foundation. For more
|
|
||||||
information on the Apache Software Foundation, please see
|
|
||||||
<http://www.apache.org/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="HttpClient">
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<menu name="HttpClient Overview">
|
|
||||||
<item name="Description" href="../index.html"/>
|
|
||||||
<item name="Quick Start" href="../quickstart.html"/>
|
|
||||||
</menu>
|
|
||||||
<menu ref="modules" />
|
|
||||||
<menu ref="reports"/>
|
|
||||||
</body>
|
|
||||||
</project>
|
|
|
@ -1,42 +0,0 @@
|
||||||
~~ ====================================================================
|
|
||||||
~~ Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
~~ or more contributor license agreements. See the NOTICE file
|
|
||||||
~~ distributed with this work for additional information
|
|
||||||
~~ regarding copyright ownership. The ASF licenses this file
|
|
||||||
~~ to you under the Apache License, Version 2.0 (the
|
|
||||||
~~ "License"); you may not use this file except in compliance
|
|
||||||
~~ with the License. You may obtain a copy of the License at
|
|
||||||
~~
|
|
||||||
~~ http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
~~
|
|
||||||
~~ Unless required by applicable law or agreed to in writing,
|
|
||||||
~~ software distributed under the License is distributed on an
|
|
||||||
~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
~~ KIND, either express or implied. See the License for the
|
|
||||||
~~ specific language governing permissions and limitations
|
|
||||||
~~ under the License.
|
|
||||||
~~ ====================================================================
|
|
||||||
~~
|
|
||||||
~~ This software consists of voluntary contributions made by many
|
|
||||||
~~ individuals on behalf of the Apache Software Foundation. For more
|
|
||||||
~~ information on the Apache Software Foundation, please see
|
|
||||||
~~ <http://www.apache.org/>.
|
|
||||||
|
|
||||||
----------
|
|
||||||
HttpComponents HttpMime Module
|
|
||||||
----------
|
|
||||||
----------
|
|
||||||
----------
|
|
||||||
|
|
||||||
HttpMime
|
|
||||||
|
|
||||||
This module provides support for MIME multipart encoded entities.
|
|
||||||
|
|
||||||
{{{./apidocs/index.html}Javadocs}}
|
|
||||||
|
|
||||||
{{{./xref/index.html}Project sources}}
|
|
||||||
|
|
||||||
{{{./dependencies.html}Dependencies}}
|
|
||||||
|
|
||||||
{{{./issue-tracking.html}Issue Tracking}}
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
@import url("../../../css/hc-maven.css");
|
|
|
@ -1,38 +0,0 @@
|
||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
||||||
<!--
|
|
||||||
====================================================================
|
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
or more contributor license agreements. See the NOTICE file
|
|
||||||
distributed with this work for additional information
|
|
||||||
regarding copyright ownership. The ASF licenses this file
|
|
||||||
to you under the Apache License, Version 2.0 (the
|
|
||||||
"License"); you may not use this file except in compliance
|
|
||||||
with the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
|
||||||
software distributed under the License is distributed on an
|
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
KIND, either express or implied. See the License for the
|
|
||||||
specific language governing permissions and limitations
|
|
||||||
under the License.
|
|
||||||
====================================================================
|
|
||||||
|
|
||||||
This software consists of voluntary contributions made by many
|
|
||||||
individuals on behalf of the Apache Software Foundation. For more
|
|
||||||
information on the Apache Software Foundation, please see
|
|
||||||
<http://www.apache.org/>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="HttpClient">
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<menu name="HttpClient Overview">
|
|
||||||
<item name="Description" href="../index.html"/>
|
|
||||||
<item name="Quick Start" href="../quickstart.html"/>
|
|
||||||
</menu>
|
|
||||||
<menu ref="modules" />
|
|
||||||
<menu ref="reports"/>
|
|
||||||
</body>
|
|
||||||
</project>
|
|
Loading…
Reference in New Issue