Class GlueDefaultContext
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
- All Implemented Interfaces:
GlueContext
,GlueAuditAttributeHolder
,Serializable
,Cloneable
,Map<String,
Object>
- Direct Known Subclasses:
GlueWebContext
모든 Layer에서 공통으로 Data 를 저장하고 조회 하는 Class이다.
- 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
ConstructorsConstructorDescription생성자(constructor).GlueDefaultContext
(GlueContext.EventType eventSourceType) 생성자(constructor). -
Method Summary
Modifier and TypeMethodDescriptionget
(String key, GlueContext.ContentType type) RootMap이 아닌 ContentType에 해당 하는 Map에서 해당 key의 값을 얻는다.<T> T
getAndTryToCast
(String key, Class<T> valueClass, GlueContext.ContentType type) Audit 항목을 얻는다.Controller에서 발생한 Exception을 ReturnNonUI의 TC 처리를 위한 Data 를 ReturnNonUI의 File TC 처리를 위한 Data 를 Returnput
(String key, Object value, GlueContext.ContentType type) 확장대상..void
putAll
(Map<? extends String, ? extends Object> map, GlueContext.ContentType type) 확장대상..void
setAuditAttributes
(GlueAuditAttributes auditAttribute) Audit 항목을 설정한다.void
Internal Use Only.void
setMessage
(GlueMessage message) NonUI의 TC 처리를 위한 Data Setvoid
setMessages
(List<GlueMessage> messages) NonUI의 File TC 처리를 위한 Data Setvoid
setMultiPartRequest
(GlueMultipartRequest multipartRequest) toString()
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, get, 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
get, 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
-
GlueDefaultContext
public GlueDefaultContext()생성자(constructor). -
GlueDefaultContext
생성자(constructor).- Parameters:
eventSourceType
-
-
-
Method Details
-
getEventSourceType
- Specified by:
getEventSourceType
in interfaceGlueContext
- Returns:
- DEFAULT, WEB_BROWSER, EAI_SERVER, EDGE_SERVER
-
put
Description copied from interface:GlueContext
확장대상..- Specified by:
put
in interfaceGlueContext
- Parameters:
key
-value
-type
-- Returns:
- Object
-
getDataAsMap
- Specified by:
getDataAsMap
in interfaceGlueContext
-
get
Description copied from interface:GlueContext
RootMap이 아닌 ContentType에 해당 하는 Map에서 해당 key의 값을 얻는다.- Specified by:
get
in interfaceGlueContext
- Parameters:
key
-type
-- Returns:
- Object
-
getAndTryToCast
- Specified by:
getAndTryToCast
in interfaceGlueContext
- Parameters:
key
-valueClass
-type
-- Returns:
- T
-
putAll
Description copied from interface:GlueContext
확장대상..- Specified by:
putAll
in interfaceGlueContext
- Parameters:
map
-type
-
-
getAuditAttributes
Description copied from interface:GlueAuditAttributeHolder
Audit 항목을 얻는다.- Specified by:
getAuditAttributes
in interfaceGlueAuditAttributeHolder
- Returns:
- Audit 항목
-
setAuditAttributes
Description copied from interface:GlueAuditAttributeHolder
Audit 항목을 설정한다.- Specified by:
setAuditAttributes
in interfaceGlueAuditAttributeHolder
- Parameters:
auditAttribute
- Audit 항목
-
getMessage
Description copied from interface:GlueContext
NonUI의 TC 처리를 위한 Data 를 Return- Specified by:
getMessage
in interfaceGlueContext
- Returns:
- GlueMessage NonUI의 TC 처리 Data
-
setMessage
Description copied from interface:GlueContext
NonUI의 TC 처리를 위한 Data Set- Specified by:
setMessage
in interfaceGlueContext
- Parameters:
message
- NonUI의 TC 처리 Data
-
getMessages
Description copied from interface:GlueContext
NonUI의 File TC 처리를 위한 Data 를 Return- Specified by:
getMessages
in interfaceGlueContext
- Returns:
- GlueMessage[] NonUI의 File TC 처리 Data
-
setMessages
Description copied from interface:GlueContext
NonUI의 File TC 처리를 위한 Data Set- Specified by:
setMessages
in interfaceGlueContext
- Parameters:
messages
- NonUI의 File TC 처리 Data
-
getException
Description copied from interface:GlueContext
Controller에서 발생한 Exception을 Return- Specified by:
getException
in interfaceGlueContext
- Returns:
- Throwable Tag showMessage 에서 사용할 Exception Data
-
setException
Description copied from interface:GlueContext
Internal Use Only. Activity에서 failure를 정의 하지 않았고 Controller가 비정상 종료시 발생한 Exception- Specified by:
setException
in interfaceGlueContext
- Parameters:
ex
- BizController에서 Setting
-
setMultiPartRequest
- Specified by:
setMultiPartRequest
in interfaceGlueContext
-
getMultiPartRequest
- Specified by:
getMultiPartRequest
in interfaceGlueContext
-
toString
- Overrides:
toString
in classAbstractMap<String,
Object>
-