001 package com.thetransactioncompany.jsonrpc2.client;
002
003
004 import java.net.HttpURLConnection;
005
006
007 /**
008 * Interface allowing for additional configuration of HTTP URL connections,
009 * such as setting a custom header.
010 *
011 * @since 1.5
012 * @author Vladimir Dzhuvinov
013 */
014 public interface ConnectionConfigurator {
015
016
017 /**
018 * Allows for additional configuration of the specified HTTP URL
019 * connection before it is established. This may include setting a
020 * custom HTTP header, detc.
021 *
022 * @param connection The HTTP URL connection to configure. Must not be
023 * {@code null}.
024 */
025 public void configure(final HttpURLConnection connection);
026
027 }