public class GlueHttpReceiverAdapter
extends javax.servlet.http.HttpServlet
web.xml ÆÄÀÏ ³»¿ëurl http:// HttpReceiver com.poscoict.glueframework.web.GlueHttpReceiverAdapter UD_SC_SUCCESS 200 HttpReceiver *.tc : / /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())¸¦ ³²±âÁö ¾ÊÀ½.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MSG_ID_LENGTH |
protected Hashtable<String,String> |
requestMap
ÇöÀç ó¸®ÁßÀÎ request Á¤º¸¸¦ °ü¸®.
|
protected int |
transactionCodeIdLength |
static int |
UD_SC_FAILURE |
static int |
UD_SC_OK |
static int |
UD_SC_RESEND |
protected int |
userDefinedStatusCodeSuccess |
protected int |
userDefinedStatusCodeSuccessfailure |
protected int |
userDefinedStatusCodeSuccessResend |
Constructor and Description |
---|
GlueHttpReceiverAdapter() |
Modifier and Type | Method and Description |
---|---|
protected GlueAuditAttributes |
createGlueAtuditAttribute(javax.servlet.http.HttpServletRequest request,
GlueContext ctx) |
void |
destroy() |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init(javax.servlet.ServletConfig config) |
protected boolean |
isValidMsg(String msg) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final int UD_SC_OK
public static final int UD_SC_RESEND
public static final int UD_SC_FAILURE
public static final int DEFAULT_MSG_ID_LENGTH
GlueMessageParse
,
Constant Field Valuesprotected int userDefinedStatusCodeSuccess
protected int userDefinedStatusCodeSuccessResend
protected int userDefinedStatusCodeSuccessfailure
protected int transactionCodeIdLength
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected boolean isValidMsg(String msg)
msg
- protected GlueAuditAttributes createGlueAtuditAttribute(javax.servlet.http.HttpServletRequest request, GlueContext ctx)
request
- ctx
- public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Copyright © 2013–2019 POSCO ICT. All rights reserved.