Package org.bremersee.http
Class HttpHeadersHelper
- java.lang.Object
-
- org.bremersee.http.HttpHeadersHelper
-
public abstract class HttpHeadersHelper extends Object
Helper to create http headers.- Author:
- Christian Bremer
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.springframework.http.HttpHeaders
buildHttpHeaders(Map<String,? extends Collection<String>> headers)
Build http headers.static Charset
getContentCharset(org.springframework.http.HttpHeaders headers, Charset defaultCharset)
Gets content charset.
-
-
-
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 headersdefaultCharset
- the default charset- Returns:
- the content charset or the default charset if no content charset is specified
-
-