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 © 2023–2024 POSCO DX. All rights reserved.