Package org.geomajas.internal.service.pipeline

Examples of org.geomajas.internal.service.pipeline.PipelineContextImpl


  public void testGetCacheContextAndKey() throws Exception {
    String key1 = "key1";
    String key2 = "key2";
    String key3 = "key3";
    String key4 = "key4";
    PipelineContext pipelineContext = new PipelineContextImpl();
    pipelineContext.put(key1, key1);
    pipelineContext.put(key3, key3);
    GeometryFactory geometryFactory = new GeometryFactory();
    pipelineContext.put(key4, new GeometryCollection(new Geometry[] {}, geometryFactory));

    // a context
    CacheContext cacheContext1 = cacheKeyService.getCacheContext(pipelineContext, new String[] {key1, key2, key4});
    Assert.assertEquals(key1, cacheContext1.get(key1));
    Assert.assertNull(cacheContext1.get(key2));
View Full Code Here


  }

  // ----------------------------------------------------------

  private PipelineContext getPipelineContext(int offset, int limit) {
    PipelineContext pip = new PipelineContextImpl();
    pip.put(PipelineCode.LAYER_KEY, testLayer);
    pip.put(PipelineCode.OFFSET_KEY, offset);
    pip.put(PipelineCode.MAX_RESULT_SIZE_KEY, limit);

    pip.put(PipelineCode.FILTER_KEY, Filter.INCLUDE);
    pip.put(PipelineCode.FEATURE_INCLUDES_KEY, 0);
    pip.put(PipelineCode.LAYER_ID_KEY, testLayer.getId());
    pip.put(PipelineCode.STYLE_KEY, new NamedStyleInfo());

    return pip;
  }
View Full Code Here

  }

  // ----------------------------------------------------------

  private PipelineContext getPipelineContext(int offset, int limit) {
    PipelineContext pip = new PipelineContextImpl();
    pip.put(PipelineCode.LAYER_KEY, testLayer);
    pip.put(PipelineCode.OFFSET_KEY, offset);
    pip.put(PipelineCode.MAX_RESULT_SIZE_KEY, limit);

    pip.put(PipelineCode.FILTER_KEY, Filter.INCLUDE);
    pip.put(PipelineCode.FEATURE_INCLUDES_KEY, 0);
    pip.put(PipelineCode.LAYER_ID_KEY, testLayer.getId());
    pip.put(PipelineCode.STYLE_KEY, new NamedStyleInfo());

    return pip;
  }
View Full Code Here

TOP

Related Classes of org.geomajas.internal.service.pipeline.PipelineContextImpl

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.