public static String getStandardHeaderValue ( final HttpURLConnection conn , final String headerName ) { final String headerValue = conn . getRequestProperty ( headerName ) ; // Coalesce null value return headerValue == null ? Constants . EMPTY_STRING : headerValue ; }
Returns the standard header value from the specified connection request or an empty string if no header value has been specified for the request .