Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit a120934

Browse files
committed
- Change group ID from com.ning to org.asynchttpclient.
- Update API packages: + com.ning --> org.asynchttpclient + compress package hierarchy to remove now redundant http.client sub-packages. The package changes will occur over multiple commits to avoid a particularly annoying bug in Intellij as well as git rebase -i change renamed files to rm/add thus losing all history.
1 parent 149852a commit a120934

File tree

418 files changed

+1761
-1710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

418 files changed

+1761
-1710
lines changed

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<parent>
5-
<groupId>com.ning</groupId>
5+
<groupId>org.asynchttpclient</groupId>
66
<artifactId>async-http-client-project</artifactId>
77
<version>2.0.0-SNAPSHOT</version>
88
</parent>

api/src/main/java/com/ning/http/client/AsyncCompletionHandler.java renamed to api/src/main/java/org/asynchttpclient/AsyncCompletionHandler.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
* under the License.
1515
*
1616
*/
17-
package com.ning.http.client;
17+
package org.asynchttpclient;
1818

1919
import org.slf4j.Logger;
2020
import org.slf4j.LoggerFactory;
2121

2222
/**
2323
* An {@link AsyncHandler} augmented with an {@link #onCompleted(Response)} convenience method which gets called
2424
* when the {@link Response} processing is finished. This class also implement the {@link ProgressAsyncHandler} callback,
25-
* all doing nothing except returning {@link com.ning.http.client.AsyncHandler.STATE#CONTINUE}
25+
* all doing nothing except returning {@link org.asynchttpclient.AsyncHandler.STATE#CONTINUE}
2626
*
2727
* @param <T> Type of the value that will be returned by the associated {@link java.util.concurrent.Future}
2828
*/
@@ -86,7 +86,7 @@ public void onThrowable(Throwable t) {
8686
* Invoked when the content (a {@link java.io.File}, {@link String} or {@link java.io.FileInputStream} has been fully
8787
* written on the I/O socket.
8888
*
89-
* @return a {@link com.ning.http.client.AsyncHandler.STATE} telling to CONTINUE or ABORT the current processing.
89+
* @return a {@link org.asynchttpclient.AsyncHandler.STATE} telling to CONTINUE or ABORT the current processing.
9090
*/
9191
public STATE onHeaderWriteCompleted() {
9292
return STATE.CONTINUE;
@@ -96,7 +96,7 @@ public STATE onHeaderWriteCompleted() {
9696
* Invoked when the content (a {@link java.io.File}, {@link String} or {@link java.io.FileInputStream} has been fully
9797
* written on the I/O socket.
9898
*
99-
* @return a {@link com.ning.http.client.AsyncHandler.STATE} telling to CONTINUE or ABORT the current processing.
99+
* @return a {@link org.asynchttpclient.AsyncHandler.STATE} telling to CONTINUE or ABORT the current processing.
100100
*/
101101
public STATE onContentWriteCompleted() {
102102
return STATE.CONTINUE;
@@ -108,7 +108,7 @@ public STATE onContentWriteCompleted() {
108108
* @param amount The amount of bytes to transfer.
109109
* @param current The amount of bytes transferred
110110
* @param total The total number of bytes transferred
111-
* @return a {@link com.ning.http.client.AsyncHandler.STATE} telling to CONTINUE or ABORT the current processing.
111+
* @return a {@link org.asynchttpclient.AsyncHandler.STATE} telling to CONTINUE or ABORT the current processing.
112112
*/
113113
public STATE onContentWriteProgress(long amount, long current, long total) {
114114
return STATE.CONTINUE;

api/src/main/java/com/ning/http/client/AsyncCompletionHandlerBase.java renamed to api/src/main/java/org/asynchttpclient/AsyncCompletionHandlerBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* under the License.
1515
*
1616
*/
17-
package com.ning.http.client;
17+
package org.asynchttpclient;
1818

1919
import org.slf4j.Logger;
2020
import org.slf4j.LoggerFactory;

api/src/main/java/com/ning/http/client/AsyncHandler.java renamed to api/src/main/java/org/asynchttpclient/AsyncHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* License for the specific language governing permissions and limitations
1414
* under the License.
1515
*/
16-
package com.ning.http.client;
16+
package org.asynchttpclient;
1717

1818
/**
1919
* An asynchronous handler or callback which gets invoked as soon as some data is available when

api/src/main/java/com/ning/http/client/AsyncHttpClient.java renamed to api/src/main/java/org/asynchttpclient/AsyncHttpClient.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
* under the License.
1515
*
1616
*/
17-
package com.ning.http.client;
17+
package org.asynchttpclient;
1818

19-
import com.ning.http.client.Request.EntityWriter;
20-
import com.ning.http.client.filter.FilterContext;
21-
import com.ning.http.client.filter.FilterException;
22-
import com.ning.http.client.filter.RequestFilter;
23-
import com.ning.http.client.resumable.ResumableAsyncHandler;
19+
import org.asynchttpclient.Request.EntityWriter;
20+
import org.asynchttpclient.filter.FilterContext;
21+
import org.asynchttpclient.filter.FilterException;
22+
import org.asynchttpclient.filter.RequestFilter;
23+
import org.asynchttpclient.resumable.ResumableAsyncHandler;
2424
import java.io.Closeable;
2525
import org.slf4j.Logger;
2626
import org.slf4j.LoggerFactory;
@@ -42,7 +42,7 @@
4242
* </pre></blockquote
4343
* <p/>
4444
* The code above will block until the response is fully received. To execute asynchronous HTTP request, you
45-
* create an {@link AsyncHandler} or its abstract implementation, {@link com.ning.http.client.AsyncCompletionHandler}
45+
* create an {@link AsyncHandler} or its abstract implementation, {@link AsyncCompletionHandler}
4646
* <p/>
4747
* <blockquote><pre>
4848
* AsyncHttpClient c = new AsyncHttpClient();
@@ -75,7 +75,7 @@
7575
* &#125;);
7676
* Integer statusCode = f.get();
7777
* </pre></blockquote
78-
* The {@link AsyncCompletionHandler#onCompleted(com.ning.http.client.Response)} will be invoked once the http response has been fully read, which include
78+
* The {@link AsyncCompletionHandler#onCompleted(Response)} will be invoked once the http response has been fully read, which include
7979
* the http headers and the response body. Note that the entire response will be buffered in memory.
8080
* <p/>
8181
* You can also have more control about the how the response is asynchronously processed by using a {@link AsyncHandler}
@@ -145,10 +145,10 @@ public class AsyncHttpClient implements Closeable {
145145
* provider is explicitly specified by the developer.
146146
*/
147147
private static final String[] DEFAULT_PROVIDERS = {
148-
"com.ning.http.client.providers.netty.NettyAsyncHttpProvider",
149-
"com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProvider",
150-
"com.ning.http.client.providers.apache.ApacheAsyncHttpProvider",
151-
"com.ning.http.client.providers.jdk.JDKAsyncHttpProvider"
148+
"org.asynchttpclient.providers.netty.NettyAsyncHttpProvider",
149+
"org.asynchttpclient.providers.grizzly.GrizzlyAsyncHttpProvider",
150+
"org.asynchttpclient.providers.apache.ApacheAsyncHttpProvider",
151+
"org.asynchttpclient.providers.jdk.JDKAsyncHttpProvider"
152152
};
153153

154154
private final AsyncHttpProvider httpProvider;
@@ -175,7 +175,7 @@ public class AsyncHttpClient implements Closeable {
175175
* </ul>
176176
*
177177
* If none of those providers are found, then the runtime will default to
178-
* the {@link com.ning.http.client.providers.jdk.JDKAsyncHttpProvider}.
178+
* the {@link org.asynchttpclient.providers.jdk.JDKAsyncHttpProvider}.
179179
*/
180180
public AsyncHttpClient() {
181181
this(new AsyncHttpClientConfig.Builder().build());
@@ -204,7 +204,7 @@ public AsyncHttpClient(AsyncHttpProvider provider) {
204204
* </ul>
205205
*
206206
* If none of those providers are found, then the runtime will default to
207-
* the {@link com.ning.http.client.providers.jdk.JDKAsyncHttpProvider}.
207+
* the {@link org.asynchttpclient.providers.jdk.JDKAsyncHttpProvider}.
208208
*
209209
* @param config a {@link AsyncHttpClientConfig}
210210
*/
@@ -317,12 +317,12 @@ public BoundRequestBuilder setBody(byte[] data) throws IllegalArgumentException
317317
}
318318

319319
@Override
320-
public BoundRequestBuilder setBody(EntityWriter dataWriter, long length) throws IllegalArgumentException {
320+
public BoundRequestBuilder setBody(Request.EntityWriter dataWriter, long length) throws IllegalArgumentException {
321321
return super.setBody(dataWriter, length);
322322
}
323323

324324
@Override
325-
public BoundRequestBuilder setBody(EntityWriter dataWriter) {
325+
public BoundRequestBuilder setBody(Request.EntityWriter dataWriter) {
326326
return super.setBody(dataWriter);
327327
}
328328

@@ -380,9 +380,9 @@ public BoundRequestBuilder setSignatureCalculator(SignatureCalculator signatureC
380380

381381

382382
/**
383-
* Return the asynchronous {@link com.ning.http.client.AsyncHttpProvider}
383+
* Return the asynchronous {@link AsyncHttpProvider}
384384
*
385-
* @return an {@link com.ning.http.client.AsyncHttpProvider}
385+
* @return an {@link AsyncHttpProvider}
386386
*/
387387
@SuppressWarnings("UnusedDeclaration")
388388
public AsyncHttpProvider getProvider() {
@@ -433,9 +433,9 @@ public boolean isClosed() {
433433
}
434434

435435
/**
436-
* Return the {@link com.ning.http.client.AsyncHttpClientConfig}
436+
* Return the {@link AsyncHttpClientConfig}
437437
*
438-
* @return {@link com.ning.http.client.AsyncHttpClientConfig}
438+
* @return {@link AsyncHttpClientConfig}
439439
*/
440440
@SuppressWarnings("UnusedDeclaration")
441441
public AsyncHttpClientConfig getConfig() {

0 commit comments

Comments
 (0)