com.poscoict.glueframework.xplatform.web
Class GlueXplatformAdaptor

java.lang.Object
  extended by com.poscoict.glueframework.xplatform.web.GlueXplatformAdaptor
All Implemented Interfaces:
Filter

public class GlueXplatformAdaptor
extends Object
implements Filter

Ŭ¶óÀ̾ðÆ®¿¡¼­ ¹ß»ýÇÑ XPlatform Data Structure(DatasetList, VariableList)¸¦ Glue FrameworkÀÇ GlueContext¿¡ ÀúÀåÇØ ÁÖ´Â ¾î´ðÅÍ Å¬·¡½º.
¼­ºí¸´ ÇÊÅÍ·Î ±¸ÇöÀÌ µÇ¾îÀÖÀ¸¹Ç·Î web.xml¿¡ ´ÙÀ½ ÇÊÅÍ Á¤º¸¸¦ Ãß°¡ÇØ¾ß ÇÑ´Ù.

 
 <filter>
     <filter-name>GlueAdaptorXPlatform</filter-name>
     <filter-class>com.poscoict.glueframework.xplatform.web.GlueXplatformAdapto</filter-class>
     <init-param>
         <param-name>CharSet</param-name>
         <param-value>euc-kr</param-value>
     </init-param>
 </filter>
 <filter-mapping>
      <filter-name>GlueAdaptorXPlatform</filter-name>
      <url-pattern>*.mvc</url-pattern>
 </filter-mapping>
 
 

Author:
Á¶Ã¢Èñ

Field Summary
protected  String charset
           
protected  short compressMethod
           
protected  String contentType
           
protected  boolean isOnlyString
           
 
Constructor Summary
GlueXplatformAdaptor()
           
 
Method Summary
 void destroy()
          Clean up inner properties
 void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain)
          Client¿¡¼­ XPlatformÀÇ DatasetList, VariableList¸¦ ÃßÃâ
 void init(FilterConfig config)
          'CharSet', 'ContentType' ÆĶó¹ÌÅ͸¦ ¼³Á¤ÇÑ´Ù.
protected  com.tobesoft.xplatform.data.VariableList markFailureProcessing(com.tobesoft.xplatform.data.VariableList variableList, String message)
          ½ÇÇà Áß ¿¡·¯ ¹ß»ý½Ã XPlatform VariableList¿¡ ¿¡·¯ ¸Þ¼¼Áö¸¦ ÀúÀå
protected  void saveDataSetList(com.tobesoft.xplatform.data.DataSetList datasetList, HttpServletRequest request)
          XPlatform DataSetListÀ» ÃßÃâÇؼ­ HttpRequestÀÇ Attribute¿¡ ÀúÀåÇÑ´Ù.
protected  void saveVariableList(com.tobesoft.xplatform.data.VariableList varList, HttpServletRequest request)
          XPlatform VariableListÀÇ °¢ Ç׸ñÀ» ÃßÃâÇؼ­ HttpRequestÀÇ Attribute¿¡ ÀúÀåÇÑ´Ù.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

charset

protected String charset

compressMethod

protected short compressMethod

contentType

protected String contentType

isOnlyString

protected boolean isOnlyString
Constructor Detail

GlueXplatformAdaptor

public GlueXplatformAdaptor()
Method Detail

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¿¡¼­ XPlatformÀÇ DatasetList, VariableList¸¦ ÃßÃâ

Specified by:
doFilter in interface Filter
Parameters:
filterChain - FilterChain
response - ServletReponse
request - ServletRequest
Throws:
ServletException
IOException

saveDataSetList

protected void saveDataSetList(com.tobesoft.xplatform.data.DataSetList datasetList,
                               HttpServletRequest request)
XPlatform DataSetListÀ» ÃßÃâÇؼ­ HttpRequestÀÇ Attribute¿¡ ÀúÀåÇÑ´Ù.

Parameters:
request - HttpServletRequest
varList - XPlatform DataSetList

saveVariableList

protected void saveVariableList(com.tobesoft.xplatform.data.VariableList varList,
                                HttpServletRequest request)
XPlatform VariableListÀÇ °¢ Ç׸ñÀ» ÃßÃâÇؼ­ HttpRequestÀÇ Attribute¿¡ ÀúÀåÇÑ´Ù.

Parameters:
request - HttpServletRequest
varList - XPlatform VariableList

markFailureProcessing

protected com.tobesoft.xplatform.data.VariableList markFailureProcessing(com.tobesoft.xplatform.data.VariableList variableList,
                                                                         String message)
½ÇÇà Áß ¿¡·¯ ¹ß»ý½Ã XPlatform VariableList¿¡ ¿¡·¯ ¸Þ¼¼Áö¸¦ ÀúÀå

Parameters:
variableList - XPlatform VariableList
message - String


Copyright © 2013–2015 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.