Skip to content

Commit 81d8dbb

Browse files
committed
Fix javadoc
1 parent e1e1b79 commit 81d8dbb

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,28 @@
3535
* <blockquote><pre>
3636
* AsyncHttpClient c = new AsyncHttpClient();
3737
* Future&lt;Response&gt; f = c.prepareGet(TARGET_URL).execute(new AsyncCompletionHandler&lt;Response&gt;() &#123;
38-
* <p>
38+
*
3939
* &#64;Override
4040
* public Response onCompleted(Response response) throws IOException &#123;
4141
* // Do something
4242
* return response;
4343
* &#125;
44-
* <p>
44+
*
4545
* &#64;Override
4646
* public void onThrowable(Throwable t) &#123;
4747
* &#125;
4848
* &#125;);
4949
* Response response = f.get();
50-
* <p>
50+
*
5151
* // We are just interested to retrieve the status code.
5252
* Future&lt;Integer&gt; f = c.prepareGet(TARGET_URL).execute(new AsyncCompletionHandler&lt;Integer&gt;() &#123;
53-
* <p>
53+
*
5454
* &#64;Override
5555
* public Integer onCompleted(Response response) throws IOException &#123;
5656
* // Do something
5757
* return response.getStatusCode();
5858
* &#125;
59-
* <p>
59+
*
6060
* &#64;Override
6161
* public void onThrowable(Throwable t) &#123;
6262
* &#125;
@@ -71,52 +71,52 @@
7171
* AsyncHttpClient c = new AsyncHttpClient();
7272
* Future&lt;String&gt; f = c.prepareGet(TARGET_URL).execute(new AsyncHandler&lt;String&gt;() &#123;
7373
* private StringBuilder builder = new StringBuilder();
74-
* <p>
74+
*
7575
* &#64;Override
7676
* public STATE onStatusReceived(HttpResponseStatus s) throws Exception &#123;
7777
* // return STATE.CONTINUE or STATE.ABORT
7878
* return STATE.CONTINUE
7979
* }
80-
* <p>
80+
*
8181
* &#64;Override
8282
* public STATE onHeadersReceived(HttpResponseHeaders bodyPart) throws Exception &#123;
8383
* // return STATE.CONTINUE or STATE.ABORT
8484
* return STATE.CONTINUE
85-
* <p>
85+
*
8686
* }
8787
* &#64;Override
88-
* <p>
88+
*
8989
* public STATE onBodyPartReceived(HttpResponseBodyPart bodyPart) throws Exception &#123;
9090
* builder.append(new String(bodyPart));
9191
* // return STATE.CONTINUE or STATE.ABORT
9292
* return STATE.CONTINUE
9393
* &#125;
94-
* <p>
94+
*
9595
* &#64;Override
9696
* public String onCompleted() throws Exception &#123;
9797
* // Will be invoked once the response has been fully read or a ResponseComplete exception
9898
* // has been thrown.
9999
* return builder.toString();
100100
* &#125;
101-
* <p>
101+
*
102102
* &#64;Override
103103
* public void onThrowable(Throwable t) &#123;
104104
* &#125;
105105
* &#125;);
106-
* <p>
106+
*
107107
* String bodyResponse = f.get();
108108
* </pre></blockquote>
109109
* You can asynchronously process the response status,headers and body and decide when to
110110
* stop the processing the response by returning a new {@link AsyncHandler.State#ABORT} at any moment.
111-
* <p>
111+
*
112112
* This class can also be used without the need of {@link AsyncHandler}.
113113
* <br>
114114
* <blockquote><pre>
115115
* AsyncHttpClient c = new AsyncHttpClient();
116116
* Future&lt;Response&gt; f = c.prepareGet(TARGET_URL).execute();
117117
* Response r = f.get();
118118
* </pre></blockquote>
119-
* <p>
119+
*
120120
* Finally, you can configure the AsyncHttpClient using an {@link DefaultAsyncHttpClientConfig} instance.
121121
* <br>
122122
* <blockquote><pre>

client/src/main/java/org/asynchttpclient/cookie/CookieStore.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
/**
2525
* This interface represents an abstract store for {@link Cookie} objects.
26-
* <p>
26+
*
2727
* <p>{@link CookieManager} will call {@code CookieStore.add} to save cookies
2828
* for every incoming HTTP response, and call {@code CookieStore.get} to
2929
* retrieve cookie for every outgoing HTTP request. A CookieStore
@@ -35,13 +35,13 @@ public interface CookieStore {
3535
/**
3636
* Adds one {@link Cookie} to the store. This is called for every incoming HTTP response.
3737
* If the given cookie has already expired it will not be added, but existing values will still be removed.
38-
* <p>
38+
*
3939
* <p>A cookie to store may or may not be associated with an URI. If it
4040
* is not associated with an URI, the cookie's domain and path attribute
4141
* will indicate where it comes from. If it is associated with an URI and
4242
* its domain and path attribute are not specified, given URI will indicate
4343
* where this cookie comes from.
44-
* <p>
44+
*
4545
* <p>If a cookie corresponding to the given URI already exists,
4646
* then it is replaced with the new one.
4747
*

client/src/main/java/org/asynchttpclient/handler/TransferCompletionHandler.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
* A {@link org.asynchttpclient.AsyncHandler} that can be used to notify a set of {@link TransferListener}
2626
* <br>
2727
* <blockquote>
28-
* <p>
2928
* <pre>
3029
* AsyncHttpClient client = new AsyncHttpClient();
3130
* TransferCompletionHandler tl = new TransferCompletionHandler();
@@ -52,7 +51,6 @@
5251
*
5352
* Response response = httpClient.prepareGet("http://...").execute(tl).get();
5453
* </pre>
55-
* <p>
5654
* </blockquote>
5755
*/
5856
public class TransferCompletionHandler extends AsyncCompletionHandlerBase {

extras/simple/src/main/java/org/asynchttpclient/extras/simple/SimpleAsyncHttpClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@
5252
* .setRequestTimeout(5 * 60 * 1000)
5353
* .setUrl(getTargetUrl())
5454
* .setHeader("Content-Type", "text/html").build();
55-
* <p>
55+
*
5656
* StringBuilder s = new StringBuilder();
5757
* Future&lt;Response&gt; future = client.post(new InputStreamBodyGenerator(new ByteArrayInputStream(MY_MESSAGE.getBytes())), new AppendableBodyConsumer(s));
5858
* </pre></blockquote>
5959
* or
6060
* <blockquote><pre>
6161
* public void ByteArrayOutputStreamBodyConsumerTest() throws Throwable {
62-
* <p>
62+
*
6363
* SimpleAsyncHttpClient client = new SimpleAsyncHttpClient.Builder()
6464
* .setUrl(getTargetUrl())
6565
* .build();
66-
* <p>
66+
*
6767
* ByteArrayOutputStream o = new ByteArrayOutputStream(10);
6868
* Future&lt;Response&gt; future = client.post(new FileBodyGenerator(myFile), new OutputStreamBodyConsumer(o));
6969
* </pre></blockquote>

0 commit comments

Comments
 (0)