1*876b9d75SXin Li<?xml version="1.0" encoding="UTF-8"?> 2*876b9d75SXin Li<!-- 3*876b9d75SXin Li Copyright 2007 the original author or authors. 4*876b9d75SXin Li 5*876b9d75SXin Li Licensed under the Apache License, Version 2.0 (the "License"); 6*876b9d75SXin Li you may not use this file except in compliance with the License. 7*876b9d75SXin Li You may obtain a copy of the License at 8*876b9d75SXin Li 9*876b9d75SXin Li http://www.apache.org/licenses/LICENSE-2.0 10*876b9d75SXin Li 11*876b9d75SXin Li Unless required by applicable law or agreed to in writing, software 12*876b9d75SXin Li distributed under the License is distributed on an "AS IS" BASIS, 13*876b9d75SXin Li WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14*876b9d75SXin Li See the License for the specific language governing permissions and 15*876b9d75SXin Li limitations under the License. 16*876b9d75SXin Li--> 17*876b9d75SXin Li 18*876b9d75SXin Li<!-- Spring Framework configuration for StubFtpServer --> 19*876b9d75SXin Li<!-- The SpringConfigurationTest class has dependencies on 20*876b9d75SXin Li several of the bean names and values configured within this file --> 21*876b9d75SXin Li 22*876b9d75SXin Li<beans xmlns="http://www.springframework.org/schema/beans" 23*876b9d75SXin Li xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 24*876b9d75SXin Li xsi:schemaLocation="http://www.springframework.org/schema/beans 25*876b9d75SXin Li http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> 26*876b9d75SXin Li 27*876b9d75SXin Li <bean id="stubFtpServer" class="org.mockftpserver.stub.StubFtpServer"> 28*876b9d75SXin Li <property name="serverControlPort" value="9981" /> 29*876b9d75SXin Li <property name="commandHandlers"> 30*876b9d75SXin Li <map> 31*876b9d75SXin Li 32*876b9d75SXin Li <entry key="LIST"> 33*876b9d75SXin Li <bean class="org.mockftpserver.stub.command.ListCommandHandler"> 34*876b9d75SXin Li <property name="directoryListing"> 35*876b9d75SXin Li <value> 36*876b9d75SXin Li 11-09-01 12:30PM 406348 File2350.log 37*876b9d75SXin Li 11-01-01 1:30PM <DIR> 0 archive 38*876b9d75SXin Li </value> 39*876b9d75SXin Li </property> 40*876b9d75SXin Li </bean> 41*876b9d75SXin Li </entry> 42*876b9d75SXin Li 43*876b9d75SXin Li <entry key="PWD"> 44*876b9d75SXin Li <bean class="org.mockftpserver.stub.command.PwdCommandHandler"> 45*876b9d75SXin Li <property name="directory" value="foo/bar" /> 46*876b9d75SXin Li </bean> 47*876b9d75SXin Li </entry> 48*876b9d75SXin Li 49*876b9d75SXin Li <entry key="DELE"> 50*876b9d75SXin Li <bean class="org.mockftpserver.stub.command.DeleCommandHandler"> 51*876b9d75SXin Li <property name="replyCode" value="450" /> 52*876b9d75SXin Li </bean> 53*876b9d75SXin Li </entry> 54*876b9d75SXin Li 55*876b9d75SXin Li <entry key="RETR"> 56*876b9d75SXin Li <bean class="org.mockftpserver.stub.command.RetrCommandHandler"> 57*876b9d75SXin Li <property name="fileContents" 58*876b9d75SXin Li value="Sample file contents line 1 Line 2 Line 3"/> 59*876b9d75SXin Li </bean> 60*876b9d75SXin Li </entry> 61*876b9d75SXin Li 62*876b9d75SXin Li </map> 63*876b9d75SXin Li </property> 64*876b9d75SXin Li </bean> 65*876b9d75SXin Li 66*876b9d75SXin Li</beans>