private static void addRequestProperties ( final Map < String , String > requestProperties , final HttpURLConnection connection ) { if ( requestProperties != null ) { for ( Entry < String , String > entry : requestProperties . entrySet ( ) ) { connection . addRequestProperty ( entry . getKey ( ) , entry . getValue ( ) ) ; } } }
Copies request properties to a connection .