├── MODULE_LICENSE_APACHE2
├── api
├── removed.txt
├── system-current.txt
├── system-removed.txt
├── test-current.txt
├── test-removed.txt
├── TEST_MAPPING
└── apicheck_msg_apache_http_legacy.txt
├── METADATA
├── src
└── org
│ └── apache
│ ├── http
│ ├── impl
│ │ ├── auth
│ │ │ ├── package.html
│ │ │ ├── BasicSchemeFactory.java
│ │ │ └── DigestSchemeFactory.java
│ │ ├── client
│ │ │ ├── package.html
│ │ │ └── TunnelRefusedException.java
│ │ ├── cookie
│ │ │ ├── package.html
│ │ │ ├── BasicCommentHandler.java
│ │ │ ├── DateParseException.java
│ │ │ ├── AbstractCookieAttributeHandler.java
│ │ │ ├── BrowserCompatSpecFactory.java
│ │ │ ├── NetscapeDraftSpecFactory.java
│ │ │ ├── RFC2109SpecFactory.java
│ │ │ ├── RFC2965SpecFactory.java
│ │ │ └── BestMatchSpecFactory.java
│ │ ├── conn
│ │ │ ├── package.html
│ │ │ └── tsccm
│ │ │ │ ├── doc-files
│ │ │ │ └── tsccm-structure.png
│ │ │ │ └── RefQueueHandler.java
│ │ ├── package.html
│ │ ├── entity
│ │ │ └── package.html
│ │ └── io
│ │ │ ├── package.html
│ │ │ └── HttpTransportMetricsImpl.java
│ ├── svn.info
│ ├── params
│ │ ├── package.html
│ │ └── HttpAbstractParamBean.java
│ ├── auth
│ │ ├── params
│ │ │ ├── package.html
│ │ │ ├── AuthParamBean.java
│ │ │ └── AuthPNames.java
│ │ ├── package.html
│ │ ├── AuthSchemeFactory.java
│ │ ├── Credentials.java
│ │ └── AUTH.java
│ ├── conn
│ │ ├── params
│ │ │ ├── package.html
│ │ │ ├── ConnPerRoute.java
│ │ │ └── ConnConnectionParamBean.java
│ │ ├── ClientConnectionManagerFactory.java
│ │ ├── HttpHostConnectException.java
│ │ ├── routing
│ │ │ └── package.html
│ │ └── ConnectionPoolTimeoutException.java
│ ├── client
│ │ ├── params
│ │ │ ├── package.html
│ │ │ ├── AuthPolicy.java
│ │ │ └── CookiePolicy.java
│ │ ├── utils
│ │ │ └── package.html
│ │ ├── protocol
│ │ │ └── package.html
│ │ ├── methods
│ │ │ └── package.html
│ │ ├── package.html
│ │ ├── ClientProtocolException.java
│ │ ├── HttpResponseException.java
│ │ ├── ResponseHandler.java
│ │ └── NonRepeatableRequestException.java
│ ├── cookie
│ │ ├── params
│ │ │ ├── package.html
│ │ │ └── CookieSpecParamBean.java
│ │ ├── package.html
│ │ ├── CookieSpecFactory.java
│ │ └── SM.java
│ ├── util
│ │ └── package.html
│ ├── io
│ │ ├── package.html
│ │ ├── HttpTransportMetrics.java
│ │ ├── HttpMessageParser.java
│ │ ├── HttpMessageWriter.java
│ │ ├── SessionOutputBuffer.java
│ │ └── SessionInputBuffer.java
│ ├── message
│ │ └── package.html
│ ├── HttpRequest.java
│ ├── package.html
│ ├── protocol
│ │ ├── HttpRequestHandlerResolver.java
│ │ ├── HttpRequestHandler.java
│ │ ├── ExecutionContext.java
│ │ ├── HttpContext.java
│ │ ├── SyncBasicHttpContext.java
│ │ └── HttpProcessor.java
│ ├── RequestLine.java
│ ├── HttpInetConnection.java
│ ├── HttpRequestFactory.java
│ ├── entity
│ │ ├── ContentProducer.java
│ │ ├── ContentLengthStrategy.java
│ │ └── package.html
│ ├── HeaderElement.java
│ ├── StatusLine.java
│ ├── ConnectionClosedException.java
│ ├── NoHttpResponseException.java
│ ├── MalformedChunkCodingException.java
│ ├── HeaderIterator.java
│ ├── HttpEntityEnclosingRequest.java
│ ├── HeaderElementIterator.java
│ ├── ReasonPhraseCatalog.java
│ ├── UnsupportedHttpVersionException.java
│ └── TokenIterator.java
│ └── commons
│ ├── codec
│ ├── language
│ │ └── package.html
│ ├── binary
│ │ └── package.html
│ ├── net
│ │ ├── package.html
│ │ └── StringEncodings.java
│ ├── overview.html
│ ├── DecoderException.java
│ ├── StringDecoder.java
│ ├── StringEncoder.java
│ ├── BinaryEncoder.java
│ ├── EncoderException.java
│ ├── BinaryDecoder.java
│ ├── Encoder.java
│ └── Decoder.java
│ └── logging
│ └── impl
│ └── package.html
├── OWNERS
├── unbundled-apache
├── android
└── src
│ └── android
│ └── net
│ └── http
│ ├── RequestFeeder.java
│ └── HttpLog.java
└── CleanSpec.mk
/MODULE_LICENSE_APACHE2:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/api/removed.txt:
--------------------------------------------------------------------------------
1 | // Signature format: 2.0
2 |
--------------------------------------------------------------------------------
/api/system-current.txt:
--------------------------------------------------------------------------------
1 | // Signature format: 2.0
2 |
--------------------------------------------------------------------------------
/api/system-removed.txt:
--------------------------------------------------------------------------------
1 | // Signature format: 2.0
2 |
--------------------------------------------------------------------------------
/api/test-current.txt:
--------------------------------------------------------------------------------
1 | // Signature format: 2.0
2 |
--------------------------------------------------------------------------------
/api/test-removed.txt:
--------------------------------------------------------------------------------
1 | // Signature format: 2.0
2 |
--------------------------------------------------------------------------------
/METADATA:
--------------------------------------------------------------------------------
1 | third_party {
2 | license_type: NOTICE
3 | }
4 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/auth/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/client/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/cookie/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/conn/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/OWNERS:
--------------------------------------------------------------------------------
1 | include platform/libcore:/OWNERS
2 | include platform/system/core:/janitors/OWNERS #{LAST_RESORT_SUGGESTION}
3 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/conn/tsccm/doc-files/tsccm-structure.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aosp-mirror/platform_external_apache-http/HEAD/src/org/apache/http/impl/conn/tsccm/doc-files/tsccm-structure.png
--------------------------------------------------------------------------------
/unbundled-apache:
--------------------------------------------------------------------------------
1 | The existence of this file in external/apache-http implies
2 | that the version of the library here is unbundled. The build system
3 | can test for its existence to decide whether or not to add a
4 | dependency to this library.
5 |
--------------------------------------------------------------------------------
/api/TEST_MAPPING:
--------------------------------------------------------------------------------
1 | {
2 | "presubmit": [
3 | {
4 | "name": "CtsApacheHttpLegacy27ApiSignatureTestCases"
5 | },
6 | {
7 | "name": "CtsApacheHttpLegacyCurrentApiSignatureTestCases"
8 | },
9 | {
10 | "name": "CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases"
11 | }
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/src/org/apache/http/svn.info:
--------------------------------------------------------------------------------
1 | Repository Root: http://svn.apache.org/repos/asf
2 | Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
3 | Revision: 677354
4 | Node Kind: directory
5 | Schedule: normal
6 | Last Changed Author: olegk
7 | Last Changed Rev: 677250
8 | Last Changed Date: 2008-07-16 04:45:47 -0700 (Wed, 16 Jul 2008)
9 |
--------------------------------------------------------------------------------
/api/apicheck_msg_apache_http_legacy.txt:
--------------------------------------------------------------------------------
1 |
2 | ******************************
3 | You have tried to change the API from what has been previously approved.
4 |
5 | To make these errors go away, you have two choices:
6 | 1) You can add "@hide" javadoc comments to the methods, etc. listed in the
7 | errors above.
8 |
9 | 2) You can update apache-http-legacy-current.txt by executing the following command:
10 | make update-apache-http-legacy-api
11 |
12 | To submit the revised apache-http-legacy-current.txt to the main Android repository,
13 | you will need approval.
14 | ******************************
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/language/package.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 | Language and phonetic encoders.
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/binary/package.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 | Base64, Binary, and Hexadecimal String encoding and decoding.
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/net/package.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 | Network related encoding and decoding.
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/org/apache/commons/logging/impl/package.html:
--------------------------------------------------------------------------------
1 |
18 |
19 |
20 | Concrete implementations of commons-logging wrapper APIs.
21 |
22 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/overview.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 | This document is the API specification for the Apache Jakarta Commons Codec Library, version 1.3.
21 |
22 |
23 | This library requires a JRE version of 1.2.2 or greater.
24 | The hypertext links originating from this document point to Sun's version 1.3 API as the 1.2.2 API documentation
25 | is no longer on-line.
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/android/src/android/net/http/RequestFeeder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | /**
18 | * Supplies Requests to a Connection
19 | */
20 |
21 | package android.net.http;
22 |
23 | import org.apache.http.HttpHost;
24 |
25 | interface RequestFeeder {
26 |
27 | Request getRequest();
28 | Request getRequest(HttpHost host);
29 |
30 | /**
31 | * @return true if a request for this host is available
32 | */
33 | boolean haveRequest(HttpHost host);
34 |
35 | /**
36 | * Put request back on head of queue
37 | */
38 | void requeueRequest(Request request);
39 | }
40 |
--------------------------------------------------------------------------------
/android/src/android/net/http/HttpLog.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | /**
18 | * package-level logging flag
19 | */
20 |
21 | package android.net.http;
22 |
23 | import android.os.SystemClock;
24 |
25 | import android.util.Log;
26 |
27 | class HttpLog {
28 | private final static String LOGTAG = "http";
29 |
30 | private static final boolean DEBUG = false;
31 | static final boolean LOGV = false;
32 |
33 | static void v(String logMe) {
34 | Log.v(LOGTAG, SystemClock.uptimeMillis() + " " + Thread.currentThread().getName() + " " + logMe);
35 | }
36 |
37 | static void e(String logMe) {
38 | Log.e(LOGTAG, logMe);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/DecoderException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2004 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.apache.commons.codec;
18 |
19 | /**
20 | * Thrown when a Decoder has encountered a failure condition during a decode.
21 | *
22 | * @author Apache Software Foundation
23 | * @version $Id: DecoderException.java,v 1.9 2004/02/29 04:08:31 tobrien Exp $
24 | *
25 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
26 | * Please visit this webpage
27 | * for further details.
28 | */
29 | @Deprecated
30 | public class DecoderException extends Exception {
31 |
32 | /**
33 | * Creates a DecoderException
34 | *
35 | * @param pMessage A message with meaning to a human
36 | */
37 | public DecoderException(String pMessage) {
38 | super(pMessage);
39 | }
40 |
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/StringDecoder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2004 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.apache.commons.codec;
18 |
19 | /**
20 | * Decodes a String into a String.
21 | *
22 | * @author Apache Software Foundation
23 | * @version $Id: StringDecoder.java,v 1.9 2004/02/29 04:08:31 tobrien Exp $
24 | *
25 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
26 | * Please visit this webpage
27 | * for further details.
28 | */
29 | @Deprecated
30 | public interface StringDecoder extends Decoder {
31 |
32 | /**
33 | * Decodes a String and returns a String.
34 | *
35 | * @param pString a String to encode
36 | *
37 | * @return the encoded String
38 | *
39 | * @throws DecoderException thrown if there is
40 | * an error conidition during the Encoding process.
41 | */
42 | String decode(String pString) throws DecoderException;
43 | }
44 |
45 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/StringEncoder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2004 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.apache.commons.codec;
18 |
19 | /**
20 | * Encodes a String into a String.
21 | *
22 | * @author Apache Software Foundation
23 | * @version $Id: StringEncoder.java,v 1.9 2004/02/29 04:08:31 tobrien Exp $
24 | *
25 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
26 | * Please visit this webpage
27 | * for further details.
28 | */
29 | @Deprecated
30 | public interface StringEncoder extends Encoder {
31 |
32 | /**
33 | * Encodes a String and returns a String.
34 | *
35 | * @param pString a String to encode
36 | *
37 | * @return the encoded String
38 | *
39 | * @throws EncoderException thrown if there is
40 | * an error conidition during the Encoding process.
41 | */
42 | String encode(String pString) throws EncoderException;
43 | }
44 |
45 |
--------------------------------------------------------------------------------
/src/org/apache/http/params/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | The parameterization framework for HTTP components.
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/org/apache/http/auth/params/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Parameters for configuring HttpAuth.
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/org/apache/http/conn/params/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Parameters for configuring HttpConn.
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/org/apache/http/client/params/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Parameters for configuring HttpClient.
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/org/apache/http/client/utils/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Helpers and utility classes for HttpClient.
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/org/apache/http/cookie/params/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Parameters for configuring HttpCookie.
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/org/apache/http/client/protocol/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Additional request and response interceptors.
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Default implementations for interfaces in
38 | {@link org.apache.http org.apache.http}.
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/src/org/apache/http/client/methods/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Request implementations for the various HTTP methods like GET and POST.
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/org/apache/http/client/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | The API for client-side HTTP communication and
38 | entry point to the HttpClient module.
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/src/org/apache/http/cookie/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | The API for client-side state management via cookies,
38 | commonly referred to as HttpCookie.
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/src/org/apache/http/auth/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | The API for client-side HTTP authentication against a server,
38 | commonly referred to as HttpAuth.
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/entity/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Default implementations for interfaces in
38 | {@link org.apache.http.entity org.apache.http.entity}.
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/BinaryEncoder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2004 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.apache.commons.codec;
18 |
19 | /**
20 | * Defines common encoding methods for byte array encoders.
21 | *
22 | * @author Apache Software Foundation
23 | * @version $Id: BinaryEncoder.java,v 1.10 2004/02/29 04:08:31 tobrien Exp $
24 | *
25 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
26 | * Please visit this webpage
27 | * for further details.
28 | */
29 | @Deprecated
30 | public interface BinaryEncoder extends Encoder {
31 |
32 | /**
33 | * Encodes a byte array and return the encoded data
34 | * as a byte array.
35 | *
36 | * @param pArray Data to be encoded
37 | *
38 | * @return A byte array containing the encoded data
39 | *
40 | * @throws EncoderException thrown if the Encoder
41 | * encounters a failure condition during the
42 | * encoding process.
43 | */
44 | byte[] encode(byte[] pArray) throws EncoderException;
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/EncoderException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2004 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.apache.commons.codec;
18 |
19 | /**
20 | * Thrown when there is a failure condition during the encoding process. This
21 | * exception is thrown when an Encoder encounters a encoding specific exception
22 | * such as invalid data, inability to calculate a checksum, characters outside of the
23 | * expected range.
24 | *
25 | * @author Apache Software Foundation
26 | * @version $Id: EncoderException.java,v 1.10 2004/02/29 04:08:31 tobrien Exp $
27 | *
28 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
29 | * Please visit this webpage
30 | * for further details.
31 | */
32 | @Deprecated
33 | public class EncoderException extends Exception {
34 |
35 | /**
36 | * Creates a new instance of this exception with an useful message.
37 | *
38 | * @param pMessage a useful message relating to the encoder specific error.
39 | */
40 | public EncoderException(String pMessage) {
41 | super(pMessage);
42 | }
43 | }
44 |
45 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/BinaryDecoder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2004 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.apache.commons.codec;
18 |
19 | /**
20 | * Defines common decoding methods for byte array decoders.
21 | *
22 | * @author Apache Software Foundation
23 | * @version $Id: BinaryDecoder.java,v 1.10 2004/06/15 18:14:15 ggregory Exp $
24 | *
25 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
26 | * Please visit this webpage
27 | * for further details.
28 | */
29 | @Deprecated
30 | public interface BinaryDecoder extends Decoder {
31 |
32 | /**
33 | * Decodes a byte array and returns the results as a byte array.
34 | *
35 | * @param pArray A byte array which has been encoded with the
36 | * appropriate encoder
37 | *
38 | * @return a byte array that contains decoded content
39 | *
40 | * @throws DecoderException A decoder exception is thrown
41 | * if a Decoder encounters a failure condition during
42 | * the decode process.
43 | */
44 | byte[] decode(byte[] pArray) throws DecoderException;
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/src/org/apache/http/util/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Mostly utility classes with static helper methods for various purposes.
38 |
39 | The helper classes for resizable
40 | {@link org.apache.http.util.ByteArrayBuffer byte} and
41 | {@link org.apache.http.util.CharArrayBuffer char} arrays
42 | do not fall into this category.
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/src/org/apache/http/io/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | The transport layer abstraction of the HTTP components.
38 |
39 | This layer is used to transfer messages over connections.
40 | Connections are typically based on sockets: plain or secure,
41 | direct or via SOCKS hosts, with bandwidth throttling, or
42 | whatever else you might think of.
43 | However, opening connections is not within the responsibility
44 | of HttpCore.
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/io/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Default implementations for interfaces in
38 | {@link org.apache.http.io org.apache.http.io}.
39 |
40 |
41 |
42 | There are implementations of the transport encodings used by HTTP,
43 | in particular the chunked encoding for
44 | {@link org.apache.http.impl.io.ChunkedOutputStream sending} and
45 | {@link org.apache.http.impl.io.ChunkedInputStream receiving} entities.
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/src/org/apache/http/message/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | A selection of HTTP
38 | {@link org.apache.http.message.AbstractHttpMessage message}
39 | implementations.
40 |
41 | There are basic implementations for HTTP requests
42 | {@link org.apache.http.message.BasicHttpEntityEnclosingRequest with}
43 | and {@link org.apache.http.message.BasicHttpRequest without}
44 | an entity, and for
45 | {@link org.apache.http.message.BasicHttpResponse responses}.
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/Encoder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2004 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.apache.commons.codec;
18 |
19 | /**
20 | * Provides the highest level of abstraction for Encoders.
21 | * This is the sister interface of {@link Decoder}. Every implementation of
22 | * Encoder provides this common generic interface whic allows a user to pass a
23 | * generic Object to any Encoder implementation in the codec package.
24 | *
25 | * @author Apache Software Foundation
26 | * @version $Id: Encoder.java,v 1.10 2004/02/29 04:08:31 tobrien Exp $
27 | *
28 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
29 | * Please visit this webpage
30 | * for further details.
31 | */
32 | @Deprecated
33 | public interface Encoder {
34 |
35 | /**
36 | * Encodes an "Object" and returns the encoded content
37 | * as an Object. The Objects here may just be byte[]
38 | * or Strings depending on the implementation used.
39 | *
40 | * @param pObject An object ot encode
41 | *
42 | * @return An "encoded" Object
43 | *
44 | * @throws EncoderException an encoder exception is
45 | * thrown if the encoder experiences a failure
46 | * condition during the encoding process.
47 | */
48 | Object encode(Object pObject) throws EncoderException;
49 | }
50 |
51 |
--------------------------------------------------------------------------------
/src/org/apache/http/io/HttpTransportMetrics.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/io/HttpTransportMetrics.java $
3 | * $Revision: 536667 $
4 | * $Date: 2007-05-09 14:48:41 -0700 (Wed, 09 May 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.io;
33 | /**
34 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
35 | * Please visit this webpage
36 | * for further details.
37 | */
38 |
39 | @Deprecated
40 | public interface HttpTransportMetrics {
41 |
42 | /**
43 | * Returns the number of bytes trasferred.
44 | */
45 | long getBytesTransferred();
46 |
47 | /**
48 | * Resets the counts
49 | */
50 | void reset();
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/src/org/apache/http/auth/AuthSchemeFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/AuthSchemeFactory.java $
3 | * $Revision: 527900 $
4 | * $Date: 2007-04-12 05:35:25 -0700 (Thu, 12 Apr 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.auth;
33 |
34 | import org.apache.http.params.HttpParams;
35 |
36 | /**
37 | *
38 | * @author Oleg Kalnichevski
39 | *
40 | * @since 4.0
41 | *
42 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
43 | * Please visit this webpage
44 | * for further details.
45 | */
46 | @Deprecated
47 | public interface AuthSchemeFactory {
48 |
49 | AuthScheme newInstance(HttpParams params);
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/src/org/apache/http/cookie/CookieSpecFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieSpecFactory.java $
3 | * $Revision: 489636 $
4 | * $Date: 2006-12-22 04:34:57 -0800 (Fri, 22 Dec 2006) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.cookie;
33 |
34 | import org.apache.http.params.HttpParams;
35 |
36 | /**
37 | *
38 | * @author Oleg Kalnichevski
39 | *
40 | * @since 4.0
41 | *
42 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
43 | * Please visit this webpage
44 | * for further details.
45 | */
46 | @Deprecated
47 | public interface CookieSpecFactory {
48 |
49 | CookieSpec newInstance(HttpParams params);
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/src/org/apache/http/params/HttpAbstractParamBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/params/HttpAbstractParamBean.java $
3 | * $Revision: 593937 $
4 | * $Date: 2007-11-11 10:44:12 -0800 (Sun, 11 Nov 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.params;
33 | /**
34 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
35 | * Please visit this webpage
36 | * for further details.
37 | */
38 |
39 | @Deprecated
40 | public abstract class HttpAbstractParamBean {
41 |
42 | protected final HttpParams params;
43 |
44 | public HttpAbstractParamBean (final HttpParams params) {
45 | if (params == null)
46 | throw new IllegalArgumentException("HTTP parameters may not be null");
47 | this.params = params;
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/net/StringEncodings.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2004 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.apache.commons.codec.net;
18 |
19 | /**
20 | * String encodings used in this package.
21 | *
22 | * @author Apache Software Foundation
23 | * @since 1.3
24 | * @version $Id: StringEncodings.java,v 1.2 2004/04/09 22:21:07 ggregory Exp $
25 | *
26 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
27 | * Please visit this webpage
28 | * for further details.
29 | */
30 | @Deprecated
31 | interface StringEncodings {
32 | /**
33 | *
34 | * Seven-bit ASCII, also known as ISO646-US, also known as the Basic Latin block of the Unicode character set.
35 | *
36 | *
37 | * Every implementation of the Java platform is required to support this character encoding.
38 | *
39 | *
40 | * @see JRE character
41 | * encoding names
42 | */
43 | String US_ASCII = "US-ASCII";
44 |
45 | /**
46 | *
47 | * Eight-bit Unicode Transformation Format.
48 | *
49 | *
50 | * Every implementation of the Java platform is required to support this character encoding.
51 | *
52 | *
53 | * @see JRE character
54 | * encoding names
55 | */
56 | String UTF8 = "UTF-8";
57 | }
58 |
--------------------------------------------------------------------------------
/src/org/apache/http/HttpRequest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpRequest.java $
3 | * $Revision: 528428 $
4 | * $Date: 2007-04-13 03:26:04 -0700 (Fri, 13 Apr 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | /**
35 | * An HTTP request.
36 | *
37 | * @author Oleg Kalnichevski
38 | *
39 | * @version $Revision: 528428 $
40 | *
41 | * @since 4.0
42 | *
43 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
44 | * Please visit this webpage
45 | * for further details.
46 | */
47 | @Deprecated
48 | public interface HttpRequest extends HttpMessage {
49 |
50 | /**
51 | * Returns the request line of this request.
52 | * @return the request line.
53 | */
54 | RequestLine getRequestLine();
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/src/org/apache/http/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | The core interfaces and classes of the HTTP components.
38 |
39 | These deal with the fundamental things required for using the
40 | HTTP protocol, such as representing a
41 | {@link org.apache.http.HttpMessage message} including it's
42 | {@link org.apache.http.Header headers} and optional
43 | {@link org.apache.http.HttpEntity entity}, and
44 | {@link org.apache.http.HttpConnection connections}
45 | over which messages are sent. In order to prepare messages
46 | before sending or after receiving, there are interceptors for
47 | {@link org.apache.http.HttpRequestInterceptor requests} and
48 | {@link org.apache.http.HttpResponseInterceptor responses}.
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/src/org/apache/http/protocol/HttpRequestHandlerResolver.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpRequestHandlerResolver.java $
3 | * $Revision: 613298 $
4 | * $Date: 2008-01-18 14:09:22 -0800 (Fri, 18 Jan 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.protocol;
33 |
34 | /**
35 | * Interface to be implemented by objects that can resolve
36 | * {@link HttpRequestHandler} instances by request URI.
37 | *
38 | * @author Oleg Kalnichevski
39 | *
40 | * @version $Revision: 613298 $
41 | *
42 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
43 | * Please visit this webpage
44 | * for further details.
45 | */
46 | @Deprecated
47 | public interface HttpRequestHandlerResolver {
48 |
49 | HttpRequestHandler lookup(String requestURI);
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/conn/tsccm/RefQueueHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/RefQueueHandler.java $
3 | * $Revision: 603874 $
4 | * $Date: 2007-12-13 02:42:41 -0800 (Thu, 13 Dec 2007) $
5 | *
6 | * ====================================================================
7 | *
8 | * Licensed to the Apache Software Foundation (ASF) under one or more
9 | * contributor license agreements. See the NOTICE file distributed with
10 | * this work for additional information regarding copyright ownership.
11 | * The ASF licenses this file to You under the Apache License, Version 2.0
12 | * (the "License"); you may not use this file except in compliance with
13 | * the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | * ====================================================================
23 | *
24 | * This software consists of voluntary contributions made by many
25 | * individuals on behalf of the Apache Software Foundation. For more
26 | * information on the Apache Software Foundation, please see
27 | * .
28 | *
29 | */
30 |
31 | package org.apache.http.impl.conn.tsccm;
32 |
33 | import java.lang.ref.Reference;
34 |
35 |
36 | /**
37 | * Callback handler for {@link RefQueueWorker RefQueueWorker}.
38 | *
39 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
40 | * Please visit this webpage
41 | * for further details.
42 | */
43 | @Deprecated
44 | public interface RefQueueHandler {
45 |
46 | /**
47 | * Invoked when a reference is found on the queue.
48 | *
49 | * @param ref the reference to handle
50 | */
51 | public void handleReference(Reference> ref)
52 | ;
53 | }
54 |
--------------------------------------------------------------------------------
/src/org/apache/http/auth/params/AuthParamBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/params/AuthParamBean.java $
3 | * $Revision: 632313 $
4 | * $Date: 2008-02-29 05:19:50 -0800 (Fri, 29 Feb 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.auth.params;
33 |
34 | import org.apache.http.params.HttpAbstractParamBean;
35 | import org.apache.http.params.HttpParams;
36 | /**
37 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
38 | * Please visit this webpage
39 | * for further details.
40 | */
41 |
42 | @Deprecated
43 | public class AuthParamBean extends HttpAbstractParamBean {
44 |
45 | public AuthParamBean (final HttpParams params) {
46 | super(params);
47 | }
48 |
49 | public void setCredentialCharset (final String charset) {
50 | AuthParams.setCredentialCharset(params, charset);
51 | }
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/src/org/apache/http/auth/Credentials.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/Credentials.java $
3 | * $Revision: 658430 $
4 | * $Date: 2008-05-20 14:04:27 -0700 (Tue, 20 May 2008) $
5 | *
6 | * ====================================================================
7 | *
8 | * Licensed to the Apache Software Foundation (ASF) under one or more
9 | * contributor license agreements. See the NOTICE file distributed with
10 | * this work for additional information regarding copyright ownership.
11 | * The ASF licenses this file to You under the Apache License, Version 2.0
12 | * (the "License"); you may not use this file except in compliance with
13 | * the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | * ====================================================================
23 | *
24 | * This software consists of voluntary contributions made by many
25 | * individuals on behalf of the Apache Software Foundation. For more
26 | * information on the Apache Software Foundation, please see
27 | * .
28 | *
29 | */
30 |
31 | package org.apache.http.auth;
32 |
33 | import java.security.Principal;
34 |
35 | /**
36 | * User name and password based authentication credentials.
37 | *
38 | * @author Unascribed
39 | * @author Mike Bowler
40 | *
41 | * @version $Revision: 658430 $ $Date: 2008-05-20 14:04:27 -0700 (Tue, 20 May 2008) $
42 | *
43 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
44 | * Please visit this webpage
45 | * for further details.
46 | */
47 | @Deprecated
48 | public interface Credentials {
49 |
50 | Principal getUserPrincipal();
51 |
52 | String getPassword();
53 |
54 | }
55 |
--------------------------------------------------------------------------------
/src/org/apache/http/io/HttpMessageParser.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/io/HttpMessageParser.java $
3 | * $Revision: 567370 $
4 | * $Date: 2007-08-19 01:13:21 -0700 (Sun, 19 Aug 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.io;
33 |
34 | import java.io.IOException;
35 |
36 | import org.apache.http.HttpException;
37 | import org.apache.http.HttpMessage;
38 |
39 | /**
40 | * Generic message parser interface.
41 | *
42 | * @author Oleg Kalnichevski
43 | *
44 | * @version $Revision: 567370 $
45 | *
46 | * @since 4.0
47 | *
48 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
49 | * Please visit this webpage
50 | * for further details.
51 | */
52 | @Deprecated
53 | public interface HttpMessageParser {
54 |
55 | HttpMessage parse()
56 | throws IOException, HttpException;
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/src/org/apache/http/RequestLine.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/RequestLine.java $
3 | * $Revision: 573864 $
4 | * $Date: 2007-09-08 08:53:25 -0700 (Sat, 08 Sep 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | /**
35 | * The first line of an {@link HttpRequest HttpRequest}.
36 | * It contains the method, URI, and HTTP version of the request.
37 | * For details, see RFC 2616.
38 | *
39 | * @author Oleg Kalnichevski
40 | *
41 | * @version $Revision: 573864 $
42 | *
43 | * @since 4.0
44 | *
45 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
46 | * Please visit this webpage
47 | * for further details.
48 | */
49 | @Deprecated
50 | public interface RequestLine {
51 |
52 | String getMethod();
53 |
54 | ProtocolVersion getProtocolVersion();
55 |
56 | String getUri();
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/src/org/apache/http/io/HttpMessageWriter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/io/HttpMessageWriter.java $
3 | * $Revision: 567370 $
4 | * $Date: 2007-08-19 01:13:21 -0700 (Sun, 19 Aug 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.io;
33 |
34 | import java.io.IOException;
35 |
36 | import org.apache.http.HttpException;
37 | import org.apache.http.HttpMessage;
38 |
39 | /**
40 | * Generic message writer interface.
41 | *
42 | * @author Oleg Kalnichevski
43 | *
44 | * @version $Revision: 567370 $
45 | *
46 | * @since 4.0
47 | *
48 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
49 | * Please visit this webpage
50 | * for further details.
51 | */
52 | @Deprecated
53 | public interface HttpMessageWriter {
54 |
55 | void write(HttpMessage message)
56 | throws IOException, HttpException;
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/auth/BasicSchemeFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/auth/BasicSchemeFactory.java $
3 | * $Revision: 534839 $
4 | * $Date: 2007-05-03 06:03:41 -0700 (Thu, 03 May 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.impl.auth;
33 |
34 | import org.apache.http.auth.AuthScheme;
35 | import org.apache.http.auth.AuthSchemeFactory;
36 | import org.apache.http.params.HttpParams;
37 |
38 | /**
39 | *
40 | * @author Oleg Kalnichevski
41 | *
42 | * @since 4.0
43 | *
44 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
45 | * Please visit this webpage
46 | * for further details.
47 | */
48 | @Deprecated
49 | public class BasicSchemeFactory implements AuthSchemeFactory {
50 |
51 | public AuthScheme newInstance(final HttpParams params) {
52 | return new BasicScheme();
53 | }
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/src/org/apache/http/HttpInetConnection.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpInetConnection.java $
3 | * $Revision: 613298 $
4 | * $Date: 2008-01-18 14:09:22 -0800 (Fri, 18 Jan 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | import java.net.InetAddress;
35 |
36 | /**
37 | * An HTTP connection over the Internet Protocol (IP).
38 | *
39 | * @author Oleg Kalnichevski
40 | *
41 | * @version $Revision: 613298 $
42 | *
43 | * @since 4.0
44 | *
45 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
46 | * Please visit this webpage
47 | * for further details.
48 | */
49 | @Deprecated
50 | public interface HttpInetConnection extends HttpConnection {
51 |
52 | InetAddress getLocalAddress();
53 |
54 | int getLocalPort();
55 |
56 | InetAddress getRemoteAddress();
57 |
58 | int getRemotePort();
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/src/org/apache/http/cookie/SM.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/SM.java $
3 | * $Revision: 582602 $
4 | * $Date: 2007-10-07 02:35:48 -0700 (Sun, 07 Oct 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.cookie;
33 |
34 | /**
35 | * Constants and static helpers related to the HTTP state management.
36 | *
37 | * @author Oleg Kalnichevski
38 | *
39 | * @since 4.0
40 | *
41 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
42 | * Please visit this webpage
43 | * for further details.
44 | */
45 | @Deprecated
46 | public interface SM {
47 |
48 | public static final String COOKIE = "Cookie";
49 | public static final String COOKIE2 = "Cookie2";
50 | public static final String SET_COOKIE = "Set-Cookie";
51 | public static final String SET_COOKIE2 = "Set-Cookie2";
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/auth/DigestSchemeFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/auth/DigestSchemeFactory.java $
3 | * $Revision: 534839 $
4 | * $Date: 2007-05-03 06:03:41 -0700 (Thu, 03 May 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.impl.auth;
33 |
34 | import org.apache.http.auth.AuthScheme;
35 | import org.apache.http.auth.AuthSchemeFactory;
36 | import org.apache.http.params.HttpParams;
37 |
38 | /**
39 | *
40 | * @author Oleg Kalnichevski
41 | *
42 | * @since 4.0
43 | *
44 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
45 | * Please visit this webpage
46 | * for further details.
47 | */
48 | @Deprecated
49 | public class DigestSchemeFactory implements AuthSchemeFactory {
50 |
51 | public AuthScheme newInstance(final HttpParams params) {
52 | return new DigestScheme();
53 | }
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/src/org/apache/http/HttpRequestFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpRequestFactory.java $
3 | * $Revision: 618017 $
4 | * $Date: 2008-02-03 08:42:22 -0800 (Sun, 03 Feb 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | /**
35 | * A factory for {@link HttpRequest HttpRequest} objects.
36 | *
37 | * @author Oleg Kalnichevski
38 | *
39 | * @version $Revision: 618017 $
40 | *
41 | * @since 4.0
42 | *
43 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
44 | * Please visit this webpage
45 | * for further details.
46 | */
47 | @Deprecated
48 | public interface HttpRequestFactory {
49 |
50 | HttpRequest newHttpRequest(RequestLine requestline)
51 | throws MethodNotSupportedException;
52 |
53 | HttpRequest newHttpRequest(String method, String uri)
54 | throws MethodNotSupportedException;
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/src/org/apache/http/entity/ContentProducer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/ContentProducer.java $
3 | * $Revision: 496070 $
4 | * $Date: 2007-01-14 04:18:34 -0800 (Sun, 14 Jan 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.entity;
33 |
34 | import java.io.IOException;
35 | import java.io.OutputStream;
36 |
37 | /**
38 | * An abstract entity content producer.
39 | *
40 | *Content producers are expected to be able to produce their
41 | * content multiple times
42 | *
43 | * @author Oleg Kalnichevski
44 | *
45 | * @version $Revision: 496070 $
46 | *
47 | * @since 4.0
48 | *
49 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
50 | * Please visit this webpage
51 | * for further details.
52 | */
53 | @Deprecated
54 | public interface ContentProducer {
55 |
56 | void writeTo(OutputStream outstream) throws IOException;
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/src/org/apache/http/client/ClientProtocolException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: $
3 | * $Revision: $
4 | * $Date: $
5 | *
6 | * ====================================================================
7 | *
8 | * Licensed to the Apache Software Foundation (ASF) under one or more
9 | * contributor license agreements. See the NOTICE file distributed with
10 | * this work for additional information regarding copyright ownership.
11 | * The ASF licenses this file to You under the Apache License, Version 2.0
12 | * (the "License"); you may not use this file except in compliance with
13 | * the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | * ====================================================================
23 | *
24 | * This software consists of voluntary contributions made by many
25 | * individuals on behalf of the Apache Software Foundation. For more
26 | * information on the Apache Software Foundation, please see
27 | * .
28 | *
29 | */
30 |
31 | package org.apache.http.client;
32 |
33 | import java.io.IOException;
34 |
35 | /**
36 | * Signals an error in the HTTP protocol.
37 | *
38 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
39 | * Please visit this webpage
40 | * for further details.
41 | */
42 | @Deprecated
43 | public class ClientProtocolException extends IOException {
44 |
45 | private static final long serialVersionUID = -5596590843227115865L;
46 |
47 | public ClientProtocolException() {
48 | super();
49 | }
50 |
51 | public ClientProtocolException(String s) {
52 | super(s);
53 | }
54 |
55 | public ClientProtocolException(Throwable cause) {
56 | initCause(cause);
57 | }
58 |
59 | public ClientProtocolException(String message, Throwable cause) {
60 | super(message);
61 | initCause(cause);
62 | }
63 |
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/src/org/apache/http/conn/ClientConnectionManagerFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/ClientConnectionManagerFactory.java $
3 | * $Revision: 652020 $
4 | * $Date: 2008-04-27 14:23:31 -0700 (Sun, 27 Apr 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.conn;
33 |
34 | import org.apache.http.conn.scheme.SchemeRegistry;
35 | import org.apache.http.params.HttpParams;
36 |
37 | /**
38 | * A factory for creating new {@link ClientConnectionManager} instances.
39 | *
40 | * @author Oleg Kalnichevski
41 | *
42 | * @since 4.0
43 | *
44 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
45 | * Please visit this webpage
46 | * for further details.
47 | */
48 | @Deprecated
49 | public interface ClientConnectionManagerFactory {
50 |
51 | ClientConnectionManager newInstance(
52 | HttpParams params,
53 | SchemeRegistry schemeRegistry);
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/src/org/apache/http/client/HttpResponseException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/HttpResponseException.java $
3 | * $Revision: 672425 $
4 | * $Date: 2008-06-27 16:33:05 -0700 (Fri, 27 Jun 2008) $
5 | *
6 | * ====================================================================
7 | *
8 | * Licensed to the Apache Software Foundation (ASF) under one or more
9 | * contributor license agreements. See the NOTICE file distributed with
10 | * this work for additional information regarding copyright ownership.
11 | * The ASF licenses this file to You under the Apache License, Version 2.0
12 | * (the "License"); you may not use this file except in compliance with
13 | * the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | * ====================================================================
23 | *
24 | * This software consists of voluntary contributions made by many
25 | * individuals on behalf of the Apache Software Foundation. For more
26 | * information on the Apache Software Foundation, please see
27 | * .
28 | *
29 | */
30 |
31 | package org.apache.http.client;
32 |
33 | /**
34 | * Signals a non 2xx HTTP response.
35 | *
36 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
37 | * Please visit this webpage
38 | * for further details.
39 | */
40 | @Deprecated
41 | public class HttpResponseException extends ClientProtocolException {
42 |
43 | private static final long serialVersionUID = -7186627969477257933L;
44 |
45 | private final int statusCode;
46 |
47 | public HttpResponseException(int statusCode, final String s) {
48 | super(s);
49 | this.statusCode = statusCode;
50 | }
51 |
52 | public int getStatusCode() {
53 | return this.statusCode;
54 | }
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/src/org/apache/http/protocol/HttpRequestHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpRequestHandler.java $
3 | * $Revision: 613298 $
4 | * $Date: 2008-01-18 14:09:22 -0800 (Fri, 18 Jan 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.protocol;
33 |
34 | import java.io.IOException;
35 |
36 | import org.apache.http.HttpException;
37 | import org.apache.http.HttpRequest;
38 | import org.apache.http.HttpResponse;
39 |
40 | /**
41 | *
42 | * @author Oleg Kalnichevski
43 | *
44 | * @version $Revision: 613298 $
45 | *
46 | * @since 4.0
47 | *
48 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
49 | * Please visit this webpage
50 | * for further details.
51 | */
52 | @Deprecated
53 | public interface HttpRequestHandler {
54 |
55 | void handle(HttpRequest request, HttpResponse response, HttpContext context)
56 | throws HttpException, IOException;
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/client/TunnelRefusedException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/TunnelRefusedException.java $
3 | * $Revision: 537650 $
4 | * $Date: 2007-05-13 12:58:22 -0700 (Sun, 13 May 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.impl.client;
33 |
34 | import org.apache.http.HttpException;
35 | import org.apache.http.HttpResponse;
36 | /**
37 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
38 | * Please visit this webpage
39 | * for further details.
40 | */
41 |
42 | @Deprecated
43 | public class TunnelRefusedException extends HttpException {
44 |
45 | private static final long serialVersionUID = -8646722842745617323L;
46 |
47 | private final HttpResponse response;
48 |
49 | public TunnelRefusedException(final String message, final HttpResponse response) {
50 | super(message);
51 | this.response = response;
52 | }
53 |
54 | public HttpResponse getResponse() {
55 | return this.response;
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/src/org/apache/commons/codec/Decoder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2004 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.apache.commons.codec;
18 |
19 | /**
20 | * Provides the highest level of abstraction for Decoders.
21 | * This is the sister interface of {@link Encoder}. All
22 | * Decoders implement this common generic interface.
23 | *
24 | * Allows a user to pass a generic Object to any Decoder
25 | * implementation in the codec package.
26 | *
27 | * One of the two interfaces at the center of the codec package.
28 | *
29 | * @author Apache Software Foundation
30 | * @version $Id: Decoder.java,v 1.9 2004/02/29 04:08:31 tobrien Exp $
31 | *
32 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
33 | * Please visit this webpage
34 | * for further details.
35 | */
36 | @Deprecated
37 | public interface Decoder {
38 |
39 | /**
40 | * Decodes an "encoded" Object and returns a "decoded"
41 | * Object. Note that the implementation of this
42 | * interface will try to cast the Object parameter
43 | * to the specific type expected by a particular Decoder
44 | * implementation. If a {@link java.lang.ClassCastException} occurs
45 | * this decode method will throw a DecoderException.
46 | *
47 | * @param pObject an object to "decode"
48 | *
49 | * @return a 'decoded" object
50 | *
51 | * @throws DecoderException a decoder exception can
52 | * be thrown for any number of reasons. Some good
53 | * candidates are that the parameter passed to this
54 | * method is null, a param cannot be cast to the
55 | * appropriate type for a specific encoder.
56 | */
57 | Object decode(Object pObject) throws DecoderException;
58 | }
59 |
60 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/cookie/BasicCommentHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/BasicCommentHandler.java $
3 | * $Revision: 558519 $
4 | * $Date: 2007-07-22 11:19:49 -0700 (Sun, 22 Jul 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 | package org.apache.http.impl.cookie;
32 |
33 | import org.apache.http.cookie.MalformedCookieException;
34 | import org.apache.http.cookie.SetCookie;
35 | /**
36 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
37 | * Please visit this webpage
38 | * for further details.
39 | */
40 |
41 | @Deprecated
42 | public class BasicCommentHandler extends AbstractCookieAttributeHandler {
43 |
44 | public BasicCommentHandler() {
45 | super();
46 | }
47 |
48 | public void parse(final SetCookie cookie, final String value)
49 | throws MalformedCookieException {
50 | if (cookie == null) {
51 | throw new IllegalArgumentException("Cookie may not be null");
52 | }
53 | cookie.setComment(value);
54 | }
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/cookie/DateParseException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/DateParseException.java $
3 | * $Revision: 609105 $
4 | * $Date: 2008-01-05 00:55:00 -0800 (Sat, 05 Jan 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.impl.cookie;
33 |
34 |
35 | /**
36 | * An exception to indicate an error parsing a date string.
37 | *
38 | * @see DateUtils
39 | *
40 | * @author Michael Becke
41 | *
42 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
43 | * Please visit this webpage
44 | * for further details.
45 | */
46 | @Deprecated
47 | public class DateParseException extends Exception {
48 |
49 | private static final long serialVersionUID = 4417696455000643370L;
50 |
51 | /**
52 | *
53 | */
54 | public DateParseException() {
55 | super();
56 | }
57 |
58 | /**
59 | * @param message the exception message
60 | */
61 | public DateParseException(String message) {
62 | super(message);
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/src/org/apache/http/entity/ContentLengthStrategy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/entity/ContentLengthStrategy.java $
3 | * $Revision: 613298 $
4 | * $Date: 2008-01-18 14:09:22 -0800 (Fri, 18 Jan 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.entity;
33 |
34 | import org.apache.http.HttpException;
35 | import org.apache.http.HttpMessage;
36 |
37 | /**
38 | * Represents a strategy to determine the content length based on the properties
39 | * of an HTTP message.
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @version $Revision: 613298 $
44 | *
45 | * @since 4.0
46 | *
47 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
48 | * Please visit this webpage
49 | * for further details.
50 | */
51 | @Deprecated
52 | public interface ContentLengthStrategy {
53 |
54 | public static final int IDENTITY = -1;
55 | public static final int CHUNKED = -2;
56 |
57 | long determineLength(HttpMessage message) throws HttpException;
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/src/org/apache/http/HeaderElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HeaderElement.java $
3 | * $Revision: 569828 $
4 | * $Date: 2007-08-26 08:49:38 -0700 (Sun, 26 Aug 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | /**
35 | * One element of an HTTP {@link Header header} value.
36 | *
37 | * @author Oleg Kalnichevski
38 | *
39 | *
40 | *
41 | * @version $Revision: 569828 $ $Date: 2007-08-26 08:49:38 -0700 (Sun, 26 Aug 2007) $
42 | *
43 | * @since 4.0
44 | *
45 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
46 | * Please visit this webpage
47 | * for further details.
48 | */
49 | @Deprecated
50 | public interface HeaderElement {
51 |
52 | String getName();
53 |
54 | String getValue();
55 |
56 | NameValuePair[] getParameters();
57 |
58 | NameValuePair getParameterByName(String name);
59 |
60 | int getParameterCount();
61 |
62 | NameValuePair getParameter(int index);
63 | }
64 |
65 |
--------------------------------------------------------------------------------
/src/org/apache/http/StatusLine.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/StatusLine.java $
3 | * $Revision: 573864 $
4 | * $Date: 2007-09-08 08:53:25 -0700 (Sat, 08 Sep 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | /**
35 | * Represents a status line as returned from a HTTP server.
36 | * See RFC2616,
37 | * section 6.1.
38 | * Implementations are expected to be thread safe.
39 | *
40 | * @see HttpStatus
41 | * @author Jeff Dever
42 | * @author Mike Bowler
43 | * @version $Id: StatusLine.java 573864 2007-09-08 15:53:25Z rolandw $
44 | *
45 | * @since 4.0
46 | *
47 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
48 | * Please visit this webpage
49 | * for further details.
50 | */
51 | @Deprecated
52 | public interface StatusLine {
53 |
54 | ProtocolVersion getProtocolVersion();
55 |
56 | int getStatusCode();
57 |
58 | String getReasonPhrase();
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/src/org/apache/http/conn/params/ConnPerRoute.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/params/ConnPerRoute.java $
3 | * $Revision: 651813 $
4 | * $Date: 2008-04-26 03:43:34 -0700 (Sat, 26 Apr 2008) $
5 | *
6 | * ====================================================================
7 | *
8 | * Licensed to the Apache Software Foundation (ASF) under one or more
9 | * contributor license agreements. See the NOTICE file distributed with
10 | * this work for additional information regarding copyright ownership.
11 | * The ASF licenses this file to You under the Apache License, Version 2.0
12 | * (the "License"); you may not use this file except in compliance with
13 | * the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | * ====================================================================
23 | *
24 | * This software consists of voluntary contributions made by many
25 | * individuals on behalf of the Apache Software Foundation. For more
26 | * information on the Apache Software Foundation, please see
27 | * .
28 | *
29 | */
30 |
31 | package org.apache.http.conn.params;
32 |
33 | import org.apache.http.conn.routing.HttpRoute;
34 |
35 | /**
36 | * This interface is intended for looking up maximum number of connections
37 | * allowed for for a given route. This class can be used by pooling
38 | * {@link org.apache.http.conn.ClientConnectionManager connection managers} for
39 | * a fine-grained control of connections on a per route basis.
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @version $Revision: 651813 $
44 | *
45 | * @since 4.0
46 | *
47 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
48 | * Please visit this webpage
49 | * for further details.
50 | */
51 | @Deprecated
52 | public interface ConnPerRoute {
53 |
54 | int getMaxForRoute(HttpRoute route);
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/cookie/AbstractCookieAttributeHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/AbstractCookieAttributeHandler.java $
3 | * $Revision: 503525 $
4 | * $Date: 2007-02-04 17:15:08 -0800 (Sun, 04 Feb 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 | package org.apache.http.impl.cookie;
32 |
33 | import org.apache.http.cookie.Cookie;
34 | import org.apache.http.cookie.CookieAttributeHandler;
35 | import org.apache.http.cookie.CookieOrigin;
36 | import org.apache.http.cookie.MalformedCookieException;
37 | /**
38 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
39 | * Please visit this webpage
40 | * for further details.
41 | */
42 |
43 | @Deprecated
44 | public abstract class AbstractCookieAttributeHandler implements CookieAttributeHandler {
45 |
46 | public void validate(final Cookie cookie, final CookieOrigin origin)
47 | throws MalformedCookieException {
48 | // Do nothing
49 | }
50 |
51 | public boolean match(final Cookie cookie, final CookieOrigin origin) {
52 | // Always match
53 | return true;
54 | }
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/src/org/apache/http/ConnectionClosedException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/ConnectionClosedException.java $
3 | * $Revision: 618017 $
4 | * $Date: 2008-02-03 08:42:22 -0800 (Sun, 03 Feb 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | import java.io.IOException;
35 |
36 | /**
37 | * Indicates that a connection has been closed.
38 | *
39 | * @author Oleg Kalnichevski
40 | *
41 | * @version $Revision: 618017 $
42 | *
43 | * @since 4.0
44 | *
45 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
46 | * Please visit this webpage
47 | * for further details.
48 | */
49 | @Deprecated
50 | public class ConnectionClosedException extends IOException {
51 |
52 | private static final long serialVersionUID = 617550366255636674L;
53 |
54 | /**
55 | * Creates a new ConnectionClosedException with the specified detail message.
56 | *
57 | * @param message The exception detail message
58 | */
59 | public ConnectionClosedException(final String message) {
60 | super(message);
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/src/org/apache/http/NoHttpResponseException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/NoHttpResponseException.java $
3 | * $Revision: 618017 $
4 | * $Date: 2008-02-03 08:42:22 -0800 (Sun, 03 Feb 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | import java.io.IOException;
35 |
36 | /**
37 | *
38 | * Signals that the target server failed to respond with a valid HTTP response.
39 | *
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @version $Revision: 618017 $
44 | *
45 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
46 | * Please visit this webpage
47 | * for further details.
48 | */
49 | @Deprecated
50 | public class NoHttpResponseException extends IOException {
51 |
52 | private static final long serialVersionUID = -7658940387386078766L;
53 |
54 | /**
55 | * Creates a new NoHttpResponseException with the specified detail message.
56 | *
57 | * @param message exception message
58 | */
59 | public NoHttpResponseException(String message) {
60 | super(message);
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/src/org/apache/http/auth/params/AuthPNames.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/params/AuthPNames.java $
3 | * $Revision: 578403 $
4 | * $Date: 2007-09-22 03:56:04 -0700 (Sat, 22 Sep 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.auth.params;
33 |
34 | /**
35 | * Parameter names for HttpAuth.
36 | *
37 | * @version $Revision: 578403 $
38 | *
39 | * @since 4.0
40 | *
41 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
42 | * Please visit this webpage
43 | * for further details.
44 | */
45 | @Deprecated
46 | public interface AuthPNames {
47 |
48 | /**
49 | * Defines the charset to be used when encoding
50 | * {@link org.apache.http.auth.Credentials}.
51 | *
52 | * This parameter expects a value of type {@link String}.
53 | * If not defined, then
54 | * {@link org.apache.http.params.CoreProtocolPNames#HTTP_ELEMENT_CHARSET
55 | * HttpProtocolParams.HTTP_ELEMENT_CHARSET}
56 | * should be used.
57 | *
58 | */
59 | public static final String CREDENTIAL_CHARSET = "http.auth.credential-charset";
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/src/org/apache/http/entity/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | Representations for HTTP message entities.
38 |
39 | An {@link org.apache.http.HttpEntity entity} is the optional content of a
40 | {@link org.apache.http.HttpMessage message}.
41 | You'll find a basic selection of entity implementations here.
42 | If you need to send an entity, you can provide it for example as a
43 | {@link org.apache.http.entity.ByteArrayEntity byte array},
44 | {@link org.apache.http.entity.StringEntity string},
45 | {@link org.apache.http.entity.FileEntity file}, or through an arbitrary
46 | {@link org.apache.http.entity.InputStreamEntity input stream}.
47 | If you receive a message with an entity, you typically get that as a
48 | {@link org.apache.http.entity.BasicHttpEntity basic} entity.
49 | Entity implementations can be
50 | {@link org.apache.http.entity.HttpEntityWrapper wrapped},
51 | for example to
52 | {@link org.apache.http.entity.BufferedHttpEntity buffer}
53 | the content in memory.
54 |
55 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/src/org/apache/http/cookie/params/CookieSpecParamBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/params/CookieSpecParamBean.java $
3 | * $Revision: 632313 $
4 | * $Date: 2008-02-29 05:19:50 -0800 (Fri, 29 Feb 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.cookie.params;
33 |
34 | import java.util.Collection;
35 |
36 | import org.apache.http.params.HttpAbstractParamBean;
37 | import org.apache.http.params.HttpParams;
38 | /**
39 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
40 | * Please visit this webpage
41 | * for further details.
42 | */
43 |
44 | @Deprecated
45 | public class CookieSpecParamBean extends HttpAbstractParamBean {
46 |
47 | public CookieSpecParamBean (final HttpParams params) {
48 | super(params);
49 | }
50 |
51 | public void setDatePatterns (final Collection patterns) {
52 | params.setParameter(CookieSpecPNames.DATE_PATTERNS, patterns);
53 | }
54 |
55 | public void setSingleHeader (final boolean singleHeader) {
56 | params.setBooleanParameter(CookieSpecPNames.SINGLE_COOKIE_HEADER, singleHeader);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/src/org/apache/http/MalformedChunkCodingException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/MalformedChunkCodingException.java $
3 | * $Revision: 609106 $
4 | * $Date: 2008-01-05 01:15:42 -0800 (Sat, 05 Jan 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | import java.io.IOException;
35 |
36 | /**
37 | * Signals a malformed chunked stream.
38 | *
39 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
40 | * Please visit this webpage
41 | * for further details.
42 | */
43 | @Deprecated
44 | public class MalformedChunkCodingException extends IOException {
45 |
46 | private static final long serialVersionUID = 2158560246948994524L;
47 |
48 | /**
49 | * Creates a MalformedChunkCodingException without a detail message.
50 | */
51 | public MalformedChunkCodingException() {
52 | super();
53 | }
54 |
55 | /**
56 | * Creates a MalformedChunkCodingException with the specified detail message.
57 | *
58 | * @param message The exception detail message
59 | */
60 | public MalformedChunkCodingException(final String message) {
61 | super(message);
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/org/apache/http/protocol/ExecutionContext.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/ExecutionContext.java $
3 | * $Revision: 558154 $
4 | * $Date: 2007-07-20 14:29:02 -0700 (Fri, 20 Jul 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.protocol;
33 |
34 | /**
35 | * {@link HttpContext Context} attribute names for protocol execution.
36 | *
37 | * @author Oleg Kalnichevski
38 | *
39 | * @version $Revision: 558154 $
40 | *
41 | * @since 4.0
42 | *
43 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
44 | * Please visit this webpage
45 | * for further details.
46 | */
47 | @Deprecated
48 | public interface ExecutionContext {
49 |
50 | public static final String HTTP_CONNECTION = "http.connection";
51 | public static final String HTTP_REQUEST = "http.request";
52 | public static final String HTTP_RESPONSE = "http.response";
53 | public static final String HTTP_TARGET_HOST = "http.target_host";
54 | public static final String HTTP_PROXY_HOST = "http.proxy_host";
55 | public static final String HTTP_REQ_SENT = "http.request_sent";
56 |
57 | }
58 |
--------------------------------------------------------------------------------
/src/org/apache/http/conn/HttpHostConnectException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/HttpHostConnectException.java $
3 | * $Revision: 652020 $
4 | * $Date: 2008-04-27 14:23:31 -0700 (Sun, 27 Apr 2008) $
5 | *
6 | * ====================================================================
7 | *
8 | * Licensed to the Apache Software Foundation (ASF) under one or more
9 | * contributor license agreements. See the NOTICE file distributed with
10 | * this work for additional information regarding copyright ownership.
11 | * The ASF licenses this file to You under the Apache License, Version 2.0
12 | * (the "License"); you may not use this file except in compliance with
13 | * the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | * ====================================================================
23 | *
24 | * This software consists of voluntary contributions made by many
25 | * individuals on behalf of the Apache Software Foundation. For more
26 | * information on the Apache Software Foundation, please see
27 | * .
28 | *
29 | */
30 |
31 | package org.apache.http.conn;
32 |
33 | import java.net.ConnectException;
34 |
35 | import org.apache.http.HttpHost;
36 |
37 | /**
38 | * A {@link ConnectException} that specifies the {@link HttpHost} that was
39 | * being connected to.
40 | *
41 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
42 | * Please visit this webpage
43 | * for further details.
44 | */
45 | @Deprecated
46 | public class HttpHostConnectException extends ConnectException {
47 |
48 | private static final long serialVersionUID = -3194482710275220224L;
49 |
50 | private final HttpHost host;
51 |
52 | public HttpHostConnectException(final HttpHost host, final ConnectException cause) {
53 | super("Connection to " + host + " refused");
54 | this.host = host;
55 | initCause(cause);
56 | }
57 |
58 | public HttpHost getHost() {
59 | return this.host;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/src/org/apache/http/HeaderIterator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HeaderIterator.java $
3 | * $Revision: 581981 $
4 | * $Date: 2007-10-04 11:26:26 -0700 (Thu, 04 Oct 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 |
35 | import java.util.Iterator;
36 |
37 |
38 | /**
39 | * A type-safe iterator for {@link Header Header} objects.
40 | *
41 | * @version $Revision: 581981 $
42 | *
43 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
44 | * Please visit this webpage
45 | * for further details.
46 | */
47 | @Deprecated
48 | public interface HeaderIterator extends Iterator {
49 |
50 | /**
51 | * Indicates whether there is another header in this iteration.
52 | *
53 | * @return true if there is another header,
54 | * false otherwise
55 | */
56 | boolean hasNext()
57 | ;
58 |
59 |
60 | /**
61 | * Obtains the next header from this iteration.
62 | * This method should only be called while {@link #hasNext hasNext}
63 | * is true.
64 | *
65 | * @return the next header in this iteration
66 | */
67 | Header nextHeader()
68 | ;
69 | }
70 |
--------------------------------------------------------------------------------
/src/org/apache/http/client/params/AuthPolicy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/params/AuthPolicy.java $
3 | * $Revision: 534839 $
4 | * $Date: 2007-05-03 06:03:41 -0700 (Thu, 03 May 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.client.params;
33 | /**
34 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
35 | * Please visit this webpage
36 | * for further details.
37 | */
38 |
39 | @Deprecated
40 | public final class AuthPolicy {
41 |
42 | private AuthPolicy() {
43 | super();
44 | }
45 |
46 | /**
47 | * The NTLM scheme is a proprietary Microsoft Windows Authentication
48 | * protocol (considered to be the most secure among currently supported
49 | * authentication schemes).
50 | */
51 | public static final String NTLM = "NTLM";
52 |
53 | /**
54 | * Digest authentication scheme as defined in RFC2617.
55 | */
56 | public static final String DIGEST = "Digest";
57 |
58 | /**
59 | * Basic authentication scheme as defined in RFC2617 (considered inherently
60 | * insecure, but most widely supported)
61 | */
62 | public static final String BASIC = "Basic";
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/cookie/BrowserCompatSpecFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecFactory.java $
3 | * $Revision: 576068 $
4 | * $Date: 2007-09-16 03:25:01 -0700 (Sun, 16 Sep 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.impl.cookie;
33 |
34 | import org.apache.http.cookie.CookieSpec;
35 | import org.apache.http.cookie.CookieSpecFactory;
36 | import org.apache.http.cookie.params.CookieSpecPNames;
37 | import org.apache.http.params.HttpParams;
38 |
39 | /**
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @since 4.0
44 | *
45 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
46 | * Please visit this webpage
47 | * for further details.
48 | */
49 | @Deprecated
50 | public class BrowserCompatSpecFactory implements CookieSpecFactory {
51 |
52 | public CookieSpec newInstance(final HttpParams params) {
53 | if (params != null) {
54 | return new BrowserCompatSpec(
55 | (String []) params.getParameter(CookieSpecPNames.DATE_PATTERNS));
56 | } else {
57 | return new BrowserCompatSpec();
58 | }
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/cookie/NetscapeDraftSpecFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecFactory.java $
3 | * $Revision: 657334 $
4 | * $Date: 2008-05-17 04:44:16 -0700 (Sat, 17 May 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.impl.cookie;
33 |
34 | import org.apache.http.cookie.CookieSpec;
35 | import org.apache.http.cookie.CookieSpecFactory;
36 | import org.apache.http.cookie.params.CookieSpecPNames;
37 | import org.apache.http.params.HttpParams;
38 |
39 | /**
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @since 4.0
44 | *
45 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
46 | * Please visit this webpage
47 | * for further details.
48 | */
49 | @Deprecated
50 | public class NetscapeDraftSpecFactory implements CookieSpecFactory {
51 |
52 | public CookieSpec newInstance(final HttpParams params) {
53 | if (params != null) {
54 | return new NetscapeDraftSpec(
55 | (String []) params.getParameter(CookieSpecPNames.DATE_PATTERNS));
56 | } else {
57 | return new NetscapeDraftSpec();
58 | }
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/src/org/apache/http/io/SessionOutputBuffer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/io/SessionOutputBuffer.java $
3 | * $Revision: 560528 $
4 | * $Date: 2007-07-28 04:34:17 -0700 (Sat, 28 Jul 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.io;
33 |
34 | import java.io.IOException;
35 |
36 | import org.apache.http.util.CharArrayBuffer;
37 |
38 | /**
39 | * Session output buffer for blocking connections.
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @version $Revision: 560528 $
44 | *
45 | * @since 4.0
46 | *
47 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
48 | * Please visit this webpage
49 | * for further details.
50 | */
51 | @Deprecated
52 | public interface SessionOutputBuffer {
53 |
54 | void write(byte[] b, int off, int len) throws IOException;
55 |
56 | void write(byte[] b) throws IOException;
57 |
58 | void write(int b) throws IOException;
59 |
60 | void writeLine(String s) throws IOException;
61 |
62 | void writeLine(CharArrayBuffer buffer) throws IOException;
63 |
64 | void flush() throws IOException;
65 |
66 | HttpTransportMetrics getMetrics();
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/src/org/apache/http/HttpEntityEnclosingRequest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $Header: $
3 | * $Revision: 618017 $
4 | * $Date: 2008-02-03 08:42:22 -0800 (Sun, 03 Feb 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | /**
35 | * A request with an entity.
36 | *
37 | * @author Oleg Kalnichevski
38 | *
39 | * @version $Revision: 618017 $
40 | *
41 | * @since 4.0
42 | *
43 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
44 | * Please visit this webpage
45 | * for further details.
46 | */
47 | @Deprecated
48 | public interface HttpEntityEnclosingRequest extends HttpRequest {
49 |
50 | /**
51 | * Tells if this request should use the expect-continue handshake.
52 | * The expect continue handshake gives the server a chance to decide
53 | * whether to accept the entity enclosing request before the possibly
54 | * lengthy entity is sent across the wire.
55 | * @return true if the expect continue handshake should be used, false if
56 | * not.
57 | */
58 | boolean expectContinue();
59 |
60 | /**
61 | * Hands the entity to the request.
62 | * @param entity the entity to send.
63 | */
64 | void setEntity(HttpEntity entity);
65 |
66 | HttpEntity getEntity();
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/src/org/apache/http/io/SessionInputBuffer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/io/SessionInputBuffer.java $
3 | * $Revision: 560528 $
4 | * $Date: 2007-07-28 04:34:17 -0700 (Sat, 28 Jul 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.io;
33 |
34 | import java.io.IOException;
35 |
36 | import org.apache.http.util.CharArrayBuffer;
37 |
38 | /**
39 | * Session input buffer for blocking connections.
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @version $Revision: 560528 $
44 | *
45 | * @since 4.0
46 | *
47 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
48 | * Please visit this webpage
49 | * for further details.
50 | */
51 | @Deprecated
52 | public interface SessionInputBuffer {
53 |
54 | int read(byte[] b, int off, int len) throws IOException;
55 |
56 | int read(byte[] b) throws IOException;
57 |
58 | int read() throws IOException;
59 |
60 | int readLine(CharArrayBuffer buffer) throws IOException;
61 |
62 | String readLine() throws IOException;
63 |
64 | boolean isDataAvailable(int timeout) throws IOException;
65 |
66 | HttpTransportMetrics getMetrics();
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/io/HttpTransportMetricsImpl.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/io/HttpTransportMetricsImpl.java $
3 | * $Revision: 539755 $
4 | * $Date: 2007-05-19 07:05:02 -0700 (Sat, 19 May 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.impl.io;
33 |
34 | import org.apache.http.io.HttpTransportMetrics;
35 |
36 | /**
37 | * Default implementation of {@link HttpTransportMetrics}.
38 | *
39 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
40 | * Please visit this webpage
41 | * for further details.
42 | */
43 | @Deprecated
44 | public class HttpTransportMetricsImpl implements HttpTransportMetrics {
45 |
46 | private long bytesTransferred = 0;
47 |
48 | public HttpTransportMetricsImpl() {
49 | super();
50 | }
51 |
52 | public long getBytesTransferred() {
53 | return this.bytesTransferred;
54 | }
55 |
56 | public void setBytesTransferred(long count) {
57 | this.bytesTransferred = count;
58 | }
59 |
60 | public void incrementBytesTransferred(long count) {
61 | this.bytesTransferred += count;
62 | }
63 |
64 | public void reset() {
65 | this.bytesTransferred = 0;
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/src/org/apache/http/protocol/HttpContext.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpContext.java $
3 | * $Revision: 558111 $
4 | * $Date: 2007-07-20 13:01:50 -0700 (Fri, 20 Jul 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.protocol;
33 |
34 | /**
35 | * A context for executing a request.
36 | * The context is used to tie together the request, the response,
37 | * and optional application data. It is also used for internal data.
38 | * Attribute names starting with the prefix "http." are
39 | * {@link #RESERVED_PREFIX reserved} for internal data.
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @version $Revision: 558111 $
44 | *
45 | * @since 4.0
46 | *
47 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
48 | * Please visit this webpage
49 | * for further details.
50 | */
51 | @Deprecated
52 | public interface HttpContext {
53 |
54 | /** The prefix reserved for use by HTTP components. "http." */
55 | public static final String RESERVED_PREFIX = "http.";
56 |
57 | Object getAttribute(String id);
58 |
59 | void setAttribute(String id, Object obj);
60 |
61 | Object removeAttribute(String id);
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/src/org/apache/http/conn/params/ConnConnectionParamBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/params/ConnConnectionParamBean.java $
3 | * $Revision: 652020 $
4 | * $Date: 2008-04-27 14:23:31 -0700 (Sun, 27 Apr 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.conn.params;
33 |
34 | import org.apache.http.params.HttpAbstractParamBean;
35 | import org.apache.http.params.HttpParams;
36 |
37 | /**
38 | * Allows for setting parameters relating to connections on
39 | * {@link HttpParams}. This class ensures that the values set on the params
40 | * are type-safe.
41 | *
42 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
43 | * Please visit this webpage
44 | * for further details.
45 | */
46 | @Deprecated
47 | public class ConnConnectionParamBean extends HttpAbstractParamBean {
48 |
49 | public ConnConnectionParamBean (final HttpParams params) {
50 | super(params);
51 | }
52 |
53 | /**
54 | * @see ConnConnectionPNames#MAX_STATUS_LINE_GARBAGE
55 | */
56 | public void setMaxStatusLineGarbage (final int maxStatusLineGarbage) {
57 | params.setIntParameter(ConnConnectionPNames.MAX_STATUS_LINE_GARBAGE, maxStatusLineGarbage);
58 | }
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/src/org/apache/http/HeaderElementIterator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HeaderElementIterator.java $
3 | * $Revision: 584542 $
4 | * $Date: 2007-10-14 06:29:34 -0700 (Sun, 14 Oct 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | import java.util.Iterator;
35 |
36 | /**
37 | * A type-safe iterator for {@link HeaderElement HeaderElement} objects.
38 | *
39 | * @version $Revision: 584542 $
40 | *
41 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
42 | * Please visit this webpage
43 | * for further details.
44 | */
45 | @Deprecated
46 | public interface HeaderElementIterator extends Iterator {
47 |
48 | /**
49 | * Indicates whether there is another header element in this
50 | * iteration.
51 | *
52 | * @return true if there is another header element,
53 | * false otherwise
54 | */
55 | boolean hasNext();
56 |
57 | /**
58 | * Obtains the next header element from this iteration.
59 | * This method should only be called while {@link #hasNext hasNext}
60 | * is true.
61 | *
62 | * @return the next header element in this iteration
63 | */
64 | HeaderElement nextElement();
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/src/org/apache/http/conn/routing/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
35 |
36 |
37 | The client-side route representation and tracking API, part of HttpConn.
38 |
39 |
40 | An {@link org.apache.http.conn.routing.HttpRoute HttpRoute}
41 | is the path along which a request has to be sent to the server.
42 | The route starts at a local network address and may pass
43 | through one or more proxies before reaching the target.
44 | Routes through proxies can be tunnelled, and a layered protocol (TLS/SSL)
45 | might be put on top of the tunnel.
46 | The {@link org.apache.http.conn.routing.RouteTracker RouteTracker}
47 | helps in tracking the steps for establishing a route, while an
48 | {@link org.apache.http.conn.routing.HttpRouteDirector HttpRouteDirector}
49 | determines the next step to take.
50 |
51 |
52 |
53 |
54 | The {@link org.apache.http.conn.routing.HttpRoutePlanner HttpRoutePlanner}
55 | is responsible for determining a route to a given target host.
56 | Implementations must know about proxies to use, and about exemptions
57 | for hosts that should be contacted directly without a proxy.
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/src/org/apache/http/protocol/SyncBasicHttpContext.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/SyncBasicHttpContext.java $
3 | * $Revision: 613298 $
4 | * $Date: 2008-01-18 14:09:22 -0800 (Fri, 18 Jan 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.protocol;
33 |
34 | /**
35 | * Thread-safe extension of the {@link BasicHttpContext}.
36 | *
37 | * @author Oleg Kalnichevski
38 | *
39 | * @version $Revision: 613298 $
40 | *
41 | * @since 4.0
42 | *
43 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
44 | * Please visit this webpage
45 | * for further details.
46 | */
47 | @Deprecated
48 | public class SyncBasicHttpContext extends BasicHttpContext {
49 |
50 | public SyncBasicHttpContext(final HttpContext parentContext) {
51 | super(parentContext);
52 | }
53 |
54 | public synchronized Object getAttribute(final String id) {
55 | return super.getAttribute(id);
56 | }
57 |
58 | public synchronized void setAttribute(final String id, final Object obj) {
59 | super.setAttribute(id, obj);
60 | }
61 |
62 | public synchronized Object removeAttribute(final String id) {
63 | return super.removeAttribute(id);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/cookie/RFC2109SpecFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/RFC2109SpecFactory.java $
3 | * $Revision: 576068 $
4 | * $Date: 2007-09-16 03:25:01 -0700 (Sun, 16 Sep 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.impl.cookie;
33 |
34 | import org.apache.http.cookie.CookieSpec;
35 | import org.apache.http.cookie.CookieSpecFactory;
36 | import org.apache.http.cookie.params.CookieSpecPNames;
37 | import org.apache.http.params.HttpParams;
38 |
39 | /**
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @since 4.0
44 | *
45 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
46 | * Please visit this webpage
47 | * for further details.
48 | */
49 | @Deprecated
50 | public class RFC2109SpecFactory implements CookieSpecFactory {
51 |
52 | public CookieSpec newInstance(final HttpParams params) {
53 | if (params != null) {
54 | return new RFC2109Spec(
55 | (String []) params.getParameter(CookieSpecPNames.DATE_PATTERNS),
56 | params.getBooleanParameter(CookieSpecPNames.SINGLE_COOKIE_HEADER, false));
57 | } else {
58 | return new RFC2109Spec();
59 | }
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/cookie/RFC2965SpecFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/RFC2965SpecFactory.java $
3 | * $Revision: 581953 $
4 | * $Date: 2007-10-04 08:53:50 -0700 (Thu, 04 Oct 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.impl.cookie;
33 |
34 | import org.apache.http.cookie.CookieSpec;
35 | import org.apache.http.cookie.CookieSpecFactory;
36 | import org.apache.http.cookie.params.CookieSpecPNames;
37 | import org.apache.http.params.HttpParams;
38 |
39 | /**
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @since 4.0
44 | *
45 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
46 | * Please visit this webpage
47 | * for further details.
48 | */
49 | @Deprecated
50 | public class RFC2965SpecFactory implements CookieSpecFactory {
51 |
52 | public CookieSpec newInstance(final HttpParams params) {
53 | if (params != null) {
54 | return new RFC2965Spec(
55 | (String []) params.getParameter(CookieSpecPNames.DATE_PATTERNS),
56 | params.getBooleanParameter(CookieSpecPNames.SINGLE_COOKIE_HEADER, false));
57 | } else {
58 | return new RFC2965Spec();
59 | }
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/src/org/apache/http/auth/AUTH.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/AUTH.java $
3 | * $Revision: 618365 $
4 | * $Date: 2008-02-04 10:20:08 -0800 (Mon, 04 Feb 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.auth;
33 |
34 | /**
35 | * Constants and static helpers related to the HTTP authentication.
36 | *
37 | * @author Oleg Kalnichevski
38 | *
39 | * @since 4.0
40 | *
41 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
42 | * Please visit this webpage
43 | * for further details.
44 | */
45 | @Deprecated
46 | public final class AUTH {
47 |
48 | /**
49 | * The www authenticate challange header.
50 | */
51 | public static final String WWW_AUTH = "WWW-Authenticate";
52 |
53 | /**
54 | * The www authenticate response header.
55 | */
56 | public static final String WWW_AUTH_RESP = "Authorization";
57 |
58 | /**
59 | * The proxy authenticate challange header.
60 | */
61 | public static final String PROXY_AUTH = "Proxy-Authenticate";
62 |
63 | /**
64 | * The proxy authenticate response header.
65 | */
66 | public static final String PROXY_AUTH_RESP = "Proxy-Authorization";
67 |
68 | private AUTH() {
69 | }
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/src/org/apache/http/impl/cookie/BestMatchSpecFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/cookie/BestMatchSpecFactory.java $
3 | * $Revision: 613707 $
4 | * $Date: 2008-01-20 16:28:37 -0800 (Sun, 20 Jan 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.impl.cookie;
33 |
34 | import org.apache.http.cookie.CookieSpec;
35 | import org.apache.http.cookie.CookieSpecFactory;
36 | import org.apache.http.cookie.params.CookieSpecPNames;
37 | import org.apache.http.params.HttpParams;
38 |
39 | /**
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @since 4.0
44 | *
45 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
46 | * Please visit this webpage
47 | * for further details.
48 | */
49 | @Deprecated
50 | public class BestMatchSpecFactory implements CookieSpecFactory {
51 |
52 | public CookieSpec newInstance(final HttpParams params) {
53 | if (params != null) {
54 | return new BestMatchSpec(
55 | (String []) params.getParameter(CookieSpecPNames.DATE_PATTERNS),
56 | params.getBooleanParameter(CookieSpecPNames.SINGLE_COOKIE_HEADER, false));
57 | } else {
58 | return new BestMatchSpec();
59 | }
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/src/org/apache/http/protocol/HttpProcessor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpProcessor.java $
3 | * $Revision: 496070 $
4 | * $Date: 2007-01-14 04:18:34 -0800 (Sun, 14 Jan 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.protocol;
33 |
34 | import org.apache.http.HttpRequestInterceptor;
35 | import org.apache.http.HttpResponseInterceptor;
36 |
37 | /**
38 | * Performs interceptor processing of requests and responses.
39 | * Specific interceptors typically interpret or update message headers,
40 | * and they may wrap the message entity for example to implement a
41 | * specific transport or content encoding.
42 | * A HttpProcessor typically maintains a list of
43 | * interceptors that will be applied to a request or response.
44 | *
45 | * @author Oleg Kalnichevski
46 | * @author Roland Weber
47 | *
48 | * @version $Revision: 496070 $
49 | *
50 | * @since 4.0
51 | *
52 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
53 | * Please visit this webpage
54 | * for further details.
55 | */
56 | @Deprecated
57 | public interface HttpProcessor
58 | extends HttpRequestInterceptor, HttpResponseInterceptor {
59 |
60 | // no additional methods
61 | }
62 |
--------------------------------------------------------------------------------
/src/org/apache/http/ReasonPhraseCatalog.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/ReasonPhraseCatalog.java $
3 | * $Revision: 505744 $
4 | * $Date: 2007-02-10 10:58:45 -0800 (Sat, 10 Feb 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | import java.util.Locale;
35 |
36 |
37 | /**
38 | * Interface for obtaining reason phrases for HTTP status codes.
39 | *
40 | * @author Roland Weber
41 | *
42 | *
43 | *
44 | * @version $Revision: 505744 $
45 | *
46 | * @since 4.0
47 | *
48 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
49 | * Please visit this webpage
50 | * for further details.
51 | */
52 | @Deprecated
53 | public interface ReasonPhraseCatalog {
54 |
55 | /**
56 | * Obtains the reason phrase for a status code.
57 | * The optional context allows for catalogs that detect
58 | * the language for the reason phrase.
59 | *
60 | * @param status the status code, in the range 100-599
61 | * @param loc the preferred locale for the reason phrase
62 | *
63 | * @return the reason phrase, or null if unknown
64 | */
65 | public String getReason(int status, Locale loc)
66 | ;
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/src/org/apache/http/conn/ConnectionPoolTimeoutException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/ConnectionPoolTimeoutException.java $
3 | * $Revision: 505684 $
4 | * $Date: 2007-02-10 04:40:02 -0800 (Sat, 10 Feb 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.conn;
33 |
34 | /**
35 | * A timeout while waiting for an available connection
36 | * from a connection manager.
37 | *
38 | * @author Laura Werner
39 | *
40 | * @since 4.0
41 | *
42 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
43 | * Please visit this webpage
44 | * for further details.
45 | */
46 | @Deprecated
47 | public class ConnectionPoolTimeoutException extends ConnectTimeoutException {
48 |
49 | private static final long serialVersionUID = -7898874842020245128L;
50 |
51 | /**
52 | * Creates a ConnectTimeoutException with a null detail message.
53 | */
54 | public ConnectionPoolTimeoutException() {
55 | super();
56 | }
57 |
58 | /**
59 | * Creates a ConnectTimeoutException with the specified detail message.
60 | *
61 | * @param message The exception detail message
62 | */
63 | public ConnectionPoolTimeoutException(String message) {
64 | super(message);
65 | }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/src/org/apache/http/UnsupportedHttpVersionException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL:https://svn.apache.org/repos/asf/jakarta/httpcomponents/trunk/coyote-httpconnector/src/java/org/apache/http/tcconnector/UnsupportedHttpVersionException.java $
3 | * $Revision:379772 $
4 | * $Date:2006-02-22 14:52:29 +0100 (Wed, 22 Feb 2006) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 | import org.apache.http.ProtocolException;
35 |
36 | /**
37 | * Indicates an unsupported version of the HTTP protocol.
38 | *
39 | * @author Oleg Kalnichevski
40 | *
41 | * @version $Revision:379772 $
42 | *
43 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
44 | * Please visit this webpage
45 | * for further details.
46 | */
47 | @Deprecated
48 | public class UnsupportedHttpVersionException extends ProtocolException {
49 |
50 | private static final long serialVersionUID = -1348448090193107031L;
51 |
52 |
53 | /**
54 | * Creates an exception without a detail message.
55 | */
56 | public UnsupportedHttpVersionException() {
57 | super();
58 | }
59 |
60 | /**
61 | * Creates an exception with the specified detail message.
62 | *
63 | * @param message The exception detail message
64 | */
65 | public UnsupportedHttpVersionException(final String message) {
66 | super(message);
67 | }
68 |
69 | }
70 |
--------------------------------------------------------------------------------
/src/org/apache/http/client/ResponseHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/ResponseHandler.java $
3 | * $Revision: 677240 $
4 | * $Date: 2008-07-16 04:25:47 -0700 (Wed, 16 Jul 2008) $
5 | *
6 | * ====================================================================
7 | *
8 | * Licensed to the Apache Software Foundation (ASF) under one or more
9 | * contributor license agreements. See the NOTICE file distributed with
10 | * this work for additional information regarding copyright ownership.
11 | * The ASF licenses this file to You under the Apache License, Version 2.0
12 | * (the "License"); you may not use this file except in compliance with
13 | * the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | * ====================================================================
23 | *
24 | * This software consists of voluntary contributions made by many
25 | * individuals on behalf of the Apache Software Foundation. For more
26 | * information on the Apache Software Foundation, please see
27 | * .
28 | *
29 | */
30 |
31 | package org.apache.http.client;
32 |
33 | import java.io.IOException;
34 |
35 | import org.apache.http.HttpResponse;
36 |
37 | /**
38 | * Handler that encapsulates the process of generating a response object
39 | * from a {@link HttpResponse}.
40 | *
41 | * @author Oleg Kalnichevski
42 | *
43 | * @since 4.0
44 | *
45 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
46 | * Please visit this webpage
47 | * for further details.
48 | */
49 | @Deprecated
50 | public interface ResponseHandler {
51 |
52 | /**
53 | * Processes an {@link HttpResponse} and returns some value
54 | * corresponding to that response.
55 | *
56 | * @param response The response to process
57 | * @return A value determined by the response
58 | *
59 | * @throws ClientProtocolException in case of an http protocol error
60 | * @throws IOException in case of a problem or the connection was aborted
61 | */
62 | T handleResponse(HttpResponse response) throws ClientProtocolException, IOException;
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/CleanSpec.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2007 The Android Open Source Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 | #
15 |
16 | # If you don't need to do a full clean build but would like to touch
17 | # a file or delete some intermediate files, add a clean step to the end
18 | # of the list. These steps will only be run once, if they haven't been
19 | # run before.
20 | #
21 | # E.g.:
22 | # $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
23 | # $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
24 | #
25 | # Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
26 | # files that are missing or have been moved.
27 | #
28 | # Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
29 | # Use $(OUT_DIR) to refer to the "out" directory.
30 | #
31 | # If you need to re-do something that's already mentioned, just copy
32 | # the command and add it to the bottom of the list. E.g., if a change
33 | # that you made last week required touching a file and a change you
34 | # made today requires touching the same file, just copy the old
35 | # touch step and add it to the end of the list.
36 | #
37 | # ************************************************
38 | # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
39 | # ************************************************
40 |
41 | # For example:
42 | #$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
43 | #$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
44 | #$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
45 | #$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
46 |
47 | # ************************************************
48 | # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
49 | # ************************************************
50 | $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy_intermediates)
51 | $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/apache-http-stubs_intermediates)
52 |
53 | # runtime lib is renamed from *.boot to *.impl
54 | $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/framework/org.apache.http.legacy.boot.jar)
55 |
--------------------------------------------------------------------------------
/src/org/apache/http/TokenIterator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/TokenIterator.java $
3 | * $Revision: 601000 $
4 | * $Date: 2007-12-04 09:03:49 -0800 (Tue, 04 Dec 2007) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http;
33 |
34 |
35 | import java.util.Iterator;
36 |
37 |
38 | /**
39 | * An iterator for {@link String} tokens.
40 | * This interface is designed as a complement to
41 | * {@link HeaderElementIterator}, in cases where the items
42 | * are plain strings rather than full header elements.
43 | *
44 | * @version $Revision: 601000 $
45 | *
46 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
47 | * Please visit this webpage
48 | * for further details.
49 | */
50 | @Deprecated
51 | public interface TokenIterator extends Iterator {
52 |
53 | /**
54 | * Indicates whether there is another token in this iteration.
55 | *
56 | * @return true if there is another token,
57 | * false otherwise
58 | */
59 | boolean hasNext()
60 | ;
61 |
62 |
63 | /**
64 | * Obtains the next token from this iteration.
65 | * This method should only be called while {@link #hasNext hasNext}
66 | * is true.
67 | *
68 | * @return the next token in this iteration
69 | */
70 | String nextToken()
71 | ;
72 | }
73 |
--------------------------------------------------------------------------------
/src/org/apache/http/client/params/CookiePolicy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/params/CookiePolicy.java $
3 | * $Revision: 613865 $
4 | * $Date: 2008-01-21 04:04:30 -0800 (Mon, 21 Jan 2008) $
5 | *
6 | * ====================================================================
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | * ====================================================================
24 | *
25 | * This software consists of voluntary contributions made by many
26 | * individuals on behalf of the Apache Software Foundation. For more
27 | * information on the Apache Software Foundation, please see
28 | * .
29 | *
30 | */
31 |
32 | package org.apache.http.client.params;
33 | /**
34 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
35 | * Please visit this webpage
36 | * for further details.
37 | */
38 |
39 | @Deprecated
40 | public final class CookiePolicy {
41 |
42 | /**
43 | * The policy that provides high degree of compatibilty
44 | * with common cookie management of popular HTTP agents.
45 | */
46 | public static final String BROWSER_COMPATIBILITY = "compatibility";
47 |
48 | /**
49 | * The Netscape cookie draft compliant policy.
50 | */
51 | public static final String NETSCAPE = "netscape";
52 |
53 | /**
54 | * The RFC 2109 compliant policy.
55 | */
56 | public static final String RFC_2109 = "rfc2109";
57 |
58 | /**
59 | * The RFC 2965 compliant policy.
60 | */
61 | public static final String RFC_2965 = "rfc2965";
62 |
63 | /**
64 | * The default 'best match' policy.
65 | */
66 | public static final String BEST_MATCH = "best-match";
67 |
68 | private CookiePolicy() {
69 | super();
70 | }
71 |
72 | }
73 |
--------------------------------------------------------------------------------
/src/org/apache/http/client/NonRepeatableRequestException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/NonRepeatableRequestException.java $
3 | * $Revision: 664326 $
4 | * $Date: 2008-06-07 04:48:27 -0700 (Sat, 07 Jun 2008) $
5 | *
6 | * ====================================================================
7 | *
8 | * Licensed to the Apache Software Foundation (ASF) under one or more
9 | * contributor license agreements. See the NOTICE file distributed with
10 | * this work for additional information regarding copyright ownership.
11 | * The ASF licenses this file to You under the Apache License, Version 2.0
12 | * (the "License"); you may not use this file except in compliance with
13 | * the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | * ====================================================================
23 | *
24 | * This software consists of voluntary contributions made by many
25 | * individuals on behalf of the Apache Software Foundation. For more
26 | * information on the Apache Software Foundation, please see
27 | * .
28 | *
29 | */
30 |
31 | package org.apache.http.client;
32 |
33 | import org.apache.http.ProtocolException;
34 |
35 | /**
36 | * Signals failure to retry the request due to non-repeatable request
37 | * entity.
38 | *
39 | * @author Oleg Kalnichevski
40 | *
41 | * @since 4.0
42 | *
43 | * @deprecated Please use {@link java.net.URL#openConnection} instead.
44 | * Please visit this webpage
45 | * for further details.
46 | */
47 | @Deprecated
48 | public class NonRepeatableRequestException extends ProtocolException {
49 |
50 | private static final long serialVersionUID = 82685265288806048L;
51 |
52 | /**
53 | * Creates a new NonRepeatableEntityException with a null detail message.
54 | */
55 | public NonRepeatableRequestException() {
56 | super();
57 | }
58 |
59 | /**
60 | * Creates a new NonRepeatableEntityException with the specified detail message.
61 | *
62 | * @param message The exception detail message
63 | */
64 | public NonRepeatableRequestException(String message) {
65 | super(message);
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------