- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,List<String>>
-
- org.refcodes.web.AbstractHttpFields<T>
-
- org.refcodes.web.AbstractHeaderFields<RequestCookie,RequestHeaderFields>
-
- org.refcodes.web.RequestHeaderFieldsImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,List<String>>
,HeaderFields<RequestCookie,RequestHeaderFields>
,HttpFields<RequestHeaderFields>
,RequestHeaderFields
public class RequestHeaderFieldsImpl extends AbstractHeaderFields<RequestCookie,RequestHeaderFields> implements RequestHeaderFields
Implementation of theHeaderFields
interface.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
-
Fields inherited from interface org.refcodes.web.HeaderFields
BASIC_REALM
-
-
Constructor Summary
Constructors Constructor Description RequestHeaderFieldsImpl()
Instantiates a new request Header-Fields impl.RequestHeaderFieldsImpl(Map<String,List<String>> aFromHeaderFields)
Instantiates a new request Header-Fields impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RequestCookie
createCookie(String aHttpCookie)
protected RequestCookie
createCookie(String aCookieName, String aValue)
Creates a plainCookie
with the given name and value.protected String
getCookieFieldName()
The Header-Field name for theCookie
elements.-
Methods inherited from class org.refcodes.web.AbstractHeaderFields
addCookie, addCookie, addTo, entrySet, get, getAllCookies, isCommaSeparatedHeaderField, keySet, put, putAll, toHeaderField, toHeaderFields
-
Methods inherited from class org.refcodes.web.AbstractHttpFields
copyHttpFields
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, getOrDefault, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, 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 org.refcodes.web.HeaderFields
addCookie, addCookie, addTo, addTo, addTo, get, getAcceptCharsets, getAcceptEncodings, getAcceptLanguages, getAcceptTypes, getAllCookies, getAllowMethods, getAuthenticate, getAuthorization, getBasicAuth, getBasicAuthCredentials, getBearerAuthCredentials, getContentEncoding, getContentLength, getContentType, getCookies, getFirst, getFirstCookie, getHost, getRequestId, getSessionId, getUnknownAcceptTypes, getUnknownContentTypes, getUserAgent, put, put, put, putAcceptCharsets, putAcceptCharsets, putAcceptEncodings, putAcceptEncodings, putAcceptLanguages, putAcceptLanguages, putAcceptTypes, putAcceptTypes, putAllowMethods, putAllowMethods, putAuthenticate, putAuthorization, putAuthorization, putAuthorization, putBasicAuthCredentials, putBasicAuthCredentials, putBasicAuthRequired, putBearerAuthCredentials, putBearerAuthCredentials, putContentEncoding, putContentLength, putContentType, putContentType, putHost, putRequestId, putSessionId, putUserAgent, remove, removeAcceptCharsets, removeAcceptEncodings, removeAcceptLanguages, removeAcceptTypes, removeAllowMethods, removeAuthenticate, removeAuthorization, removeBasicAuthCredentials, removeBasicAuthenticate, removeBearerAuthCredentials, removeContentEncoding, removeContentLength, removeContentType, removeHost, removeRequestId, removeSessionId, removeUserAgent, toBasicAuthRealm, toHeaderFields, toHttpCookies, withAcceptCharsets, withAcceptCharsets, withAcceptEncodings, withAcceptEncodings, withAcceptLanguages, withAcceptLanguages, withAcceptTypes, withAcceptTypes, withAddCookie, withAddCookie, withAddTo, withAddTo, withAddTo, withAllowMethods, withAllowMethods, withAuthenticate, withAuthorization, withAuthorization, withAuthorization, withBasicAuthCredentials, withBasicAuthCredentials, withBasicAuthRequired, withBearerAuthCredentials, withBearerAuthCredentials, withContentEncoding, withContentLength, withContentType, withContentType, withHost, withPut, withPut, withPut, withRequestId, withSessionId, withUserAgent
-
Methods inherited from interface org.refcodes.web.HttpFields
addTo, addTo, addTo, addTo, addTo, addTo, getFirst, getFirst, put, put, put, put, toField, toField, withAddTo, withAddTo, withAddTo, withAddTo, withAddTo, withAddTo, withPut, withPut, withPut, withPut, withPut, withPut
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from interface org.refcodes.web.RequestHeaderFields
addCookie
-
-
-
-
Method Detail
-
getCookieFieldName
protected String getCookieFieldName()
The Header-Field name for theCookie
elements. The Header-Field name differs from the context, e.g. when setting aCookie
server-side or when retrieving aCookie
client-side.- Specified by:
getCookieFieldName
in classAbstractHeaderFields<RequestCookie,RequestHeaderFields>
- Returns:
- The Header-Field where the
Cookie
elements are stored.
-
createCookie
protected RequestCookie createCookie(String aCookieName, String aValue)
Creates a plainCookie
with the given name and value.- Specified by:
createCookie
in classAbstractHeaderFields<RequestCookie,RequestHeaderFields>
- Parameters:
aCookieName
- The name of theCookie
.aValue
- The value for theCookie
- Returns:
- The
Cookie
with the given name and value.
-
createCookie
protected RequestCookie createCookie(String aHttpCookie)
- Specified by:
createCookie
in classAbstractHeaderFields<RequestCookie,RequestHeaderFields>
- Parameters:
aHttpCookie
- The text of the Header-Field for the cookie to be created.- Returns:
- The
Cookie
with the given cookie properties.
-
-