/** * Creates a GetMapRequest that can be configured and then passed to issueRequest(). * * @return a configureable GetMapRequest object */ public GetMapRequest createGetMapRequest() { URL onlineResource = findURL(getCapabilities().getRequest().getGetMap()); return (GetMapRequest) getSpecification().createGetMapRequest(onlineResource); }
/** * Creates a GetMapRequest that can be configured and then passed to * issueRequest(). * * @return a configureable GetMapRequest object */ public GetMapRequest createGetMapRequest() { URL onlineResource = findURL(getCapabilities().getRequest().getGetMap()); return (GetMapRequest) getSpecification().createGetMapRequest(onlineResource); }
public GetStylesRequest createGetStylesRequest() throws UnsupportedOperationException { if (getCapabilities().getRequest().getGetStyles() == null) { throw new UnsupportedOperationException( "Server does not specify a GetStyles operation. Cannot be performed"); } URL onlineResource = getCapabilities().getRequest().getGetStyles().getGet(); if (onlineResource == null) { onlineResource = serverURL; } GetStylesRequest request = getSpecification().createGetStylesRequest(onlineResource); return request; }
public DescribeLayerRequest createDescribeLayerRequest() throws UnsupportedOperationException { if (getCapabilities().getRequest().getDescribeLayer() == null ) { throw new UnsupportedOperationException("Server does not specify a DescribeLayer operation. Cannot be performed"); } URL onlineResource = getCapabilities().getRequest().getDescribeLayer().getGet(); if (onlineResource == null) { onlineResource = serverURL; } DescribeLayerRequest request = getSpecification().createDescribeLayerRequest(onlineResource); return request; }
public PutStylesRequest createPutStylesRequest() throws UnsupportedOperationException { if (getCapabilities().getRequest().getPutStyles() == null) { throw new UnsupportedOperationException( "Server does not specify a PutStyles operation. Cannot be performed"); } URL onlineResource = getCapabilities().getRequest().getPutStyles().getGet(); if (onlineResource == null) { onlineResource = serverURL; } PutStylesRequest request = getSpecification().createPutStylesRequest(onlineResource); return request; }
public DescribeLayerRequest createDescribeLayerRequest() throws UnsupportedOperationException { if (getCapabilities().getRequest().getDescribeLayer() == null) { throw new UnsupportedOperationException( "Server does not specify a DescribeLayer operation. Cannot be performed"); } URL onlineResource = getCapabilities().getRequest().getDescribeLayer().getGet(); if (onlineResource == null) { onlineResource = serverURL; } DescribeLayerRequest request = getSpecification().createDescribeLayerRequest(onlineResource); return request; }
public GetLegendGraphicRequest createGetLegendGraphicRequest() throws UnsupportedOperationException { if (getCapabilities().getRequest().getGetLegendGraphic() == null) { throw new UnsupportedOperationException("Server does not specify a GetLegendGraphic operation. Cannot be performed"); } URL onlineResource = getCapabilities().getRequest().getGetLegendGraphic().getGet(); if (onlineResource == null) { onlineResource = serverURL; } GetLegendGraphicRequest request = getSpecification().createGetLegendGraphicRequest(onlineResource); return request; }
public GetStylesRequest createGetStylesRequest() throws UnsupportedOperationException{ if (getCapabilities().getRequest().getGetStyles() == null) { throw new UnsupportedOperationException("Server does not specify a GetStyles operation. Cannot be performed"); } URL onlineResource = getCapabilities().getRequest().getGetStyles().getGet(); if (onlineResource == null) { onlineResource = serverURL; } GetStylesRequest request = getSpecification().createGetStylesRequest(onlineResource); return request; }
public PutStylesRequest createPutStylesRequest() throws UnsupportedOperationException { if (getCapabilities().getRequest().getPutStyles() == null) { throw new UnsupportedOperationException("Server does not specify a PutStyles operation. Cannot be performed"); } URL onlineResource = getCapabilities().getRequest().getPutStyles().getGet(); if (onlineResource == null) { onlineResource = serverURL; } PutStylesRequest request = getSpecification().createPutStylesRequest(onlineResource); return request; }
/** * Creates a GetFeatureInfoRequest that can be configured and then passed to issueRequest(). * * @param getMapRequest a previous configured GetMapRequest * @return a GetFeatureInfoRequest * @throws UnsupportedOperationException if the server does not support GetFeatureInfo */ public GetFeatureInfoRequest createGetFeatureInfoRequest(GetMapRequest getMapRequest) { if (getCapabilities().getRequest().getGetFeatureInfo() == null) { throw new UnsupportedOperationException( "This Web Map Server does not support GetFeatureInfo requests"); } URL onlineResource = findURL(getCapabilities().getRequest().getGetFeatureInfo()); GetFeatureInfoRequest request = getSpecification().createGetFeatureInfoRequest(onlineResource, getMapRequest); return request; }
public GetLegendGraphicRequest createGetLegendGraphicRequest() throws UnsupportedOperationException { if (getCapabilities().getRequest().getGetLegendGraphic() == null) { throw new UnsupportedOperationException( "Server does not specify a GetLegendGraphic operation. Cannot be performed"); } URL onlineResource = getCapabilities().getRequest().getGetLegendGraphic().getGet(); if (onlineResource == null) { onlineResource = serverURL; } GetLegendGraphicRequest request = getSpecification().createGetLegendGraphicRequest(onlineResource); return request; }
/** * Creates a GetFeatureInfoRequest that can be configured and then passed to * issueRequest(). * * @param getMapRequest a previous configured GetMapRequest * @return a GetFeatureInfoRequest * @throws UnsupportedOperationException if the server does not support GetFeatureInfo */ public GetFeatureInfoRequest createGetFeatureInfoRequest( GetMapRequest getMapRequest ) { if (getCapabilities().getRequest().getGetFeatureInfo() == null) { throw new UnsupportedOperationException("This Web Map Server does not support GetFeatureInfo requests"); } URL onlineResource = findURL(getCapabilities().getRequest().getGetFeatureInfo()); GetFeatureInfoRequest request = getSpecification().createGetFeatureInfoRequest(onlineResource, getMapRequest); return request; }