Package com.poscoict.glueframework.web
Class GlueEdgeServerAdapter
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.poscoict.glueframework.web.GlueEdgeServerAdapter
- All Implemented Interfaces:
Servlet
,ServletConfig
,Serializable
Edge Server를 통해 Senser, Detector, RFID 등 단말에서 들어오는 정보를 수신하는 Class.
web.xml 파일 내용
<servlet>
<servlet-name>HttpReceiver</servlet-name>
<servlet-class>com.poscoict.glueframework.web.GlueEdgeServerAdapter</servlet-class>
<init-param>
<param-name>NAME_MESSAGE</param-name>
<param-value>ITRS</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>HttpReceiver</servlet-name>
<url-pattern>*.rfid</url-pattern>
</servlet-mapping>
url
http://{ip}:{port}/{context-root}/HttpReceiver.rfid
init-param GlueEdgeServerAdapter servlet의 init-param은 다음과 같다.
- UD_SC_SUCCESS : HttpResponse 정상 상태코드 정의, default 200
- UD_SC_FAILURE : HttpResponse 에러 상태코드 정의, default 406
- NAME_MESSAGE : HttpRequest의 parameter key, default ITRS
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(ServletConfig config) void
service
(HttpServletRequest request, HttpServletResponse response) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
GlueEdgeServerAdapter
public GlueEdgeServerAdapter()
-
-
Method Details
-
init
- Specified by:
init
in interfaceServlet
- Overrides:
init
in classHttpServlet
- Throws:
ServletException
-
service
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException - Overrides:
service
in classHttpServlet
- Throws:
ServletException
IOException
-