Module com.zerodeplibs.webpush
Class JettyHttpClientRequestPreparer
- java.lang.Object
-
- com.zerodeplibs.webpush.httpclient.JettyHttpClientRequestPreparer
-
public class JettyHttpClientRequestPreparer extends Object
The "Preparer" used to utilize Eclipse Jetty Client Libraries.
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<JettyHttpClientRequestPreparer>getBuilder()Gets a newPreparerBuilderused to constructJettyHttpClientRequestPreparer.org.eclipse.jetty.client.api.RequesttoRequest(org.eclipse.jetty.client.HttpClient httpClient)Converts this object to aRequest.
-
-
-
Method Detail
-
getBuilder
public static PreparerBuilder<JettyHttpClientRequestPreparer> getBuilder()
Gets a newPreparerBuilderused to constructJettyHttpClientRequestPreparer.- Returns:
- a new
PreparerBuilderused to constructJettyHttpClientRequestPreparer.
-
toRequest
public org.eclipse.jetty.client.api.Request toRequest(org.eclipse.jetty.client.HttpClient httpClient)
Converts this object to aRequest.- Parameters:
httpClient- an HTTP client object used to create aRequestobject.- Returns:
- a
Request.
-
-