@Test
  public void testWCS11DescribeCoverage() throws Exception {
    net.opengis.wcs11.DescribeCoverageType dc = Wcs11Factory.eINSTANCE.createDescribeCoverageType();
    dc.getIdentifier().add("acme:foo");
    dc.getIdentifier().add("acme:bar");

    callback.operationDispatched(new Request(), op("DescribeCoverage", "WCS", "1.1.0", dc));
    assertEquals("acme:foo", data.getResources().get(0));
    assertEquals("acme:bar", data.getResources().get(1));
  }
Ejemplo n.º 2
0
  @Override
  protected void qualifyRequest(
      WorkspaceInfo ws, PublishedInfo l, Operation operation, Request request) {

    GetCapabilitiesType caps = parameter(operation, GetCapabilitiesType.class);
    if (caps != null) {
      return;
    }

    DescribeCoverageType dcov = parameter(operation, DescribeCoverageType.class);
    if (dcov != null) {
      qualifyLayerNames(dcov.getIdentifier(), ws);
      return;
    }

    GetCoverageType gcov = parameter(operation, GetCoverageType.class);
    if (gcov != null) {
      if (gcov.getIdentifier() != null && gcov.getIdentifier().getValue() != null) {
        gcov.getIdentifier().setValue(qualifyName(gcov.getIdentifier().getValue(), ws));
      }
    }
  }