public abstract class AbstractGetFeatureInfoRequest extends AbstractWMSRequest implements GetFeatureInfoRequest
EXCEPTION_XML, hints, onlineResource, propertiesFEATURE_COUNT, INFO_FORMAT, QUERY_LAYERS, QUERY_X, QUERY_Y| Constructor and Description |
|---|
AbstractGetFeatureInfoRequest(URL onlineResource,
GetMapRequest request)
Constructs a GetFeatureInfoRequest.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addQueryLayer(Layer layer)
Add a Layer to the set of layers to be queried in the request.
|
URL |
getFinalURL()
Once the properties of the request are configured, this will return the URL that points to
the server and contains all of the appropriate name/value parameters.
|
protected String |
getQueryX()
Created because the 1.3.0 spec changes this parameter name.
|
protected String |
getQueryY()
Created because the 1.3.0 spec changes this parameter name.
|
protected void |
initRequest() |
protected abstract void |
initVersion()
Sets up the version number for this request.
|
void |
setFeatureCount(int featureCount) |
void |
setFeatureCount(String featureCount) |
void |
setInfoFormat(String infoFormat)
Sets the INFO_FORMAT parameter, which specifies the format of the GetFeatureInfoResponse.
|
void |
setQueryLayers(Set layers)
An unordered set of type Layer.
|
void |
setQueryPoint(int x,
int y)
The point on the image (in pixels) to be queried.
|
initServicegetPostContentType, getProperties, getRequestHints, performPostOutput, processKey, requiresPost, setProperty, setRequestHintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateResponse, getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setProperty, setRequestHintspublic AbstractGetFeatureInfoRequest(URL onlineResource, GetMapRequest request)
onlineResource - the URL pointing to the place to execute a GetFeatureInfo requestrequest - a previously configured GetMapRequest that the query will be executed onpublic URL getFinalURL()
RequestgetFinalURL in interface RequestgetFinalURL in class AbstractRequestorg.geotools.data.wms.request.Request#getFinalURL()public void addQueryLayer(Layer layer)
GetFeatureInfoRequestaddQueryLayer in interface GetFeatureInfoRequestlayer - a queryable LayerGetFeatureInfoRequest.addQueryLayer(Layer)public void setQueryLayers(Set layers)
GetFeatureInfoRequestsetQueryLayers in interface GetFeatureInfoRequestlayers - A Set of type Layer, each to be queriedGetFeatureInfoRequest.setQueryLayers(java.util.Set)public void setInfoFormat(String infoFormat)
GetFeatureInfoRequestsetInfoFormat in interface GetFeatureInfoRequestinfoFormat - a value from getInfoFormats()GetFeatureInfoRequest.setInfoFormat(java.lang.String)public void setFeatureCount(String featureCount)
setFeatureCount in interface GetFeatureInfoRequestfeatureCount - the maximum number of features to return in the responseGetFeatureInfoRequest.setFeatureCount(java.lang.String)public void setFeatureCount(int featureCount)
setFeatureCount in interface GetFeatureInfoRequestfeatureCount - the maximum number of features to return in the responseGetFeatureInfoRequest.setFeatureCount(int)public void setQueryPoint(int x,
int y)
GetFeatureInfoRequestsetQueryPoint in interface GetFeatureInfoRequestx - the x point, in pixelsy - the y point, in pixelsGetFeatureInfoRequest.setQueryPoint(int, int)protected String getQueryX()
protected String getQueryY()
protected void initRequest()
initRequest in class AbstractRequestprotected abstract void initVersion()
AbstractRequestinitVersion in class AbstractRequestCopyright © 1996–2019 Geotools. All rights reserved.