com.liferay.faces.bridge.context.map
Class RequestHeaderValuesMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,V>
          extended by com.liferay.faces.bridge.context.map.CaseInsensitiveHashMap<String[]>
              extended by com.liferay.faces.bridge.context.map.RequestHeaderValuesMapCompat
                  extended by com.liferay.faces.bridge.context.map.RequestHeaderValuesMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String[]>

public class RequestHeaderValuesMap
extends RequestHeaderValuesMapCompat

Author:
Neil Griffin
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
RequestHeaderValuesMap(BridgeContext bridgeContext, Map<String,String> requestParameterMap)
           
 
Method Summary
protected  void addAcceptHeader(javax.portlet.PortletRequest portletRequest)
          Adds an "Accept" header to the hashmap, according to the response content types in the specified request.
protected  void addContentTypeHeader(javax.portlet.PortletRequest portletRequest)
          Adds a "Content-Type" header to the hashmap, according to the content-type and character-encoding in the specified request.
protected  void addFacesRequestPartialAjaxHeader(javax.portlet.PortletRequest portletRequest)
           
 
Methods inherited from class com.liferay.faces.bridge.context.map.RequestHeaderValuesMapCompat
addJSF1Headers
 
Methods inherited from class com.liferay.faces.bridge.context.map.CaseInsensitiveHashMap
containsKey, get, getLowerCaseKey, put
 
Methods inherited from class java.util.HashMap
clear, clone, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

RequestHeaderValuesMap

public RequestHeaderValuesMap(BridgeContext bridgeContext,
                              Map<String,String> requestParameterMap)
Method Detail

addAcceptHeader

protected void addAcceptHeader(javax.portlet.PortletRequest portletRequest)
Adds an "Accept" header to the hashmap, according to the response content types in the specified request. Example Value: Accept: text/html

Parameters:
portletRequest - The current portlet request.
See Also:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1

addContentTypeHeader

protected void addContentTypeHeader(javax.portlet.PortletRequest portletRequest)
Adds a "Content-Type" header to the hashmap, according to the content-type and character-encoding in the specified request. Example Value: Content-Type: text/html; charset=ISO-8859-4

Parameters:
portletRequest - The current portlet request.
See Also:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17

addFacesRequestPartialAjaxHeader

protected void addFacesRequestPartialAjaxHeader(javax.portlet.PortletRequest portletRequest)


Copyright © 2014 Liferay, Inc.. All Rights Reserved.