Examples of NullURLMangler


Examples of org.geowebcache.util.NullURLMangler

        TileLayerDispatcher tld = createMock(TileLayerDispatcher.class);
        HttpServletRequest servReq = createMock(HttpServletRequest.class);
        HttpServletResponse response = createMock(HttpServletResponse.class);
        String baseUrl = "http://example.com/geowebcache/";
        String contextPath = "service/";
        URLMangler urlMangler = new NullURLMangler();
        ServiceInformation servInfo = createMock(ServiceInformation.class);
       
        Map<String, String[]> parameterMap = new HashMap<>();
        parameterMap.put("SERVICE", new String[]{"WMS"});
        parameterMap.put("VERSION", new String[]{"1.1.1"});
View Full Code Here

Examples of org.geowebcache.util.NullURLMangler

            long[] tileIndex) throws Exception {

        GeoWebCacheDispatcher gwcd = mock(GeoWebCacheDispatcher.class);
        when(gwcd.getServletPrefix()).thenReturn(null);
       
        service = new WMSService(sb, tld, mock(RuntimeStats.class), new NullURLMangler(), gwcd);

        @SuppressWarnings("unchecked")
        Map<String, String> kvp = new CaseInsensitiveMap();
        kvp.put("format", "image/png");
        kvp.put("srs", "EPSG:4326");
View Full Code Here

Examples of org.geowebcache.util.NullURLMangler

    public void testGetCap() throws Exception {
   
        GeoWebCacheDispatcher gwcd = mock(GeoWebCacheDispatcher.class);
        when(gwcd.getServletPrefix()).thenReturn(null);
       
        service = new WMSService(sb, tld, mock(RuntimeStats.class), new NullURLMangler(), gwcd);
   
        @SuppressWarnings("unchecked")
        Map<String, String> kvp = new CaseInsensitiveMap();
        kvp.put("service", "WMS");
        kvp.put("version", "1.1.1");
        kvp.put("request", "GetCapabilities");
      
   
        HttpServletRequest req = mock(HttpServletRequest.class);
        MockHttpServletResponse resp = new MockHttpServletResponse();
        when(req.getCharacterEncoding()).thenReturn("UTF-8");
        when(req.getParameterMap()).thenReturn(kvp);
       
       

        List<String> gridSetNames = Arrays.asList("GlobalCRS84Pixel", "GlobalCRS84Scale","EPSG:4326");
        TileLayer tileLayer = mockTileLayer("mockLayer", gridSetNames);
        when(tld.getLayerList()).thenReturn(Arrays.asList(tileLayer));
       
   
        ConveyorTile conv = service.getConveyor(req, resp);
        assertNotNull(conv);
       
        final String layerName = conv.getLayerId();
        assertNull(layerName);
       
        assertEquals(Conveyor.RequestHandler.SERVICE,conv.reqHandler);
        WMSGetCapabilities wmsCap = new WMSGetCapabilities(tld, conv.servletReq,"http://localhost:8080", "/service/wms", new NullURLMangler());
        wmsCap.writeResponse(conv.servletResp);  
        assertTrue(resp.containsHeader("content-disposition"));
        assertEquals("inline;filename=wms-getcapabilities.xml", resp.getHeader("content-disposition"));                           
   
    }
View Full Code Here

Examples of org.geowebcache.util.NullURLMangler

    public void testGetConveyorWithParameters() throws Exception {

        GeoWebCacheDispatcher gwcd = mock(GeoWebCacheDispatcher.class);
        when(gwcd.getServletPrefix()).thenReturn(null);

        service = new WMSService(sb, tld, mock(RuntimeStats.class), new NullURLMangler(), gwcd);

        String layerName = "mockLayer";
        String timeValue = "00:00";

        @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.geowebcache.util.NullURLMangler

        tld = new TileLayerDispatcher(gridSetBroker, configList);

        tlr = new TileLayerRestlet();
        tlr.setXMLConfiguration(xmlConfig);
        tlr.setTileLayerDispatcher(tld);
        tlr.setUrlMangler(new NullURLMangler());
    }
View Full Code Here

Examples of org.geowebcache.util.NullURLMangler

       
        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));  
        assertTrue(resp.containsHeader("content-disposition"));
        assertEquals("inline;filename=wmts-getcapabilities.xml", resp.getHeader("content-disposition"));                           
   
        // System.out.println(resp.getOutputStreamContent());
View Full Code Here

Examples of org.geowebcache.util.NullURLMangler

       
        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));  
        assertTrue(resp.containsHeader("content-disposition"));
        assertEquals("inline;filename=wmts-getcapabilities.xml", resp.getHeader("content-disposition"));                           
   
        // System.out.println(resp.getOutputStreamContent());
View Full Code Here

Examples of org.geowebcache.util.NullURLMangler

       
        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));  
        assertTrue(resp.containsHeader("content-disposition"));
        assertEquals("inline;filename=wmts-getcapabilities.xml", resp.getHeader("content-disposition"));                           
   
        // System.out.println(resp.getOutputStreamContent());
View Full Code Here

Examples of org.geowebcache.util.NullURLMangler

       
        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));  
        assertTrue(resp.containsHeader("content-disposition"));
        assertEquals("inline;filename=wmts-getcapabilities.xml", resp.getHeader("content-disposition"));                           
   
        // System.out.println(resp.getOutputStreamContent());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.