info.magnolia.cms.util
Class RequestHeaderUtil
java.lang.Object
info.magnolia.cms.util.RequestHeaderUtil
public class RequestHeaderUtil
- extends Object
Util to work with HTTP headers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestHeaderUtil
public RequestHeaderUtil()
acceptsGzipEncoding
public static boolean acceptsGzipEncoding(javax.servlet.http.HttpServletRequest request)
acceptsEncoding
public static boolean acceptsEncoding(javax.servlet.http.HttpServletRequest request,
String name)
headerContains
public static boolean headerContains(javax.servlet.http.HttpServletRequest request,
String header,
String value)
addAndVerifyHeader
public static void addAndVerifyHeader(javax.servlet.http.HttpServletResponse response,
String name,
String value)
setHeader
public static void setHeader(javax.servlet.http.HttpServletResponse response,
String name,
Object value)
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.