Package nablarch.fw.web
Class MockHttpCookie
java.lang.Object
java.util.AbstractMap<K,V>
nablarch.core.util.map.MapWrapper<String,String>
nablarch.fw.web.HttpCookie
nablarch.fw.web.MockHttpCookie
HttpCookieのテストFW用モック実装クラス。-
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> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoString()Cookieの値を文字列に変換する。static HttpCookie文字列をHttpCookieに変換する。Methods inherited from class nablarch.fw.web.HttpCookie
convertServletCookies, fromServletCookie, fromSetCookieHeader, getDelegateMap, getDomain, getMaxAge, getPath, isHttpOnly, isSecure, setDomain, setHttpOnly, setMaxAge, setPath, setSecureMethods inherited from class nablarch.core.util.map.MapWrapper
clear, containsKey, containsValue, entrySet, equals, get, getDelegateMapOfType, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesMethods inherited from class java.util.AbstractMap
cloneMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
MockHttpCookie
public MockHttpCookie()
-
-
Method Details
-
toString
Cookieの値を文字列に変換する。 変換後の値は、HTTPリクエストのCookieヘッダーに埋め込む形式でフォーマットする。- Overrides:
toStringin classMapWrapper<String,String> - Returns:
- 文字列に変換した値
-
valueOf
文字列をHttpCookieに変換する。- Parameters:
cookieStr- HTTPリクエストのCookieヘッダー形式の文字列- Returns:
HttpCookie
-