info.magnolia.cms.util
Class RequestHeaderUtil

java.lang.Object
  extended by info.magnolia.cms.util.RequestHeaderUtil

public class RequestHeaderUtil
extends Object

Util to work with HTTP headers.


Constructor Summary
RequestHeaderUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestHeaderUtil

public RequestHeaderUtil()
Method Detail

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.