Class GlueWebContext
java.lang.Object
java.util.AbstractMap<String,Object>
java.util.HashMap<String,Object>
com.poscoict.glueframework.util.GlueHashMap<String,Object>
com.poscoict.glueframework.context.GlueDefaultContext
com.poscoict.glueframework.context.GlueWebContext
- All Implemented Interfaces:
GlueContext
,GlueAuditAttributeHolder
,Serializable
,Cloneable
,Map<String,
Object>
Servlet의 Data를 관리하기 위한 내부 저장소 Class 이다 . HttpRequest의 Parameter와 Attribute Data, 그리고 HttpSession, Cookie, Header Data를 갖는다. Data의 성격에 따라
WebContentType에 그 유형이 정의 되어 있다.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface com.poscoict.glueframework.context.GlueContext
GlueContext.ContentType, GlueContext.EventType, GlueContext.WebContentType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionKey 해당 하는 값을 조회함.get
(String key, GlueContext.ContentType type) RootMap이 아닌 ContentType에 해당 하는 Map에서 해당 key의 값을 얻는다.<T> T
getAndTryToCast
(String key, Class<T> valueClass, GlueContext.ContentType type) put
(String key, Object value, GlueContext.ContentType type) 확장대상..void
putAll
(Map<? extends String, ? extends Object> map, GlueContext.ContentType type) 확장대상..void
setMultiPartRequest
(GlueMultipartRequest multipartRequest) toString()
Methods inherited from class com.poscoict.glueframework.context.GlueDefaultContext
getAuditAttributes, getEventSourceType, getException, getMessage, getMessages, setAuditAttributes, setException, setMessage, setMessages
Methods inherited from class com.poscoict.glueframework.util.GlueHashMap
getAndTryToCast, newGlueHashMap
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.poscoict.glueframework.context.GlueContext
getAndTryToCast, put, putAll, remove
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
GlueWebContext
public GlueWebContext()생성자(constructor).
-
-
Method Details
-
get
Key 해당 하는 값을 조회함.GlueWebContext 에서 Key 탐색 우선 순위는 다음과 같다. 1. Root Map 2. Request Attribute Map 3. Request Parameter Map 우선순위를 따르지 않거나, 그 외의 Data를 얻기 위해서는 get(String key, ContentType type) 를 이용한다. Root Map : ("deptno", "10") Request Attribute Map : ("deptno", "30") Request Parameter Map : ("deptno", "20") 과 같이 GlueWebContext가 구성되어 있다면. ctx.get("deptno") 의 값은 10 이 된다. Request Attribute Map의 값인 30을 얻기 위해서는 ctx.get("deptno", WebContentType.HTTP_REQUEST_ATTR) 를 사용한다.
-
getDataAsMap
- Specified by:
getDataAsMap
in interfaceGlueContext
- Overrides:
getDataAsMap
in classGlueDefaultContext
-
get
Description copied from interface:GlueContext
RootMap이 아닌 ContentType에 해당 하는 Map에서 해당 key의 값을 얻는다.- Specified by:
get
in interfaceGlueContext
- Overrides:
get
in classGlueDefaultContext
- Parameters:
key
-type
-- Returns:
- Object
-
getAndTryToCast
- Specified by:
getAndTryToCast
in interfaceGlueContext
- Overrides:
getAndTryToCast
in classGlueDefaultContext
- Parameters:
key
-valueClass
-type
-- Returns:
- T
-
put
Description copied from interface:GlueContext
확장대상..- Specified by:
put
in interfaceGlueContext
- Overrides:
put
in classGlueDefaultContext
- Parameters:
key
-value
-type
-- Returns:
- Object
-
putAll
Description copied from interface:GlueContext
확장대상..- Specified by:
putAll
in interfaceGlueContext
- Overrides:
putAll
in classGlueDefaultContext
- Parameters:
map
-type
-
-
setMultiPartRequest
- Specified by:
setMultiPartRequest
in interfaceGlueContext
- Overrides:
setMultiPartRequest
in classGlueDefaultContext
-
getMultiPartRequest
- Specified by:
getMultiPartRequest
in interfaceGlueContext
- Overrides:
getMultiPartRequest
in classGlueDefaultContext
-
getSessionAttr
-
toString
- Overrides:
toString
in classGlueDefaultContext
-