Class GlueNexacroAdaptor

java.lang.Object
com.poscoict.glueframework.nexacro17.web.GlueNexacroAdaptor
All Implemented Interfaces:
Filter

public class GlueNexacroAdaptor extends Object implements Filter
클라이언트에서 발생한 Nexacro Data Structure(DatasetList, VariableList)를 Glue Framework의 GlueContext에 저장해 주는 어댑터 클래스.
서블릿 필터로 구현이 되어있으므로 web.xml에 다음 필터 정보를 추가해야 한다.
  • Field Details

    • logger

      protected GlueLog logger
    • charset

      protected String charset
    • contentType

      protected String contentType
  • Constructor Details

    • GlueNexacroAdaptor

      public GlueNexacroAdaptor()
  • Method Details

    • init

      public void init(FilterConfig config) throws ServletException
      'CharSet', 'ContentType' 파라미터를 설정한다.
      Specified by:
      init in interface Filter
      Parameters:
      config -
      Throws:
      ServletException
    • destroy

      public void destroy()
      Clean up inner properties
      Specified by:
      destroy in interface Filter
    • doFilter

      public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException
      Client에서 Nexacro의 DatasetList, VariableList를 추출
      Specified by:
      doFilter in interface Filter
      Parameters:
      request - ServletRequest
      response - ServletReponse
      filterChain - FilterChain
      Throws:
      ServletException
      IOException
    • saveDataSetList

      protected void saveDataSetList(com.nexacro17.xapi.data.DataSetList datasetList, HttpServletRequest request)
      Nexacro DataSetList을 추출해서 HttpRequest의 Attribute에 저장한다.
      Parameters:
      datasetList - DataSetList
      request - HttpServletRequest
    • saveVariableList

      protected void saveVariableList(com.nexacro17.xapi.data.VariableList varList, HttpServletRequest request)
      Nexacro VariableList의 각 항목을 추출해서 HttpRequest의 Attribute에 저장한다.
      Parameters:
      varList - VariableList
      request - HttpServletRequest
    • markFailureProcessing

      protected com.nexacro17.xapi.data.VariableList markFailureProcessing(com.nexacro17.xapi.data.VariableList variableList, String message)
      실행 중 에러 발생시 Nexacro VariableList에 에러 메세지를 저장
      Parameters:
      variableList - Nexacro VariableList
      message - String
    • setFilterConfig

      public void setFilterConfig(FilterConfig filterConfig)