com.poscoict.glueframework.biz.activity
Class GlueMessageParse
java.lang.Object
com.poscoict.glueframework.biz.activity.GlueActivity<GlueContext>
com.poscoict.glueframework.biz.activity.GlueMessageParse
public class GlueMessageParse
- extends GlueActivity<GlueContext>
MessageParse Activity. GlueMessageParse Activity´Â TC(String) ¶Ç´Â File¿¡ ´ã±ä TC(String) ¸¦ LayoutÀ¸·Î ParseÇÏ¿© GlueMessage Instance¸¦ »ý¼ºÇÏ´Â ±â´ÉÀ»
¼öÇàÇÑ´Ù.
byte parsing ½Ã Encoding ¿ì¼±¼øÀ§´Â ´ÙÀ½°ú °°´Ù.
1. charset-name property
2. charset property
3. jvm default
Activity Property
- layout : (Çʼö) applicationContext.xmlÀÇ GlueLayoutManager bean id.
- message-id : (¼±ÅÃ) msg key. layout/{message-id}-msg.xml Âü°í ±Ù°Å.
[ default ] ctx.get("ReceiveTC")ÀÇ °ª¿¡¼ ÃßÃâÇÔ.
String s = (String)ctx.get("ReceiveTC");
String msg_id = s.substring(0, id_length);
- id-length : (¼±ÅÃ) "ReceiveTC"¿¡ ÇØ´çÇÏ´Â StringÀÇ substring ±âÁØ. message-id°¡ Á¤ÀǵǾî ÀÖ´Â °æ¿ì, id-length´Â »ç¿ëµÇÁö ¾ÊÀ½.
[ default ] : 8
- charset : (¼±ÅÃ) ParseTypeÀÌ byte ÀÏ °æ¿ì »ç¿ëµÊ. °íÁ¤°ª.
- charset-name : (¼±ÅÃ) ParseTypeÀÌ byte ÀÏ °æ¿ì »ç¿ëµÊ. µ¿Àû°ª.
¿¹Á¦
»ç¿ë ¿¹# 1
- ÃÖ¼Ò»ç¿ë
»ç¿ë ¿¹# 2
- message-id °¡ ¼ö½ÅData["ReceiveTC"] ¿¡¼ ÃßÃâÇÏ´Â °Í°ú ´Ù¸¦ °æ¿ì
»ç¿ë ¿¹# 3
- message-id °¡ ÁÖ¾îÁöÁö ¾Ê¾Æ ¼ö½ÅData["ReceiveTC"] ¿¡¼ ÃßÃâÇؾßÇÏ´Â °æ¿ì.
»ç¿ë ¿¹# 4
- charset-name »ç¿ë½Ã.. ctx.get(this.getProperty("charset-name")) ÀÇ °ªÀÌ »ç¿ëµÊ.
»ç¿ë ¿¹# 5
- charset »ç¿ë½Ã activity property value°¡ »ç¿ëµÊ.
Âü°í : applicationContext.xml
Âü°í : Java Code (Custom)
ctx.put("encoding", "UTF-8");
Âü°í : glue.properties
msg.parsing.type=byte
Âü°í : GlueConText ±¸¼º - ReceiveTC, ReceiveTCTypeÀº Çʼö.
ctx.put("ReceiveTC", "MSGFW001R10aaa seoul ");
ctx.put("ReceiveTCMsg", "MSGFW001R10aaa seoul ");
ctx.put("ReceiveTCType", "T")
//ctx.put("ReceiveTC", new File("/APP/CHAIN/MSGFW002_20130201.dat"));
//ctx.put("ReceiveTCMsg", "MSGFW002/APP/CHAIN/MSGFW002_20130201.dat");
//ctx.put("ReceiveTCType", "F")
Methods inherited from class com.poscoict.glueframework.biz.activity.GlueActivity |
commitTransaction, commitTransaction, getDao, getEventList, getName, getProperty, getPropertyNames, getTransition, rollbackTransaction, rollbackTransaction, setEventList, setName, setProperty, setTransition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MSG_ID_LENGTH
public static final int DEFAULT_MSG_ID_LENGTH
- See Also:
GlueHttpReceiverAdapter
,
Constant Field Values
GlueMessageParse
public GlueMessageParse()
runActivity
public String runActivity(GlueContext ctx)
- Description copied from class:
GlueActivity
- Sub Class¿¡¼ ¹Ýµå½Ã ±¸ÇöÇÏ¿©¾ß ÇÏ´Â Abstract Method À̸ç ÀÌ Method´Â F/W¿¡¼ È£ÃâÇÑ´Ù. °á°ú °ªÀº GlueContext¿¡ ´ã¾Æ¼ ´ÙÀ½ Activity ¶Ç´Â F/W¿¡ Àü´ÞÇÏ°Ô µÈ´Ù. ÇÊ¿äÇÑ ¸ðµç Data´Â
GlueContext¿¡¼ È£ÃâÇÏ¿© »ç¿ëÇÏ°Ô µÈ´Ù.
- Specified by:
runActivity
in class GlueActivity<GlueContext>
- Parameters:
ctx
- GlueContext
- Returns:
- String Á¤»óÀûÀ̸é "success"¸¦ Return ÇÏ°í ºñÁ¤»ó 󸮸¦ ¿øÇϸé "failure"¸¦ Return ÇÑ´Ù.
¿¹)
==> return "success"À̸é BizLogic Activity ¸¦ ½ÇÇàÇÔ.
Copyright © 2013–2018 POSCO ICT. All rights reserved.