Class UrlConnectionClient

  • All Implemented Interfaces:
    HttpClient

    public final class UrlConnectionClient
    extends java.lang.Object
    implements HttpClient
    Simple Http client to make REST calls.

    Assumptions: - always send/receive JSON - set headers accordingly by default - very simple interactions w/ API - no cookies - no caching of connections. Could be slow

    • Field Detail

      • UNSUPPORTED_CONFIG_MESSAGE

        public static final java.lang.String UNSUPPORTED_CONFIG_MESSAGE
        See Also:
        Constant Field Values
    • Constructor Detail

      • UrlConnectionClient

        public UrlConnectionClient​(HttpRuntimeConfig config)
        Construct an HTTP client with a universal Accept header.
        Parameters:
        config - http client configuration