java.lang.Object
org.shredzone.acme4j.connector.HttpConnector
A generic HTTP connector. It creates
HttpRequest.Builder that can be
individually customized according to the user's needs.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRequestBuilder(URL url) Creates a newHttpRequest.Builderthat is preconfigured and bound to the given URL.static StringReturns the default User-Agent to be used.Returns theHttpClientinstance used by this connector.
-
Constructor Details
-
HttpConnector
- Parameters:
networkSettings- Network settings to usehttpClient- HTTP client to use for requests- Since:
- 4.0.0
-
-
Method Details
-
defaultUserAgent
Returns the default User-Agent to be used.- Returns:
- User-Agent
-
createRequestBuilder
Creates a newHttpRequest.Builderthat is preconfigured and bound to the given URL. Subclasses can override this method to extend the configuration, or create a different builder.- Parameters:
url-URLto connect to- Returns:
HttpRequest.Builderconnected to theURL
-
getHttpClient
Returns theHttpClientinstance used by this connector.- Returns:
HttpClientinstance- Since:
- 4.0.0
-