Package org.geowebcache.conveyor

Examples of org.geowebcache.conveyor.Conveyor


     * @throws Exception
     */
    private void handleServiceRequest(String serviceStr, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        Conveyor conv = null;

        // 1) Figure out what Service should handle this request
        Service service = findService(serviceStr);

        // 2) Find out what layer will be used and how
        conv = service.getConveyor(request, response);
        final String layerName = conv.getLayerId();
        if (layerName != null && !tileLayerDispatcher.getTileLayer(layerName).isEnabled()) {
            throw new GeoWebCacheException("Layer '" + layerName + "' is disabled");
        }

        // Check where this should be dispatched
View Full Code Here


     * @throws Exception
     */
    private void handleServiceRequest(String serviceStr, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        Conveyor conv = null;

        // 1) Figure out what Service should handle this request
        Service service = findService(serviceStr);

        // 2) Find out what layer will be used and how
        conv = service.getConveyor(request, response);
        final String layerName = conv.getLayerId();
        if (layerName != null && !tileLayerDispatcher.getTileLayer(layerName).isEnabled()) {
            throw new OWSException(400, "InvalidParameterValue", "LAYERS", "Layer '" + layerName
                    + "' is disabled");
        }

View Full Code Here

           
            TileLayer tileLayer = mockTileLayer("mockLayer", gridSetNames, Collections.<ParameterFilter>emptyList());
            when(tld.getLayerList()).thenReturn(Arrays.asList(tileLayer));
        }
   
        Conveyor conv = service.getConveyor(req, resp);
        assertNotNull(conv);
       
        final String layerName = conv.getLayerId();
        assertNull(layerName);
       
        assertEquals(Conveyor.RequestHandler.SERVICE,conv.reqHandler);
        WMTSGetCapabilities wmsCap = new WMTSGetCapabilities(tld,gridsetBroker, conv.servletReq,"http://localhost:8080", "/service/wms", new NullURLMangler());
        wmsCap.writeResponse(conv.servletResp,mock(RuntimeStats.class));  
View Full Code Here

           
            TileLayer tileLayer = mockTileLayer("mockLayer", gridSetNames, Collections.singletonList(styleFilter));
            when(tld.getLayerList()).thenReturn(Arrays.asList(tileLayer));
        }
   
        Conveyor conv = service.getConveyor(req, resp);
        assertNotNull(conv);
       
        final String layerName = conv.getLayerId();
        assertNull(layerName);
       
        assertEquals(Conveyor.RequestHandler.SERVICE,conv.reqHandler);
        WMTSGetCapabilities wmsCap = new WMTSGetCapabilities(tld,gridsetBroker, conv.servletReq,"http://localhost:8080", "/service/wms", new NullURLMangler());
        wmsCap.writeResponse(conv.servletResp,mock(RuntimeStats.class));  
View Full Code Here

           
            TileLayer tileLayer = mockTileLayer("mockLayer", gridSetNames, Collections.singletonList(styleFilter));
            when(tld.getLayerList()).thenReturn(Arrays.asList(tileLayer));
        }
   
        Conveyor conv = service.getConveyor(req, resp);
        assertNotNull(conv);
       
        final String layerName = conv.getLayerId();
        assertNull(layerName);
       
        assertEquals(Conveyor.RequestHandler.SERVICE,conv.reqHandler);
        WMTSGetCapabilities wmsCap = new WMTSGetCapabilities(tld,gridsetBroker, conv.servletReq,"http://localhost:8080", "/service/wms", new NullURLMangler());
        wmsCap.writeResponse(conv.servletResp,mock(RuntimeStats.class));  
View Full Code Here

           
            TileLayer tileLayer = mockTileLayer("mockLayer", gridSetNames, Collections.singletonList(styleFilter));
            when(tld.getLayerList()).thenReturn(Arrays.asList(tileLayer));
        }
   
        Conveyor conv = service.getConveyor(req, resp);
        assertNotNull(conv);
       
        final String layerName = conv.getLayerId();
        assertNull(layerName);
       
        assertEquals(Conveyor.RequestHandler.SERVICE,conv.reqHandler);
        WMTSGetCapabilities wmsCap = new WMTSGetCapabilities(tld,gridsetBroker, conv.servletReq,"http://localhost:8080", "/service/wms", new NullURLMangler());
        wmsCap.writeResponse(conv.servletResp,mock(RuntimeStats.class));  
View Full Code Here

            map.put("STYLES", "Bar");
            when(tileLayer.getModifiableParameters((Map)argThat(hasEntry(equalToIgnoringCase("styles"), equalToIgnoringCase("Bar"))), (String)any())).thenReturn(Collections.unmodifiableMap(map));
            when(tld.getLayerList()).thenReturn(Arrays.asList(tileLayer));
        }
   
        Conveyor conv = service.getConveyor(req, resp);
        assertNotNull(conv);
       
        final String layerName = conv.getLayerId();
        assertEquals("mockLayer", layerName);
       
        assertThat(conv, instanceOf(ConveyorTile.class));
       
        ConveyorTile tile = (ConveyorTile) conv;
View Full Code Here

TOP

Related Classes of org.geowebcache.conveyor.Conveyor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.