Class HttpHeadersHelper


  • public abstract class HttpHeadersHelper
    extends Object
    Helper to create http headers.
    Author:
    Christian Bremer
    • Method Detail

      • buildHttpHeaders

        public static org.springframework.http.HttpHeaders buildHttpHeaders​(Map<String,​? extends Collection<String>> headers)
        Build http headers.
        Parameters:
        headers - the headers
        Returns:
        the http headers
      • getContentCharset

        public static Charset getContentCharset​(org.springframework.http.HttpHeaders headers,
                                                Charset defaultCharset)
        Gets content charset.
        Parameters:
        headers - the headers
        defaultCharset - the default charset
        Returns:
        the content charset or the default charset if no content charset is specified