com.liferay.faces.bridge.context.map.internal
Class RequestHeaderValuesMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,V>
com.liferay.faces.bridge.context.map.internal.CaseInsensitiveHashMap<String[]>
com.liferay.faces.bridge.context.map.internal.RequestHeaderValuesMapCompat
com.liferay.faces.bridge.context.map.internal.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. |
RequestHeaderValuesMap
public RequestHeaderValuesMap(BridgeContext bridgeContext)
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:
- RFC2616
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:
- RFC2616
Copyright © 2015 Liferay, Inc.. All rights reserved.