Module com.zerodeplibs.webpush
Class ApacheHttpClientRequestPreparer
- java.lang.Object
-
- com.zerodeplibs.webpush.httpclient.ApacheHttpClientRequestPreparer
-
public class ApacheHttpClientRequestPreparer extends Object
The "Preparer" used to utilize Apache HTTPClient.
Thread Safety:Instances of this class are immutable. So they can be accessed safely from multiple threads.
- Author:
- Tomoki Sato
- See Also:
PreparerBuilder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PreparerBuilder<ApacheHttpClientRequestPreparer>getBuilder()Gets a newPreparerBuilderused to constructApacheHttpClientRequestPreparer.org.apache.hc.client5.http.classic.methods.HttpPosttoHttpPost()Converts this object to anHttpPost.org.apache.hc.client5.http.async.methods.SimpleHttpRequesttoSimpleHttpRequest()Converts this object to aSimpleHttpRequest.
-
-
-
Method Detail
-
getBuilder
public static PreparerBuilder<ApacheHttpClientRequestPreparer> getBuilder()
Gets a newPreparerBuilderused to constructApacheHttpClientRequestPreparer.- Returns:
- a new
PreparerBuilderused to constructApacheHttpClientRequestPreparer.
-
toHttpPost
public org.apache.hc.client5.http.classic.methods.HttpPost toHttpPost()
Converts this object to anHttpPost.- Returns:
- an
HttpPost.
-
toSimpleHttpRequest
public org.apache.hc.client5.http.async.methods.SimpleHttpRequest toSimpleHttpRequest()
Converts this object to aSimpleHttpRequest.- Returns:
- a
SimpleHttpRequest.
-
-