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> TgetAndTryToCast(String key, Class<T> valueClass, GlueContext.ContentType type) put(String key, Object value, GlueContext.ContentType type) 확장대상..voidputAll(Map<? extends String, ? extends Object> map, GlueContext.ContentType type) 확장대상..voidsetMultiPartRequest(GlueMultipartRequest multipartRequest) toString()Methods inherited from class com.poscoict.glueframework.context.GlueDefaultContext
getAuditAttributes, getEventSourceType, getException, getMessage, getMessages, setAuditAttributes, setException, setMessage, setMessagesMethods inherited from class com.poscoict.glueframework.util.GlueHashMap
getAndTryToCast, newGlueHashMapMethods 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, valuesMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.poscoict.glueframework.context.GlueContext
getAndTryToCast, put, putAll, removeMethods 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:
getDataAsMapin interfaceGlueContext- Overrides:
getDataAsMapin classGlueDefaultContext
-
get
Description copied from interface:GlueContextRootMap이 아닌 ContentType에 해당 하는 Map에서 해당 key의 값을 얻는다.- Specified by:
getin interfaceGlueContext- Overrides:
getin classGlueDefaultContext- Parameters:
key-type-- Returns:
- Object
-
getAndTryToCast
- Specified by:
getAndTryToCastin interfaceGlueContext- Overrides:
getAndTryToCastin classGlueDefaultContext- Parameters:
key-valueClass-type-- Returns:
- T
-
put
Description copied from interface:GlueContext확장대상..- Specified by:
putin interfaceGlueContext- Overrides:
putin classGlueDefaultContext- Parameters:
key-value-type-- Returns:
- Object
-
putAll
Description copied from interface:GlueContext확장대상..- Specified by:
putAllin interfaceGlueContext- Overrides:
putAllin classGlueDefaultContext- Parameters:
map-type-
-
setMultiPartRequest
- Specified by:
setMultiPartRequestin interfaceGlueContext- Overrides:
setMultiPartRequestin classGlueDefaultContext
-
getMultiPartRequest
- Specified by:
getMultiPartRequestin interfaceGlueContext- Overrides:
getMultiPartRequestin classGlueDefaultContext
-
getSessionAttr
-
toString
- Overrides:
toStringin classGlueDefaultContext
-