GeoWebCacheException.<init>
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.geowebcache.GeoWebCacheException.<init>(Showing top 15 results out of 315)

origin: geoserver/geoserver

@Test
public void testTruncateLayerFully() throws Exception {
  when(tld.getTileLayer(eq(tileLayerGroup.getName())))
      .thenThrow(new GeoWebCacheException("fake"));
  mediator.truncate(tileLayerGroup.getName());
  verify(storageBroker, never()).deleteByGridSetId(anyString(), anyString());
  mediator.truncate(tileLayer.getName());
  verify(storageBroker, times(tileLayer.getGridSubsets().size()))
      .deleteByGridSetId(anyString(), anyString());
}
origin: geoserver/geoserver

@Override
public ConveyorTile getNoncachedTile(ConveyorTile tile) throws GeoWebCacheException {
  try {
    return getMetatilingReponse(tile, false, 1, 1);
  } catch (IOException e) {
    throw new GeoWebCacheException(e);
  }
}
origin: geoserver/geoserver

@Override
public void proxyRequest(ConveyorTile tile) throws GeoWebCacheException {
  try {
    GWC.get().proxyOwsRequest(tile);
  } catch (Exception e) {
    throw new GeoWebCacheException("Failed to cascade request", e);
  }
}

origin: org.geowebcache/gwc-core

public static SRS getSRS(String epsgStr) throws GeoWebCacheException {
  final String crsAuthPrefix = "EPSG:";
  if (epsgStr.substring(0, 5).equalsIgnoreCase(crsAuthPrefix)) {
    int epsgNumber = Integer.parseInt(epsgStr.substring(5, epsgStr.length()));
    return getSRS(epsgNumber);
  } else {
    throw new GeoWebCacheException("Can't parse " + epsgStr + " as SRS string.");
  }
}
origin: org.geowebcache/gwc-core

public void update(byte[] filterData, TileLayer layer, String gridSetId, int z)
    throws GeoWebCacheException {
  throw new GeoWebCacheException(
      "update(byte[] filterData, TileLayer layer, String gridSetId, int z) is not appropriate for WMSRasterFilters");
}
origin: org.geowebcache/gwc-core

public ConveyorTile doNonMetatilingRequest(ConveyorTile tile) throws GeoWebCacheException {
  tile.setTileLayer(this);
  ByteArrayResource buffer = getImageBuffer(WMS_BUFFER);
  sourceHelper.makeRequest(tile, buffer);
  if (tile.getError() || buffer.getSize() == 0) {
    throw new GeoWebCacheException("Empty tile, error message: " + tile.getErrorMessage());
  }
  tile.setBlob(buffer);
  return tile;
}
origin: GeoWebCache/geowebcache

private TileLayer findLayer(List<TileLayer> layers, String layerName)
    throws GeoWebCacheException {
  Iterator<TileLayer> iter = layers.iterator();
  while (iter.hasNext()) {
    TileLayer layer = iter.next();
    if (layer.getName().equals(layerName)) {
      return layer;
    }
  }
  throw new GeoWebCacheException("Layer " + layerName + " not found, set has "
      + layers.size() + " layers.");
}
origin: geoserver/geoserver

@Override
public void release() throws GeoWebCacheException {
  try {
    lock.release();
  } catch (IllegalArgumentException trouble) {
    throw new GeoWebCacheException(trouble);
  }
}
@Override
origin: org.geowebcache/gwc-core

public boolean persist() throws GeoWebCacheException {
  try {
    return storageBroker.put((TileObject) stObj);
  } catch (StorageException e) {
    throw new GeoWebCacheException(e);
  }
}
origin: geoserver/geoserver

@Override
public ConveyorTile doNonMetatilingRequest(ConveyorTile tile) throws GeoWebCacheException {
  try {
    return getMetatilingReponse(tile, true, 1, 1);
  } catch (IOException e) {
    throw new GeoWebCacheException(e);
  }
}
origin: org.geoserver/gs-gwc

@Override
public ConveyorTile doNonMetatilingRequest(ConveyorTile tile) throws GeoWebCacheException {
  try {
    return getMetatilingReponse(tile, true, 1, 1);
  } catch (IOException e) {
    throw new GeoWebCacheException(e);
  }
}
origin: GeoWebCache/geowebcache

public static SRS getSRS(String epsgStr) throws GeoWebCacheException {
  final String crsAuthPrefix = "EPSG:";
  if (epsgStr.substring(0, 5).equalsIgnoreCase(crsAuthPrefix)) {
    int epsgNumber = Integer.parseInt(epsgStr.substring(5, epsgStr.length()));
    return getSRS(epsgNumber);
  } else {
    throw new GeoWebCacheException("Can't parse " + epsgStr + " as SRS string.");
  }
}
origin: org.geoserver/gs-gwc

@Override
public ConveyorTile getNoncachedTile(ConveyorTile tile) throws GeoWebCacheException {
  try {
    return getMetatilingReponse(tile, false, 1, 1);
  } catch (IOException e) {
    throw new GeoWebCacheException(e);
  }
}
origin: org.geoserver/gs-gwc

@Test
public void testTruncateLayerFully() throws Exception {
  when(tld.getTileLayer(eq(tileLayerGroup.getName())))
      .thenThrow(new GeoWebCacheException("fake"));
  mediator.truncate(tileLayerGroup.getName());
  verify(storageBroker, never()).deleteByGridSetId(anyString(), anyString());
  mediator.truncate(tileLayer.getName());
  verify(storageBroker, times(tileLayer.getGridSubsets().size()))
      .deleteByGridSetId(anyString(), anyString());
}
origin: org.geoserver/gs-gwc

@Override
public void proxyRequest(ConveyorTile tile) throws GeoWebCacheException {
  try {
    GWC.get().proxyOwsRequest(tile);
  } catch (Exception e) {
    throw new GeoWebCacheException("Failed to cascade request", e);
  }
}

org.geowebcacheGeoWebCacheException<init>

Popular methods of GeoWebCacheException

  • getMessage

Popular classes and methods

  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getSupportFragmentManager (FragmentActivity)
  • Window (java.awt)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • ArrayList (java.util)
    Resizable-array implementation of the List interface.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)