Skip to content

Commit 2073374

Browse files
committed
Reorganize packages
1 parent fa69571 commit 2073374

30 files changed

+41
-41
lines changed

client/src/main/java/org/asynchttpclient/AsyncHttpClientConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
import java.util.Map;
1212
import java.util.concurrent.ThreadFactory;
1313

14-
import org.asynchttpclient.channel.pool.KeepAliveStrategy;
14+
import org.asynchttpclient.channel.ChannelPool;
15+
import org.asynchttpclient.channel.KeepAliveStrategy;
1516
import org.asynchttpclient.filter.IOExceptionFilter;
1617
import org.asynchttpclient.filter.RequestFilter;
1718
import org.asynchttpclient.filter.ResponseFilter;
1819
import org.asynchttpclient.netty.EagerResponseBodyPart;
1920
import org.asynchttpclient.netty.LazyResponseBodyPart;
20-
import org.asynchttpclient.netty.channel.pool.ChannelPool;
2121
import org.asynchttpclient.proxy.ProxyServer;
2222
import org.asynchttpclient.proxy.ProxyServerSelector;
2323

client/src/main/java/org/asynchttpclient/DefaultAsyncHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222

2323
import java.util.concurrent.atomic.AtomicBoolean;
2424

25+
import org.asynchttpclient.channel.ChannelPool;
2526
import org.asynchttpclient.filter.FilterContext;
2627
import org.asynchttpclient.filter.FilterException;
2728
import org.asynchttpclient.filter.RequestFilter;
2829
import org.asynchttpclient.handler.resumable.ResumableAsyncHandler;
2930
import org.asynchttpclient.netty.channel.ChannelManager;
30-
import org.asynchttpclient.netty.channel.pool.ChannelPool;
3131
import org.asynchttpclient.netty.request.NettyRequestSender;
3232
import org.slf4j.Logger;
3333
import org.slf4j.LoggerFactory;

client/src/main/java/org/asynchttpclient/DefaultAsyncHttpClientConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
import java.util.Properties;
3232
import java.util.concurrent.ThreadFactory;
3333

34-
import org.asynchttpclient.channel.pool.KeepAliveStrategy;
34+
import org.asynchttpclient.channel.ChannelPool;
35+
import org.asynchttpclient.channel.KeepAliveStrategy;
3536
import org.asynchttpclient.filter.IOExceptionFilter;
3637
import org.asynchttpclient.filter.RequestFilter;
3738
import org.asynchttpclient.filter.ResponseFilter;
38-
import org.asynchttpclient.netty.channel.pool.ChannelPool;
3939
import org.asynchttpclient.proxy.ProxyServer;
4040
import org.asynchttpclient.proxy.ProxyServerSelector;
4141
import org.asynchttpclient.util.ProxyUtils;

client/src/main/java/org/asynchttpclient/DefaultRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import java.util.List;
2727
import java.util.Map;
2828

29-
import org.asynchttpclient.channel.pool.ChannelPoolPartitioning;
29+
import org.asynchttpclient.channel.ChannelPoolPartitioning;
3030
import org.asynchttpclient.cookie.Cookie;
3131
import org.asynchttpclient.proxy.ProxyServer;
3232
import org.asynchttpclient.request.body.generator.BodyGenerator;

client/src/main/java/org/asynchttpclient/Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import java.util.Collection;
2727
import java.util.List;
2828

29-
import org.asynchttpclient.channel.pool.ChannelPoolPartitioning;
29+
import org.asynchttpclient.channel.ChannelPoolPartitioning;
3030
import org.asynchttpclient.cookie.Cookie;
3131
import org.asynchttpclient.proxy.ProxyServer;
3232
import org.asynchttpclient.request.body.generator.BodyGenerator;

client/src/main/java/org/asynchttpclient/RequestBuilderBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import java.util.List;
3232
import java.util.Map;
3333

34-
import org.asynchttpclient.channel.pool.ChannelPoolPartitioning;
34+
import org.asynchttpclient.channel.ChannelPoolPartitioning;
3535
import org.asynchttpclient.cookie.Cookie;
3636
import org.asynchttpclient.proxy.ProxyServer;
3737
import org.asynchttpclient.request.body.generator.BodyGenerator;

