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–2021 POSCO ICT. All rights reserved.