net.kldp.beat.map
Class CookieMap
java.lang.Object
net.kldp.beat.map.AbstractMap<java.lang.String,Cookie>
net.kldp.beat.map.CookieMap
- All Implemented Interfaces:
- java.util.Map<java.lang.String,Cookie>
public class CookieMap
- extends AbstractMap<java.lang.String,Cookie>
Cookie를 Map으로 제공하기 위한 랩퍼 클래스입니다.
주의 : 쿠키의 실제 적용은 Cookie 객체를 수정하는것만으로 되지 않고,
Map의 put메서드를 호출하여 쿠키를 삽입해야 합니다.
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Field Summary |
private java.util.HashMap<java.lang.String,Cookie> |
cookies
|
private HttpServletResponse |
response
|
Constructor Summary |
CookieMap(Cookie[] cookieArr,
HttpServletResponse response)
|
Method Summary |
(package private) Cookie |
getAttribute(java.lang.String key)
프로퍼티를 리턴합니다. |
(package private) java.util.Enumeration<java.lang.String> |
getAttributeNames()
프로퍼티의 이름을 리턴합니다. |
(package private) void |
removeAttribute(java.lang.String key)
프로퍼티를 삭제합니다. |
(package private) void |
setAttribute(java.lang.String key,
Cookie value)
프로퍼티를 설정합니다. |
Methods inherited from class net.kldp.beat.map.AbstractMap |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
response
private HttpServletResponse response
cookies
private java.util.HashMap<java.lang.String,Cookie> cookies
CookieMap
public CookieMap(Cookie[] cookieArr,
HttpServletResponse response)
getAttribute
Cookie getAttribute(java.lang.String key)
- Description copied from class:
AbstractMap
- 프로퍼티를 리턴합니다.
- Specified by:
getAttribute
in class AbstractMap<java.lang.String,Cookie>
- Returns:
getAttributeNames
java.util.Enumeration<java.lang.String> getAttributeNames()
- Description copied from class:
AbstractMap
- 프로퍼티의 이름을 리턴합니다.
- Specified by:
getAttributeNames
in class AbstractMap<java.lang.String,Cookie>
- Returns:
removeAttribute
void removeAttribute(java.lang.String key)
- Description copied from class:
AbstractMap
- 프로퍼티를 삭제합니다.
- Specified by:
removeAttribute
in class AbstractMap<java.lang.String,Cookie>
setAttribute
void setAttribute(java.lang.String key,
Cookie value)
- Description copied from class:
AbstractMap
- 프로퍼티를 설정합니다.
- Specified by:
setAttribute
in class AbstractMap<java.lang.String,Cookie>