public class RequestHeaderUtil extends Object
Constructor and Description |
---|
RequestHeaderUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
acceptsEncoding(javax.servlet.http.HttpServletRequest request,
String name) |
static boolean |
acceptsGzipEncoding(javax.servlet.http.HttpServletRequest request) |
static void |
addAndVerifyHeader(javax.servlet.http.HttpServletResponse response,
String name,
String value) |
static boolean |
headerContains(javax.servlet.http.HttpServletRequest request,
String header,
String value) |
static void |
setHeader(javax.servlet.http.HttpServletResponse response,
String name,
Object value) |
public static boolean acceptsGzipEncoding(javax.servlet.http.HttpServletRequest request)
public static boolean acceptsEncoding(javax.servlet.http.HttpServletRequest request, String name)
public static boolean headerContains(javax.servlet.http.HttpServletRequest request, String header, String value)
public static void addAndVerifyHeader(javax.servlet.http.HttpServletResponse response, String name, String value)
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.