com.poscoict.glueframework.context
Class GlueDefaultContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by com.poscoict.glueframework.util.GlueHashMap<String,Object>
              extended by com.poscoict.glueframework.context.GlueDefaultContext
All Implemented Interfaces:
GlueContext, GlueAuditAttributeHolder, Serializable, Cloneable, Map<String,Object>
Direct Known Subclasses:
GluePortletContext, GlueWebContext

public class GlueDefaultContext
extends GlueHashMap<String,Object>
implements GlueContext

¸ðµç Layer¿¡¼­ °øÅëÀ¸·Î Data ¸¦ ÀúÀåÇÏ°í Á¶È¸ ÇÏ´Â ClassÀÌ´Ù.

See Also:
Serialized Form

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.PortletContentType, GlueContext.WebContentType
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
GlueDefaultContext()
          »ý¼ºÀÚ(constructor).
GlueDefaultContext(GlueContext.EventType eventSourceType)
          »ý¼ºÀÚ(constructor).
 
Method Summary
 Object get(String key, GlueContext.ContentType type)
          RootMapÀÌ ¾Æ´Ñ ContentType¿¡ ÇØ´ç ÇÏ´Â Map¿¡¼­ ÇØ´ç keyÀÇ °ªÀ» ¾ò´Â´Ù.
<T> T
getAndTryToCast(String key, Class<T> valueClass, GlueContext.ContentType type)
           
 GlueAuditAttributes getAuditAttributes()
          Audit Ç׸ñÀ» ¾ò´Â´Ù.
 GlueHashMap<String,Object> getDataAsMap(GlueContext.ContentType type)
           
 GlueContext.EventType getEventSourceType()
           
 Throwable getException()
          Controller¿¡¼­ ¹ß»ýÇÑ ExceptionÀ» Return
 GlueMessage getMessage()
          NonUIÀÇ TC 󸮸¦ À§ÇÑ Data ¸¦ Return
 List<GlueMessage> getMessages()
          NonUIÀÇ File TC 󸮸¦ À§ÇÑ Data ¸¦ Return
 GlueMultipartRequest getMultiPartRequest()
           
 Object put(String key, Object value, GlueContext.ContentType type)
          È®Àå´ë»ó..
 void putAll(Map<? extends String,? extends Object> map, GlueContext.ContentType type)
          È®Àå´ë»ó..
 void setAuditAttributes(GlueAuditAttributes auditAttribute)
          Audit Ç׸ñÀ» ¼³Á¤ÇÑ´Ù.
 void setException(Throwable ex)
          Internal Use Only.
 void setMessage(GlueMessage message)
          NonUIÀÇ TC 󸮸¦ À§ÇÑ Data Set
 void setMessages(List<GlueMessage> messages)
          NonUIÀÇ File TC 󸮸¦ À§ÇÑ Data Set
 void setMultiPartRequest(GlueMultipartRequest multipartRequest)
           
 String toString()
           
 
Methods inherited from class com.poscoict.glueframework.util.GlueHashMap
getAndTryToCast, newGlueHashMap
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, 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, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, size, values
 

Constructor Detail

GlueDefaultContext

public GlueDefaultContext()
»ý¼ºÀÚ(constructor).


GlueDefaultContext

public GlueDefaultContext(GlueContext.EventType eventSourceType)
»ý¼ºÀÚ(constructor).

Parameters:
eventSourceType -
Method Detail

getEventSourceType

public GlueContext.EventType getEventSourceType()
Specified by:
getEventSourceType in interface GlueContext
Returns:
DEFAULT, WEB_BROWSER, EAI_SERVER, EDGE_SERVER

put

public Object put(String key,
                  Object value,
                  GlueContext.ContentType type)
Description copied from interface: GlueContext
È®Àå´ë»ó..

Specified by:
put in interface GlueContext
Returns:
Object

getDataAsMap

public GlueHashMap<String,Object> getDataAsMap(GlueContext.ContentType type)
Specified by:
getDataAsMap in interface GlueContext

