com.liferay.faces.bridge.context.map
Class RequestHeaderValuesMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,V>
com.liferay.faces.bridge.context.map.CaseInsensitiveHashMap<String[]>
com.liferay.faces.bridge.context.map.RequestHeaderValuesMapCompat
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
|
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)
|
RequestHeaderValuesMap
public RequestHeaderValuesMap(BridgeContext bridgeContext,
Map<String,String> requestParameterMap)
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.