Dec 10
|
This error occurs because the File Protocol has not been added to your Restlet Component.
How to add a Protocol to your Restlet application using Spring is explained here.
CategoriesArchives
|
This error occurs because the File Protocol has not been added to your Restlet Component. How to add a Protocol to your Restlet application using Spring is explained here.
To add a single Protocol you can set the client property of the Component to the required Protocol. For example to wire up a Component and add the file:// protocol you would use the following. <bean id="component" class="org.restlet.ext.spring.SpringComponent"> <property name="server"> <bean class="org.restlet.ext.spring.SpringServer"> <constructor-arg value="http" /> <constructor-arg value="8080" /> </bean> </property> <property name="client"> <util:constant static-field="org.restlet.data.Protocol.FILE"/> </property> <property name="defaultTarget" ref="router" /> </bean> |
|