public class GlueWebContext extends GlueDefaultContext
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
GlueContext.ContentType, GlueContext.EventType, GlueContext.PortletContentType, GlueContext.WebContentType
Constructor and Description |
---|
GlueWebContext()
»ý¼ºÀÚ(constructor).
|
Modifier and Type | Method and Description |
---|---|
Object |
get(Object key)
Key ÇØ´ç ÇÏ´Â °ªÀ» Á¶È¸ÇÔ.
|
Object |
get(String key,
GlueContext.ContentType type)
RootMapÀÌ ¾Æ´Ñ ContentType¿¡ ÇØ´ç ÇÏ´Â Map¿¡¼ ÇØ´ç keyÀÇ °ªÀ» ¾ò´Â´Ù.
|
<T> T |
getAndTryToCast(String key,
Class<T> valueClass,
GlueContext.ContentType type) |
GlueHashMap<String,Object> |
getDataAsMap(GlueContext.ContentType type) |
GlueMultipartRequest |
getMultiPartRequest() |
Map<String,Object> |
getSessionAttr() |
Object |
put(String key,
Object value,
GlueContext.ContentType type)
È®Àå´ë»ó..
|
void |
putAll(Map<? extends String,? extends Object> map,
GlueContext.ContentType type)
È®Àå´ë»ó..
|
void |
setMultiPartRequest(GlueMultipartRequest multipartRequest) |
String |
toString() |
getAuditAttributes, getEventSourceType, getException, getMessage, getMessages, setAuditAttributes, setException, setMessage, setMessages
getAndTryToCast, newGlueHashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode
finalize, getClass, notify, notifyAll, wait, wait, wait
getAndTryToCast, put, putAll, remove
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
public Object get(Object 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) ¸¦ »ç¿ëÇÑ´Ù.
public GlueHashMap<String,Object> getDataAsMap(GlueContext.ContentType type)
getDataAsMap
in interface GlueContext
getDataAsMap
in class GlueDefaultContext
public Object get(String key, GlueContext.ContentType type)
GlueContext
get
in interface GlueContext
get
in class GlueDefaultContext
public <T> T getAndTryToCast(String key, Class<T> valueClass, GlueContext.ContentType type)
getAndTryToCast
in interface GlueContext
getAndTryToCast
in class GlueDefaultContext
public Object put(String key, Object value, GlueContext.ContentType type)
GlueContext
put
in interface GlueContext
put
in class GlueDefaultContext
public void putAll(Map<? extends String,? extends Object> map, GlueContext.ContentType type)
GlueContext
putAll
in interface GlueContext
putAll
in class GlueDefaultContext
public void setMultiPartRequest(GlueMultipartRequest multipartRequest)
setMultiPartRequest
in interface GlueContext
setMultiPartRequest
in class GlueDefaultContext
public GlueMultipartRequest getMultiPartRequest()
getMultiPartRequest
in interface GlueContext
getMultiPartRequest
in class GlueDefaultContext
public String toString()
toString
in class GlueDefaultContext
Copyright © 2013–2019 POSCO ICT. All rights reserved.