blob: 6cf0e5c41754f0f023a3cc32c9aa89c26828d9f8 [file]
<?xml version="1.0" encoding="UTF-8"?>
<!-- Author: bfoster Description: ProtocolManager Configuration -->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean
class="org.apache.oodt.commons.spring.postprocessor.SetIdBeanPostProcessor" />
<bean id="action" lazy-init="true"
class="org.apache.oodt.commons.option.CmdLineOption">
<property name="shortOption" value="a" />
<property name="longOption" value="action" />
<property name="description" value="The Action to perfrom" />
<property name="hasArgs" value="true" />
<property name="optionArgName" value="bean id" />
<property name="required" value="true" />
</bean>
<bean id="user" lazy-init="true"
class="org.apache.oodt.commons.option.CmdLineOption">
<property name="shortOption" value="u" />
<property name="longOption" value="user" />
<property name="description" value="Username for authentication" />
<property name="hasArgs" value="true" />
<property name="optionArgName" value="username" />
<property name="required" value="false" />
<property name="handler">
<bean
class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
<property name="applyToBeans">
<list>
<bean class="org.apache.oodt.commons.option.handler.BeanInfo"
p:bean-ref="Download" />
</list>
</property>
</bean>
</property>
</bean>
<bean id="pass" lazy-init="true"
class="org.apache.oodt.commons.option.CmdLineOption">
<property name="shortOption" value="p" />
<property name="longOption" value="pass" />
<property name="description" value="Password for authentication" />
<property name="hasArgs" value="true" />
<property name="optionArgName" value="password" />
<property name="required" value="false" />
<property name="handler">
<bean
class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
<property name="applyToBeans">
<list>
<bean class="org.apache.oodt.commons.option.handler.BeanInfo"
p:bean-ref="Download" />
</list>
</property>
</bean>
</property>
</bean>
<bean id="url" lazy-init="true"
class="org.apache.oodt.commons.option.CmdLineOption">
<property name="shortOption" value="url" />
<property name="longOption" value="url" />
<property name="description" value="URL to download" />
<property name="hasArgs" value="true" />
<property name="optionArgName" value="URL" />
<property name="required" value="false" />
<property name="handler">
<bean
class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
<property name="applyToBeans">
<list>
<bean class="org.apache.oodt.commons.option.handler.BeanInfo"
p:bean-ref="Download" />
</list>
</property>
</bean>
</property>
</bean>
<bean id="fromUrl" lazy-init="true"
class="org.apache.oodt.commons.option.CmdLineOption">
<property name="shortOption" value="fu" />
<property name="longOption" value="fromUrl" />
<property name="description" value="URL to get file" />
<property name="hasArgs" value="true" />
<property name="optionArgName" value="URL" />
<property name="requiredOptions">
<list>
<bean class="org.apache.oodt.commons.option.required.RequiredOption">
<property name="optionLongName" value="action" />
<property name="requireAllValues" value="false" />
<property name="optionValues">
<list>
<value>CrossProtocolTransfer</value>
</list>
</property>
</bean>
</list>
</property>
<property name="handler">
<bean
class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
<property name="applyToBeans">
<list>
<bean class="org.apache.oodt.commons.option.handler.BeanInfo"
p:bean-ref="CrossProtocolTransfer" p:methodName="setFromUri" />
</list>
</property>
</bean>
</property>
</bean>
<bean id="toUrl" lazy-init="true"
class="org.apache.oodt.commons.option.CmdLineOption">
<property name="shortOption" value="tu" />
<property name="longOption" value="toUrl" />
<property name="description" value="URL to send file" />
<property name="hasArgs" value="true" />
<property name="optionArgName" value="URL" />
<property name="requiredOptions">
<list>
<bean class="org.apache.oodt.commons.option.required.RequiredOption">
<property name="optionLongName" value="action" />
<property name="requireAllValues" value="false" />
<property name="optionValues">
<list>
<value>CrossProtocolTransfer</value>
</list>
</property>
</bean>
</list>
</property>
<property name="handler">
<bean
class="org.apache.oodt.commons.option.handler.CmdLineOptionBeanHandler">
<property name="applyToBeans">
<list>
<bean class="org.apache.oodt.commons.option.handler.BeanInfo"
p:bean-ref="CrossProtocolTransfer" p:methodName="setToUri" />
</list>
</property>
</bean>
</property>
</bean>
</beans>