Changeset 354
- Timestamp:
- 08/25/08 16:36:49 (3 months ago)
- Location:
- trunk/geowebcache/src/main
- Files:
-
- 2 added
- 5 modified
-
java/org/geowebcache/layer/wms/WMSHttpHelper.java (modified) (1 diff)
-
java/org/geowebcache/proxy (added)
-
java/org/geowebcache/proxy/ProxyDispatcher.java (added)
-
java/org/geowebcache/security/RESTfulDefinitionSource.java (modified) (3 diffs)
-
java/org/geowebcache/security/RESTfulPathBasedFilterInvocationDefinitionMap.java (modified) (2 diffs)
-
webapp/WEB-INF/geowebcache-servlet.xml (modified) (2 diffs)
-
webapp/WEB-INF/web.xml (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/geowebcache/src/main/java/org/geowebcache/layer/wms/WMSHttpHelper.java
r346 r354 213 213 try { 214 214 if (responseLength < 1) { 215 ret = ServletUtils.readStream(wmsBackendCon.getInputStream(), 16384, 1024);215 ret = ServletUtils.readStream(wmsBackendCon.getInputStream(), 16384, 2048); 216 216 } else { 217 217 ret = new byte[responseLength]; -
trunk/geowebcache/src/main/java/org/geowebcache/security/RESTfulDefinitionSource.java
r317 r354 1 /** 2 * This code is taken from Spring and therefore presumably licensed under Apache 2.0 3 * 4 * http://www.apache.org/licenses/LICENSE-2.0.html 5 * 6 * @author Chris Berry 7 * http://opensource.atlassian.com/projects/spring/browse/SEC-531 8 */ 9 1 10 package org.geowebcache.security; 2 11 … … 20 29 import org.springframework.util.StringUtils; 21 30 22 /** 23 * 24 * @author Chris Berry 25 * http://opensource.atlassian.com/projects/spring/browse/SEC-531 26 * 27 */ 31 28 32 public class RESTfulDefinitionSource implements 29 33 FilterInvocationDefinitionSource { … … 221 225 ConfigAttributeDefinition configDefinition = new ConfigAttributeDefinition(); 222 226 223 Iterator configAttributesIt = mapping.getConfigAttributes() 224 .iterator(); 227 Iterator configAttributesIt = mapping.getConfigAttributes().iterator(); 225 228 while (configAttributesIt.hasNext()) { 226 229 String s = (String) configAttributesIt.next(); -
trunk/geowebcache/src/main/java/org/geowebcache/security/RESTfulPathBasedFilterInvocationDefinitionMap.java
r317 r354 1 /** 2 * This code is taken from Spring and therefore presumably licensed under Apache 2.0 3 * 4 * http://www.apache.org/licenses/LICENSE-2.0.html 5 * 6 * @author Chris Berry 7 * http://opensource.atlassian.com/projects/spring/browse/SEC-531 8 */ 9 1 10 package org.geowebcache.security; 2 11 … … 20 29 import org.springframework.util.PathMatcher; 21 30 22 /**23 *24 * @author Chris Berry25 * http://opensource.atlassian.com/projects/spring/browse/SEC-53126 *27 */28 31 29 32 public class RESTfulPathBasedFilterInvocationDefinitionMap extends -
trunk/geowebcache/src/main/webapp/WEB-INF/geowebcache-servlet.xml
r347 r354 64 64 class="org.geowebcache.service.kml.KMLService"/> 65 65 66 66 <bean id="gwcProxyDispatcher" 67 class="org.geowebcache.proxy.ProxyDispatcher"/> 68 67 69 <bean id="gwcCacheKeyFile" class="org.geowebcache.cache.file.FilePathKey2"/> 68 70 69 71 <bean id="gwcCacheFile" class="org.geowebcache.cache.file.FileCache"> 70 72 <property name="defaultKeyBeanId"><value>gwcCacheKeyFile</value></property> 71 73 </bean> 72 74 73 75 74 76 <bean id="gwcUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> … … 81 83 <prop key="/rpc/**">geowebcacheDispatcher</prop> 82 84 <prop key="/demo/**">geowebcacheDispatcher</prop> 83 <prop key="/rest/**">gwcRESTDispatcher</prop> 85 <prop key="/rest/**">gwcRESTDispatcher</prop> 86 <prop key="/proxy/**">gwcProxyDispatcher</prop> 84 87 </props> 85 88 </property> -
trunk/geowebcache/src/main/webapp/WEB-INF/web.xml
r301 r354 2 2 <web-app> 3 3 <display-name>GeoWebCache</display-name> 4 4 5 5 <!-- pick up all spring application contexts --> 6 6 <context-param> … … 12 12 <!-- acegi security filter --> 13 13 <filter> 14 <filter-name>Acegi Filter Chain Proxy</filter-name> 15 <filter-class> 16 org.acegisecurity.util.FilterToBeanProxy 17 </filter-class> 18 <init-param> 19 <param-name>targetClass</param-name> 20 <param-value> 21 org.acegisecurity.util.FilterChainProxy 22 </param-value> 23 </init-param> 24 </filter> 25 26 <filter-mapping> 27 <filter-name>Acegi Filter Chain Proxy</filter-name> 28 <url-pattern>/*</url-pattern> 29 </filter-mapping> 30 14 <filter-name>Acegi Filter Chain Proxy</filter-name> 15 <filter-class> 16 org.acegisecurity.util.FilterToBeanProxy 17 </filter-class> 18 <init-param> 19 <param-name>targetClass</param-name> 20 <param-value> 21 org.acegisecurity.util.FilterChainProxy 22 </param-value> 23 </init-param> 24 </filter> 25 26 <filter-mapping> 27 <filter-name>Acegi Filter Chain Proxy</filter-name> 28 <url-pattern>/rest/*</url-pattern> 29 </filter-mapping> 30 31 <filter-mapping> 32 <filter-name>Acegi Filter Chain Proxy</filter-name> 33 <url-pattern>/proxy/*</url-pattern> 34 </filter-mapping> 35 31 36 32 37 <!-- spring context loader --> … … 61 66 <url-pattern>/rpc/*</url-pattern> 62 67 </servlet-mapping> 63 68 64 69 <servlet-mapping> 65 70 <servlet-name>geowebcache</servlet-name> … … 69 74 <servlet-mapping> 70 75 <servlet-name>geowebcache</servlet-name> 76 <url-pattern>/proxy/*</url-pattern> 77 </servlet-mapping> 78 79 <servlet-mapping> 80 <servlet-name>geowebcache</servlet-name> 71 81 <url-pattern>/rest/*</url-pattern> 72 82 </servlet-mapping> 73 83 74 <!-- 75 <context-param> 76 <param-name>GEOWEBCACHE_CACHE_DIR</param-name> 77 <param-value>/tmp</param-value> 78 </context-param> 79 --> 80 81 <!-- 82 <context-param> 83 <param-name>GEOSERVER_WMS_URL</param-name> 84 <param-value>http://sigma.openplans.org:8080/geosearch/wms?request=GetCapabilities</param-value> 85 </context-param> 86 --> 87 88 <!-- 89 <context-param> 90 <param-name>GEOWEBCACHE_ALLOWED_SEEDERS</param-name> 91 <param-value>*</param-value> 92 </context-param> 93 --> 84 <!-- 85 <context-param> 86 <param-name>GEOWEBCACHE_CACHE_DIR</param-name> 87 <param-value>/tmp</param-value> 88 </context-param> 89 --> 90 91 <!-- The following only affects GeoServerConfiguration.class --> 92 <!-- 93 <context-param> 94 <param-name>GEOSERVER_WMS_URL</param-name> 95 <param-value>http://sigma.openplans.org:8080/geosearch/wms?request=GetCapabilities</param-value> 96 </context-param> 97 --> 94 98 </web-app>
