public abstract class AbstractGetFeatureInfoRequest extends AbstractWMSRequest implements GetFeatureInfoRequest
EXCEPTION_XML, hints, onlineResource, properties
FEATURE_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.
|
initService
getPostContentType, getProperties, getRequestHints, performPostOutput, processKey, requiresPost, setProperty, setRequestHints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createResponse, getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setProperty, setRequestHints
public 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()
Request
getFinalURL
in interface Request
getFinalURL
in class AbstractRequest
org.geotools.data.wms.request.Request#getFinalURL()
public void addQueryLayer(Layer layer)
GetFeatureInfoRequest
addQueryLayer
in interface GetFeatureInfoRequest
layer
- a queryable LayerGetFeatureInfoRequest.addQueryLayer(Layer)
public void setQueryLayers(Set layers)
GetFeatureInfoRequest
setQueryLayers
in interface GetFeatureInfoRequest
layers
- A Set of type Layer, each to be queriedGetFeatureInfoRequest.setQueryLayers(java.util.Set)
public void setInfoFormat(String infoFormat)
GetFeatureInfoRequest
setInfoFormat
in interface GetFeatureInfoRequest
infoFormat
- a value from getInfoFormats()GetFeatureInfoRequest.setInfoFormat(java.lang.String)
public void setFeatureCount(String featureCount)
setFeatureCount
in interface GetFeatureInfoRequest
featureCount
- the maximum number of features to return in the responseGetFeatureInfoRequest.setFeatureCount(java.lang.String)
public void setFeatureCount(int featureCount)
setFeatureCount
in interface GetFeatureInfoRequest
featureCount
- the maximum number of features to return in the responseGetFeatureInfoRequest.setFeatureCount(int)
public void setQueryPoint(int x, int y)
GetFeatureInfoRequest
setQueryPoint
in interface GetFeatureInfoRequest
x
- 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 AbstractRequest
protected abstract void initVersion()
AbstractRequest
initVersion
in class AbstractRequest
Copyright © 1996–2019 Geotools. All rights reserved.