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
-
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, setSecure
Methods inherited from class nablarch.core.util.map.MapWrapper
clear, containsKey, containsValue, entrySet, equals, get, getDelegateMapOfType, hashCode, isEmpty, keySet, put, putAll, remove, size, values
Methods inherited from class java.util.AbstractMap
clone
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
toString
in classMapWrapper<String,
String> - Returns:
- 文字列に変換した値
-
valueOf
文字列をHttpCookie
に変換する。- Parameters:
cookieStr
- HTTPリクエストのCookieヘッダー形式の文字列- Returns:
HttpCookie
-