com.poscoict.glueframework.web
Class GlueEdgeServerAdapter

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.poscoict.glueframework.web.GlueEdgeServerAdapter
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class GlueEdgeServerAdapter
extends HttpServlet

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://://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:
Serialized Form

Constructor Summary
GlueEdgeServerAdapter()
           
 
Method Summary
 void init(ServletConfig config)
           
 void service(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueEdgeServerAdapter

public GlueEdgeServerAdapter()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

service

public void service(HttpServletRequest request,
                    HttpServletResponse response)
             throws ServletException,
                    IOException
Overrides:
service in class HttpServlet
Throws:
ServletException
IOException


Copyright © 2013–2018 POSCO ICT. All rights reserved.