@Override public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException { throw new ServletDebugException(); }
/** * @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet() * @see #initialize() */ public void afterPropertiesSet() throws Exception { GWC.set(this); }
public static void tryReload() { GWC instance = GWC.INSTANCE; if (instance != null) { instance.reload(); } }
private String buildGetMap(final boolean directWMSIntegrationEndpoint, final String layerName, final String gridsetId, String styles) { final GWC gwc = GWC.get(); final TileLayer tileLayer = gwc.getTileLayerByName(layerName); return buildGetMap(directWMSIntegrationEndpoint, layerName, gridsetId, styles, tileLayer); }
/** * @see org.geowebcache.layer.TileLayer#isQueryable() * @see WMS#isQueryable(LayerGroupInfo) * @see WMS#isQueryable(LayerInfo) */ @Override public boolean isQueryable() { boolean queryable = GWC.get().isQueryable(this); return queryable; }
/** * @return all the {@link LayerInfo}s in the {@link Catalog} that somehow refer to the given * style */ public Iterable<LayerInfo> getLayerInfosFor(final StyleInfo style) { return getLayerInfosFor(style, true); }
public void testIsInternalGridset() { Set<String> embeddedNames = gridSetBroker.getEmbeddedNames(); for (String name : embeddedNames) { assertTrue(mediator.isInternalGridSet(name)); } assertFalse(mediator.isInternalGridSet("somethingelse")); }
public void testNoInteractionsInUnusedMethods() { TransactionType request = mock(TransactionType.class); TransactionType returned = listener.beforeTransaction(request); assertSame(request, returned); verifyNoMoreInteractions(request, mediator); listener.beforeCommit(request); verifyNoMoreInteractions(request, mediator); }
public static void tryReset() { GWC instance = GWC.INSTANCE; if (instance != null) { GWC.INSTANCE.reset(); } }
/** * @see javax.servlet.http.HttpServletResponse#setHeader(java.lang.String, java.lang.String) */ public void setHeader(String arg0, String arg1) { addHeader(arg0, arg1); }
@Override public void onReset() { GWC.tryReset(); }
/** * Checks the JDBC quota store can be instantiated * * @param jdbcConfiguration The JDBC Quota Store configuration * @throws ConfigurationException if the quota store cannot be instantiated */ public void testQuotaConfiguration(JDBCConfiguration jdbcConfiguration) throws ConfigurationException, IOException { jdbcConfigurationStorage.testQuotaConfiguration(jdbcConfiguration); }
/** * This method changes the {@link ConfigurableBlobStore} configuration. It can be used for * changing cache configuration or the blobstore used. * * @param gwcConfig */ public synchronized void setChanged(GWCConfig gwcConfig, boolean initialization) { // Change the blobstore configuration configureBlobStore(gwcConfig, initialization); }
public void testDispatchGetMapMultipleCrsMatchingGridSubsets() throws Exception { testMultipleCrsMatchingGridSubsets("EPSG:4326", "EPSG:4326", new long[] { 1, 1, 1 }); testMultipleCrsMatchingGridSubsets("EPSG:4326", "EPSG:4326", new long[] { 10, 10, 10 }); testMultipleCrsMatchingGridSubsets("EPSG:4326", "GlobalCRS84Scale", new long[] { 1, 1, 1 }); testMultipleCrsMatchingGridSubsets("EPSG:4326", "GlobalCRS84Scale", new long[] { 10, 10, 10 }); testMultipleCrsMatchingGridSubsets("EPSG:4326", "GlobalCRS84Scale", new long[] { 1, 1, 1 }); testMultipleCrsMatchingGridSubsets("EPSG:4326", "GlobalCRS84Scale", new long[] { 10, 10, 10 }); }
/** * * @see org.geowebcache.layer.TileLayer#isQueryable() * @see WMS#isQueryable(LayerGroupInfo) * @see WMS#isQueryable(LayerInfo) */ @Override public boolean isQueryable() { boolean queryable = GWC.get().isQueryable(this); return queryable; }
/** @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet() */ public void afterPropertiesSet() throws Exception { GWC.set(this); }
/** * Standard interface */ public String getAuthType() { throw new ServletDebugException(); }
@Override public void onReset() { mediator.reset(); }
/** @see javax.servlet.http.HttpServletResponse#setHeader(java.lang.String, java.lang.String) */ public void setHeader(String arg0, String arg1) { addHeader(arg0, arg1); }
/** Standard interface */ public String getAuthType() { throw new ServletDebugException(); }