public class GlueHttpReceiverAdapter extends 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(HttpServletRequest request,
GlueContext ctx) |
void |
destroy() |
void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
void |
doPost(HttpServletRequest request,
HttpServletResponse response) |
void |
init(ServletConfig config) |
protected boolean |
isValidMsg(String msg) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
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(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class GenericServlet
ServletException
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class HttpServlet
ServletException
IOException
protected boolean isValidMsg(String msg)
msg
- protected GlueAuditAttributes createGlueAtuditAttribute(HttpServletRequest request, GlueContext ctx)
request
- ctx
- public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
Copyright © 2013–2016 POSCO ICT. All rights reserved.