com.poscoict.glueframework.web
Class GlueHttpReceiverAdapter
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.poscoict.glueframework.web.GlueHttpReceiverAdapter
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class GlueHttpReceiverAdapter
- extends HttpServlet
Http Receiver Servlet. ¿ÜºÎ ½Ã½ºÅÛÀ¸·ÎºÎÅÍ HttpRequest ¹æ½ÄÀ¸·Î Data¸¦ ¼ö½Å¹ÞÀº ¸ðµâ. EAI¿¡¼ Àü¼ÛµÇ´Â Message(Àü¹®)¸¦ ¼ö½ÅÇÏ¿©, Biz Controller·Î Àü¼ÛÇÏ´Â Receiver ClassÀÌ´Ù.
POST¹æ½ÄÀÇ Request¸¸ ¼ö½ÅÇϸç, GETÀÇ °æ¿ì´Â Error¸¦ ReturnÇÑ´Ù.(SC_FORBIDDEN)
web.xml ÆÄÀÏ ³»¿ë
HttpReceiver
com.poscoict.glueframework.web.GlueHttpReceiverAdapter
UD_SC_SUCCESS
200
HttpReceiver
*.tc
url
http://://HttpReceiver.tc
init-param
GlueHttpReceiverAdapter servletÀÇ init-paramÀº ´ÙÀ½°ú °°´Ù.
- UD_SC_SUCCESS : HttpResponse Á¤»ó »óÅÂÄÚµå Á¤ÀÇ, default 900
- UD_SC_RESEND : HttpResponse Àç¼Û½Å »óÅÂÄÚµå Á¤ÀÇ, default 600
- UD_SC_FAILURE : HttpResponse ¿¡·¯ »óÅÂÄÚµå Á¤ÀÇ, default 700
- TC_LENGTH : GlueService ½ÇÇà IDÀÇ ±æÀÌ(TC IDÀÇ ±æÀÌ) Á¤ÀÇ, default 8
- NAME_IFD : HttpRequestÀÇ parameter Áß InterfaceID, default ifd
- NAME_MESSAGE : HttpRequestÀÇ parameter Áß tc(message ¶Ç´Â file°æ·Î), default message
- NAME_TIMESTAMP : HttpRequestÀÇ parameter Áß ½Ã°£Á¤º¸, default timestamp
- NAME_SEQUENCE : HttpRequestÀÇ parameter Áß sequence Á¤º¸, default sequence
- NAME_TYPE : HttpRequestÀÇ parameter Áß type Á¤º¸, default type. ex type=T ¶Ç´Â type=F
logging ¿É¼Ç
- debug.httpreceiver : Java ¿É¼ÇÀ¸·Î ¸í½ÃÀû false¸¦ ÁöÁ¤ÇÒ °æ¿ì ¿£Áø·Î±×(System.out.println())¸¦ ³²±âÁö ¾ÊÀ½.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UD_SC_OK
public static final int UD_SC_OK
- See Also:
- Constant Field Values
UD_SC_RESEND
public static final int UD_SC_RESEND
- See Also:
- Constant Field Values
UD_SC_FAILURE
public static final int UD_SC_FAILURE
- See Also:
- Constant Field Values
DEFAULT_MSG_ID_LENGTH
public static final int DEFAULT_MSG_ID_LENGTH
- See Also:
GlueMessageParse
,
Constant Field Values
requestMap
protected Hashtable<String,String> requestMap
- ÇöÀç ó¸®ÁßÀÎ request Á¤º¸¸¦ °ü¸®.
userDefinedStatusCodeSuccess
protected int userDefinedStatusCodeSuccess
userDefinedStatusCodeSuccessResend
protected int userDefinedStatusCodeSuccessResend
userDefinedStatusCodeSuccessfailure
protected int userDefinedStatusCodeSuccessfailure
transactionCodeIdLength
protected int transactionCodeIdLength
GlueHttpReceiverAdapter
public GlueHttpReceiverAdapter()
init
public void init(ServletConfig config)
throws ServletException
- Specified by:
init
in interface Servlet
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doGet
in class HttpServlet
- Throws:
ServletException
IOException
doPost
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doPost
in class HttpServlet
- Throws:
ServletException
IOException
isValidMsg
protected boolean isValidMsg(String msg)
- Parameters:
msg
-
- Returns:
createGlueAtuditAttribute
protected GlueAuditAttributes createGlueAtuditAttribute(HttpServletRequest request,
GlueContext ctx)
- Parameters:
request
- ctx
-
- Returns:
Copyright © 2013–2014 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.