client/src/main/java/org/asynchttpclient/netty/channel/pool/ChannelPool.java renamed to client/src/main/java/org/asynchttpclient/channel/ChannelPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1313
*/
14-
package org.asynchttpclient.netty.channel.pool;
14+
package org.asynchttpclient.channel;
1515

1616
import io.netty.channel.Channel;
1717

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1313
*/
14-
package org.asynchttpclient.netty.channel.pool;
14+
package org.asynchttpclient.channel;
1515

1616
public interface ChannelPoolPartitionSelector {
1717

client/src/main/java/org/asynchttpclient/channel/pool/ChannelPoolPartitioning.java renamed to client/src/main/java/org/asynchttpclient/channel/ChannelPoolPartitioning.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient.channel.pool;
13+
package org.asynchttpclient.channel;
1414

1515
import org.asynchttpclient.proxy.ProxyServer;
1616
import org.asynchttpclient.uri.Uri;

client/src/main/java/org/asynchttpclient/channel/pool/KeepAliveStrategy.java renamed to client/src/main/java/org/asynchttpclient/channel/KeepAliveStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1313
*/
14-
package org.asynchttpclient.channel.pool;
14+
package org.asynchttpclient.channel;
1515

1616
import static io.netty.handler.codec.http.HttpHeaders.Names.CONNECTION;
1717
import static io.netty.handler.codec.http.HttpHeaders.Values.*;

client/src/main/java/org/asynchttpclient/netty/channel/pool/NoopChannelPool.java renamed to client/src/main/java/org/asynchttpclient/channel/NoopChannelPool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1313
*/
14-
package org.asynchttpclient.netty.channel.pool;
14+
package org.asynchttpclient.channel;
1515

16-
import org.asynchttpclient.netty.channel.pool.ChannelPoolPartitionSelector;
16+
import org.asynchttpclient.channel.ChannelPoolPartitionSelector;
1717

1818
import io.netty.channel.Channel;
1919

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient.netty.channel.exception;
13+
package org.asynchttpclient.exception;
1414

1515
import java.io.IOException;
1616

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient.netty.channel.exception;
13+
package org.asynchttpclient.exception;
1414

1515
import java.io.IOException;
1616

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient.netty.channel.exception;
13+
package org.asynchttpclient.exception;
1414

1515
import java.io.IOException;
1616

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient.netty.channel.exception;
13+
package org.asynchttpclient.exception;
1414

1515
import java.io.IOException;
1616

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient.netty.channel.exception;
13+
package org.asynchttpclient.exception;
1414

1515
import java.io.IOException;
1616

client/src/main/java/org/asynchttpclient/netty/EagerResponseBodyPart.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
package org.asynchttpclient.netty;
1414

15-
import static org.asynchttpclient.netty.util.ByteBufUtils.byteBuf2Bytes;
15+
import static org.asynchttpclient.util.ByteBufUtils.byteBuf2Bytes;
1616
import io.netty.buffer.ByteBuf;
1717

1818
import java.nio.ByteBuffer;

client/src/main/java/org/asynchttpclient/netty/LazyResponseBodyPart.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.nio.ByteBuffer;
1818

1919
import org.asynchttpclient.HttpResponseBodyPart;
20-
import org.asynchttpclient.netty.util.ByteBufUtils;
20+
import org.asynchttpclient.util.ByteBufUtils;
2121

2222
/**
2323
* A callback class used when an HTTP response body is received.

client/src/main/java/org/asynchttpclient/netty/NettyResponseFuture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import org.asynchttpclient.AsyncHandler;
3535
import org.asynchttpclient.Realm;
3636
import org.asynchttpclient.Request;
37-
import org.asynchttpclient.channel.pool.ChannelPoolPartitioning;
37+
import org.asynchttpclient.channel.ChannelPoolPartitioning;
3838
import org.asynchttpclient.future.AbstractListenableFuture;
3939
import org.asynchttpclient.netty.channel.ChannelState;
4040
import org.asynchttpclient.netty.channel.Channels;

client/src/main/java/org/asynchttpclient/netty/channel/ChannelManager.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,15 @@
4949
import org.asynchttpclient.AsyncHandler;
5050
import org.asynchttpclient.AsyncHttpClientConfig;
5151
import org.asynchttpclient.SslEngineFactory;
52-
import org.asynchttpclient.channel.pool.ChannelPoolPartitioning;
52+
import org.asynchttpclient.channel.ChannelPool;
53+
import org.asynchttpclient.channel.ChannelPoolPartitioning;
54+
import org.asynchttpclient.channel.NoopChannelPool;
55+
import org.asynchttpclient.exception.PoolAlreadyClosedException;
56+
import org.asynchttpclient.exception.TooManyConnectionsException;
57+
import org.asynchttpclient.exception.TooManyConnectionsPerHostException;
5358
import org.asynchttpclient.handler.AsyncHandlerExtensions;
5459
import org.asynchttpclient.netty.Callback;
5560
import org.asynchttpclient.netty.NettyResponseFuture;
56-
import org.asynchttpclient.netty.channel.exception.PoolAlreadyClosedException;
57-
import org.asynchttpclient.netty.channel.exception.TooManyConnectionsException;
58-
import org.asynchttpclient.netty.channel.exception.TooManyConnectionsPerHostException;
59-
import org.asynchttpclient.netty.channel.pool.ChannelPool;
60-
import org.asynchttpclient.netty.channel.pool.DefaultChannelPool;
61-
import org.asynchttpclient.netty.channel.pool.NoopChannelPool;
6261
import org.asynchttpclient.netty.handler.AsyncHttpClientHandler;
6362
import org.asynchttpclient.netty.handler.HttpProtocol;
6463
import org.asynchttpclient.netty.handler.WebSocketProtocol;

client/src/main/java/org/asynchttpclient/netty/channel/pool/DefaultChannelPool.java renamed to client/src/main/java/org/asynchttpclient/netty/channel/DefaultChannelPool.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1313
*/
14-
package org.asynchttpclient.netty.channel.pool;
14+
package org.asynchttpclient.netty.channel;
1515

1616
import static org.asynchttpclient.util.Assertions.*;
1717
import static org.asynchttpclient.util.DateUtils.millisTime;
@@ -30,8 +30,9 @@
3030
import java.util.concurrent.atomic.AtomicBoolean;
3131

3232
import org.asynchttpclient.AsyncHttpClientConfig;
33+
import org.asynchttpclient.channel.ChannelPool;
34+
import org.asynchttpclient.channel.ChannelPoolPartitionSelector;
3335
import org.asynchttpclient.netty.NettyResponseFuture;
34-
import org.asynchttpclient.netty.channel.Channels;
3536
import org.slf4j.Logger;
3637
import org.slf4j.LoggerFactory;
3738

client/src/main/java/org/asynchttpclient/netty/handler/AsyncHttpClientHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929

3030
import org.asynchttpclient.AsyncHttpClientConfig;
3131
import org.asynchttpclient.HttpResponseBodyPart;
32+
import org.asynchttpclient.exception.ChannelClosedException;
3233
import org.asynchttpclient.netty.Callback;
3334
import org.asynchttpclient.netty.DiscardEvent;
3435
import org.asynchttpclient.netty.NettyResponseFuture;
3536
import org.asynchttpclient.netty.channel.ChannelManager;
3637
import org.asynchttpclient.netty.channel.Channels;
37-
import org.asynchttpclient.netty.channel.exception.ChannelClosedException;
3838
import org.asynchttpclient.netty.future.StackTraceInspector;
3939
import org.asynchttpclient.netty.request.NettyRequestSender;
4040
import org.slf4j.Logger;

client/src/main/java/org/asynchttpclient/netty/request/NettyRequestSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import org.asynchttpclient.Realm;
4242
import org.asynchttpclient.Realm.AuthScheme;
4343
import org.asynchttpclient.Request;
44+
import org.asynchttpclient.exception.RemotelyClosedException;
4445
import org.asynchttpclient.filter.FilterContext;
4546
import org.asynchttpclient.filter.FilterException;
4647
import org.asynchttpclient.filter.IOExceptionFilter;
@@ -53,7 +54,6 @@
5354
import org.asynchttpclient.netty.channel.ChannelState;
5455
import org.asynchttpclient.netty.channel.Channels;
5556
import org.asynchttpclient.netty.channel.NettyConnectListener;
56-
import org.asynchttpclient.netty.channel.exception.RemotelyClosedException;
5757
import org.asynchttpclient.netty.timeout.ReadTimeoutTimerTask;
5858
import org.asynchttpclient.netty.timeout.RequestTimeoutTimerTask;
5959
import org.asynchttpclient.netty.timeout.TimeoutsHolder;

client/src/main/java/org/asynchttpclient/netty/util/ByteBufUtils.java renamed to client/src/main/java/org/asynchttpclient/util/ByteBufUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1313
*/
14-
package org.asynchttpclient.netty.util;
14+
package org.asynchttpclient.util;
1515

1616
import io.netty.buffer.ByteBuf;
1717

client/src/main/java/org/asynchttpclient/netty/util/Utf8Reader.java renamed to client/src/main/java/org/asynchttpclient/util/Utf8Reader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1313
*/
14-
package org.asynchttpclient.netty.util;
14+
package org.asynchttpclient.util;
1515

1616
import io.netty.buffer.AbstractByteBuf;
1717
import io.netty.buffer.ByteBuf;

client/src/test/java/org/asynchttpclient/AuthTimeoutTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import javax.servlet.http.HttpServletRequest;
2727
import javax.servlet.http.HttpServletResponse;
2828

29-
import org.asynchttpclient.netty.channel.exception.RemotelyClosedException;
29+
import org.asynchttpclient.exception.RemotelyClosedException;
3030
import org.eclipse.jetty.server.Request;
3131
import org.eclipse.jetty.server.Server;
3232
import org.eclipse.jetty.server.handler.AbstractHandler;

client/src/test/java/org/asynchttpclient/BasicHttpsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import javax.net.ssl.SSLHandshakeException;
3232
import javax.servlet.http.HttpServletResponse;
3333

34-
import org.asynchttpclient.channel.pool.KeepAliveStrategy;
34+
import org.asynchttpclient.channel.KeepAliveStrategy;
3535
import org.asynchttpclient.test.EventCollectingHandler;
3636
import org.testng.annotations.Test;
3737

client/src/test/java/org/asynchttpclient/RetryRequestTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import javax.servlet.http.HttpServletRequest;
2323
import javax.servlet.http.HttpServletResponse;
2424

25-
import org.asynchttpclient.netty.channel.exception.RemotelyClosedException;
25+
import org.asynchttpclient.exception.RemotelyClosedException;
2626
import org.eclipse.jetty.server.Request;
2727
import org.eclipse.jetty.server.handler.AbstractHandler;
2828
import org.testng.annotations.Test;

client/src/test/java/org/asynchttpclient/channel/pool/ConnectionPoolTest.java renamed to client/src/test/java/org/asynchttpclient/channel/ConnectionPoolTest.java

Lines changed: 2 additions & 2 deletions
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 org.asynchttpclient.channel.pool;
16+
package org.asynchttpclient.channel;
1717

1818
import static org.asynchttpclient.Dsl.*;
1919
import static org.asynchttpclient.test.EventCollectingHandler.*;
@@ -37,7 +37,7 @@
3737
import org.asynchttpclient.ListenableFuture;
3838
import org.asynchttpclient.RequestBuilder;
3939
import org.asynchttpclient.Response;
40-
import org.asynchttpclient.netty.channel.exception.TooManyConnectionsException;
40+
import org.asynchttpclient.exception.TooManyConnectionsException;
4141
import org.asynchttpclient.test.EventCollectingHandler;
4242
import org.testng.annotations.Test;
4343

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
1212
*/
13-
package org.asynchttpclient.netty.reactivestreams;
13+
package org.asynchttpclient.netty.handler;
1414

1515
import static org.asynchttpclient.Dsl.asyncHttpClient;
1616
import static org.asynchttpclient.test.TestUtils.LARGE_IMAGE_BYTES;

0 commit comments

Comments
 (0)