java.lang.Object
org.shredzone.acme4j.connector.HttpConnector
A generic HTTP connector. It creates
HttpClient.Builder and
HttpRequest.Builder that can be individually customized according to the needs
of the CA.- Seit:
- 3.0.0
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungHttpConnector(NetworkSettings networkSettings) Creates a newHttpConnectorthat is using the givenNetworkSettings. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCreates a newHttpClient.Builder.createRequestBuilder(URL url) Creates a newHttpRequest.Builderthat is preconfigured and bound to the given URL.static StringReturns the default User-Agent to be used.
-
Konstruktordetails
-
HttpConnector
Creates a newHttpConnectorthat is using the givenNetworkSettings.
-
-
Methodendetails
-
defaultUserAgent
Returns the default User-Agent to be used.- Gibt zurück:
- 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.- Parameter:
url-URLto connect to- Gibt zurück:
HttpRequest.Builderconnected to theURL
-
createClientBuilder
Creates a newHttpClient.Builder.The
HttpClient.Builderis already preconfigured with a reasonable timeout, the proxy settings, authenticator, and that it follows normal redirects. Subclasses can override this method to extend the configuration, or to create a different builder.
-