get

public Object get(String key,
                  GlueContext.ContentType type)
Description copied from interface: GlueContext
RootMapÀÌ ¾Æ´Ñ ContentType¿¡ ÇØ´ç ÇÏ´Â Map¿¡¼­ ÇØ´ç keyÀÇ °ªÀ» ¾ò´Â´Ù.

Specified by:
get in interface GlueContext
Returns:
Object

getAndTryToCast

public <T> T getAndTryToCast(String key,
                             Class<T> valueClass,
                             GlueContext.ContentType type)
Specified by:
getAndTryToCast in interface GlueContext
Returns:

putAll

public void putAll(Map<? extends String,? extends Object> map,
                   GlueContext.ContentType type)
Description copied from interface: GlueContext
È®Àå´ë»ó..

Specified by:
putAll in interface GlueContext

getAuditAttributes

public GlueAuditAttributes getAuditAttributes()
Description copied from interface: GlueAuditAttributeHolder
Audit Ç׸ñÀ» ¾ò´Â´Ù.

Specified by:
getAuditAttributes in interface GlueAuditAttributeHolder
Returns:
Audit Ç׸ñ

setAuditAttributes

public void setAuditAttributes(GlueAuditAttributes auditAttribute)
Description copied from interface: GlueAuditAttributeHolder
Audit Ç׸ñÀ» ¼³Á¤ÇÑ´Ù.

Specified by:
setAuditAttributes in interface GlueAuditAttributeHolder
Parameters:
auditAttribute - Audit Ç׸ñ

getMessage

public GlueMessage getMessage()
Description copied from interface: GlueContext
NonUIÀÇ TC 󸮸¦ À§ÇÑ Data ¸¦ Return

Specified by:
getMessage in interface GlueContext
Returns:
GlueMessage NonUIÀÇ TC ó¸® Data

setMessage

public void setMessage(GlueMessage message)
Description copied from interface: GlueContext
NonUIÀÇ TC 󸮸¦ À§ÇÑ Data Set

Specified by:
setMessage in interface GlueContext
Parameters:
message - NonUIÀÇ TC ó¸® Data

getMessages

public List<GlueMessage> getMessages()
Description copied from interface: GlueContext
NonUIÀÇ File TC 󸮸¦ À§ÇÑ Data ¸¦ Return

Specified by:
getMessages in interface GlueContext
Returns:
GlueMessage[] NonUIÀÇ File TC ó¸® Data

setMessages

public void setMessages(List<GlueMessage> messages)
Description copied from interface: GlueContext
NonUIÀÇ File TC 󸮸¦ À§ÇÑ Data Set

Specified by:
setMessages in interface GlueContext
Parameters:
messages - NonUIÀÇ File TC ó¸® Data

getException

public Throwable getException()
Description copied from interface: GlueContext
Controller¿¡¼­ ¹ß»ýÇÑ ExceptionÀ» Return

Specified by:
getException in interface GlueContext
Returns:
Throwable Tag showMessage ¿¡¼­ »ç¿ëÇÒ Exception Data

setException

public void setException(Throwable ex)
Description copied from interface: GlueContext
Internal Use Only. Activity¿¡¼­ failure¸¦ Á¤ÀÇ ÇÏÁö ¾Ê¾Ò°í Controller°¡ ºñÁ¤»ó Á¾·á½Ã ¹ß»ýÇÑ Exception

Specified by:
setException in interface GlueContext
Parameters:
ex - - BizController¿¡¼­ Setting

setMultiPartRequest

public void setMultiPartRequest(GlueMultipartRequest multipartRequest)
Specified by:
setMultiPartRequest in interface GlueContext

getMultiPartRequest

public GlueMultipartRequest getMultiPartRequest()
Specified by:
getMultiPartRequest in interface GlueContext

toString

public String toString()
Overrides:
toString in class AbstractMap<String,Object>


Copyright © 2013–2018 POSCO ICT. All rights reserved.