1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
6 <bean id="milton.resource.factory" class="com.ettrema.console.ConsoleResourceFactory">
7 <constructor-arg ref="filesystem.resource.factory" />
8 <constructor-arg value="/console" />
9 <constructor-arg value="/webdav" /> <!-- resource to test authentication against = host root -->
12 <bean class="com.ettrema.console.LsFactory" />
13 <bean class="com.ettrema.console.CdFactory" />
14 <bean class="com.ettrema.console.RmFactory" />
15 <bean class="com.ettrema.console.HelpFactory" />
16 <bean class="com.ettrema.console.CpFactory" />
17 <bean class="com.ettrema.console.MkFactory" />
18 <bean class="com.ettrema.console.MkdirFactory" />
21 <constructor-arg value="webdav"/> <!-- the web context path -->
24 <bean id="filesystem.resource.factory" class="gr.ebs.gss.server.webdav.milton.GSSResourceFactory">
25 <property name="securityManager" ref="milton.fs.security.manager" />
26 <property name="lockManager" ref="milton.fs.lock.manager" />
28 <property name="maxAgeSeconds" value="3600" />
29 <property name="contextPath" value="webdav"/>
30 <!-- the default root is System property user.home -->
31 <!-- enable the property below to set the root elsewhere -->
33 <property name="root" value="/www/webs" />
38 <bean id="milton.fs.security.manager" class="com.ettrema.http.fs.NullSecurityManager" >
39 <property name="realm" value="aRealm" />
41 com.ettrema.http.fs.SimpleSecurityManager
44 <bean id="milton.fs.security.manager" class="gr.ebs.gss.server.webdav.milton.GssSecurityManager" >
45 <property name="realm" value="aRealm" />
49 <bean id="milton.fs.lock.manager" class="gr.ebs.gss.server.webdav.milton.GssMemoryLockManager" />
51 <bean id="auth.service" class="com.bradmcevoy.http.AuthenticationService">
52 <property name="disableDigest" value="false"/>
53 <property name="disableBasic" value="true"/>
56 <bean id="milton.response.handler" class="com.bradmcevoy.http.MsOfficeResponseHandler"/>
59 <bean id="milton.response.handler" class="com.bradmcevoy.http.webdav.DefaultWebDavResponseHandler">
60 <constructor-arg ref="auth.service"/>
63 <!-- The compressing response handler wraps the default response handler and compresses
64 response content. This will only actually perform compression for specific mime types
65 (currently hard coded to text, css and js files) and if the client supports gzip -->
66 <bean id="milton.response.handler.compressing" class="com.bradmcevoy.http.CompressingResponseHandler">
67 <constructor-arg ref="milton.response.handler" />
71 <bean id="milton.http.manager" class="com.bradmcevoy.http.HttpManager">
72 <constructor-arg ref="milton.resource.factory" />
73 <constructor-arg ref="milton.response.handler.compressing" />
74 <constructor-arg ref="auth.service" />
76 <property name="filters">
78 <!-- This filter will save one file per request. Having
79 it enabled by default causes problems when taking
80 milton-fileserver-test for a spin as the system runs
81 slower and slower until it fails.
83 Another manifistation of problems with this filter is
84 that Office 2010 will not put up the authentication
85 requester, nor list the files in a folder.
87 <ref bean="milton.debug.filter" />
94 <!-- If added to the http manager, this filter will output request and responses
96 <bean id="milton.debug.filter" class="com.bradmcevoy.http.DebugFilter" >
97 <!-- By default the debugfilter will log to the current user's home directory -->
98 <!-- To change this behaviour uncomment the following line and set the path you want to log to-->
100 <constructor-arg value="/test"/>