本文整理了Java中org.geoserver.ows.Request.setContext
方法的一些代码示例,展示了Request.setContext
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setContext
方法的具体详情如下:
包路径:org.geoserver.ows.Request
类名称:Request
方法名:setContext
[英]Sets the context.
[中]设置上下文。
代码示例来源:origin: geoserver/geoserver
@Test(expected = ServiceException.class)
public void testInitRequest_LayerGroupMissing() {
this.request.setContext("lg/ows");
this.callback.init(this.request);
}
代码示例来源:origin: geoserver/geoserver
@Test(expected = ServiceException.class)
public void testInitRequest_NotAGlobalLayerGroup() {
this.request.setContext("cite:LayerGroup2/ows");
this.callback.init(this.request);
}
}
代码示例来源:origin: geoserver/geoserver
@Test(expected = ServiceException.class)
public void testInitRequest_WithoutWorkspace() {
this.request.setContext("ows");
this.callback.init(this.request);
}
代码示例来源:origin: geoserver/geoserver
@Test(expected = ServiceException.class)
public void testInitRequest_WorkspaceMissing() {
this.request.setContext("ws/ows");
this.callback.init(this.request);
}
代码示例来源:origin: geoserver/geoserver
request.setContext(context);
request.setPath(path);
代码示例来源:origin: geoserver/geoserver
@Test
public void testInitRequest_WorkspacedLayerGroupExists() {
this.request.setContext("cite/LayerGroup2/ows");
this.callback.init(this.request);
assertNotNull(LocalWorkspace.get());
assertNotNull(LocalPublished.get());
}
代码示例来源:origin: geoserver/geoserver
@Test
public void testInitRequest_LayerGroupExists() {
this.request.setContext("LayerGroup1/ows");
this.callback.init(this.request);
assertNull(LocalWorkspace.get());
assertNotNull(LocalPublished.get());
}
代码示例来源:origin: geoserver/geoserver
@Test
public void testInitRequest_LayerExists() {
this.request.setContext("cite/BasicPolygons/ows");
this.callback.init(this.request);
assertNotNull(LocalWorkspace.get());
assertNotNull(LocalPublished.get());
}
代码示例来源:origin: geoserver/geoserver
@Test
public void testInitRequest_LayerMissing() {
this.request.setContext("cite/MissingLayer/ows");
this.callback.init(this.request);
assertNotNull(LocalWorkspace.get());
assertNull(LocalPublished.get());
}
代码示例来源:origin: geoserver/geoserver
@Test
public void testInitRequest_WorkspacedLayerGroupMissing() {
this.request.setContext("cite/lg/ows");
this.callback.init(this.request);
assertNotNull(LocalWorkspace.get());
assertNull(LocalPublished.get());
}
代码示例来源:origin: geoserver/geoserver
@Test
public void testInitRequest_WorkspaceExists() {
this.request.setContext("cite/ows");
this.callback.init(this.request);
assertNotNull(LocalWorkspace.get());
assertNull(LocalPublished.get());
}
代码示例来源:origin: geoserver/geoserver
@Test
public void testInitRequest_LayerMissingInWorkspace() {
this.request.setContext("cite/Fifteen/ows");
this.callback.init(this.request);
assertNotNull(LocalWorkspace.get());
assertNull(LocalPublished.get());
}
代码示例来源:origin: geoserver/geoserver
req.setContext(null);
代码示例来源:origin: org.geoserver.security/gs-security-tests
@Test
public void testLayerSpecificCapabilities() throws Exception {
AdvertisedCatalog sc = new AdvertisedCatalog(catalog);
Dispatcher.REQUEST.get().setContext("topp/states");
assertNotNull(sc.getLayerByName("topp:states"));
}
}
内容来源于网络,如有侵权,请联系作者删除!