info.magnolia.cms.util
Class RequestHeaderUtil
java.lang.Object
info.magnolia.cms.util.RequestHeaderUtil
public class RequestHeaderUtil
- extends java.lang.Object
Util to work with HTTP headers.
Method Summary |
static boolean |
acceptsEncoding(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
|
static boolean |
acceptsGzipEncoding(javax.servlet.http.HttpServletRequest request)
|
static void |
addAndVerifyHeader(javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.String value)
|
static boolean |
headerContains(javax.servlet.http.HttpServletRequest request,
java.lang.String header,
java.lang.String value)
|
static void |
setHeader(javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.Object value)
|
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,
java.lang.String name)
headerContains
public static boolean headerContains(javax.servlet.http.HttpServletRequest request,
java.lang.String header,
java.lang.String value)
addAndVerifyHeader
public static void addAndVerifyHeader(javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.String value)
setHeader
public static void setHeader(javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.Object value)
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.