Skip to content

Commit

Permalink
tian codecfilter
Browse files Browse the repository at this point in the history
  • Loading branch information
shi.pengyan committed Oct 26, 2015
1 parent 00aa875 commit 93cdf97
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/resources/spring/spring-mina.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,25 @@


<bean name="customProtocolHandler" class="com.spy.mvc.mybatis.mina.CustomProtocolHandler" />

<bean id="loggingFilter" class="org.apache.mina.filter.logging.LoggingFilter" />

<bean id="codecFilter" class="org.apache.mina.filter.codec.ProtocolCodecFilter">
<constructor-arg>
<!-- <bean class="org.apache.mina.filter.codec.textline.TextLineCodecFactory" /> -->
<!-- <bean class="cn.org.handler.MyCodeFactory"></bean> -->
<bean class="org.apache.mina.filter.codec.textline.TextLineCodecFactory" />
</constructor-arg>
</bean>

<!-- The filter chain. -->
<bean id="filterChainBuilder" class="org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder">
<property name="filters">
<map>
<entry key="loggingFilter" value-ref="loggingFilter" />
<!-- <entry key="codecFilter" value-ref="snmpCodecFilter" /> -->
<entry key="codecFilter" value-ref="codecFilter" />

</map>
</property>
</bean>
Expand Down

0 comments on commit 93cdf97

Please sign in to comment.