Changeset 415
- Timestamp:
- 11/09/08 11:29:14 (2 months ago)
- Location:
- trunk/geowebcache/src/main
- Files:
-
- 3 modified
-
java/org/geowebcache/GeoWebCacheDispatcher.java (modified) (1 diff)
-
java/org/geowebcache/rest/RESTDispatcher.java (modified) (2 diffs)
-
webapp/WEB-INF/geowebcache-servlet.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/geowebcache/src/main/java/org/geowebcache/GeoWebCacheDispatcher.java
r377 r415 184 184 185 185 /** 186 * Destroy function, has to be referenced in bean declaration: 187 * <bean ... destroy="destroy">...</bean> 188 */ 189 public void destroy() { 190 log.info("GeoWebCacheDispatcher.destroy() was invoked, shutting down."); 191 } 192 193 /** 186 194 * Essentially this slices away the prefix, leaving type and request 187 195 * -
trunk/geowebcache/src/main/java/org/geowebcache/rest/RESTDispatcher.java
r410 r415 107 107 108 108 /** 109 * Destroy function, has to be referenced in bean declaration: 110 * <bean ... destroy="destroy">...</bean> 111 */ 112 public void destroy() { 113 log.info("RESTDispatcher.destroy() was invoked, shutting down."); 114 115 // Shut down all the waiting and running tasks... brutally 116 tpe.shutdownNow(); 117 } 118 119 /** 109 120 * Method is responsible for handling HTTP requests 110 * 111 * 121 * 112 122 */ 113 114 123 protected ModelAndView handleRequestInternal(HttpServletRequest request, 115 124 HttpServletResponse response) { … … 125 134 return null; 126 135 } 127 136 137 128 138 /** 129 139 * Method instantiates the restlet router -
trunk/geowebcache/src/main/webapp/WEB-INF/geowebcache-servlet.xml
r413 r415 41 41 42 42 <!-- controller for handling incoming requests made through the REST interface --> 43 <bean id="gwcRESTDispatcher" class="org.geowebcache.rest.RESTDispatcher" >43 <bean id="gwcRESTDispatcher" class="org.geowebcache.rest.RESTDispatcher" destroy-method="destroy"> 44 44 <constructor-arg type="org.geowebcache.layer.TileLayerDispatcher" ref="gwcTLDispatcher"/> 45 <constructor-arg type="org.geowebcache.util.XMLConfiguration" ref="gwcXmlConfig"/>45 <constructor-arg type="org.geowebcache.util.XMLConfiguration" ref="gwcXmlConfig"/> 46 46 </bean> 47 47 48 48 <!-- controller for handling all incoming requests --> 49 <bean id="geowebcacheDispatcher" class="org.geowebcache.GeoWebCacheDispatcher" >49 <bean id="geowebcacheDispatcher" class="org.geowebcache.GeoWebCacheDispatcher" destroy-method="destroy"> 50 50 <property name="tileLayerDispatcher" ref="gwcTLDispatcher"/> 51 51 <!-- property name="servletPrefix" value=""/ -->
