|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.wms.request.AbstractRequest org.geotools.data.wms.request.AbstractGetFeatureInfoRequest
A base class for GetFeatureInfoRequests that provides some functionality.
Field Summary |
Fields inherited from class org.geotools.data.wms.request.AbstractRequest |
EXCEPTION_XML, onlineResource, properties |
Fields inherited from interface org.geotools.data.wms.request.GetFeatureInfoRequest |
FEATURE_COUNT, INFO_FORMAT, QUERY_LAYERS, QUERY_X, QUERY_Y |
Fields inherited from interface org.geotools.data.wms.request.Request |
REQUEST, SERVICE, VERSION, WMTVER |
Constructor Summary | |
AbstractGetFeatureInfoRequest(java.net.URL onlineResource,
GetMapRequest request)
Constructs a GetFeatureInfoRequest. |
Method Summary | |
void |
addQueryLayer(Layer layer)
Add a Layer to the set of layers to be queried in the request. |
java.net.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 java.lang.String |
getQueryX()
Created because the 1.3.0 spec changes this parameter name. |
protected java.lang.String |
getQueryY()
Created because the 1.3.0 spec changes this parameter name. |
protected void |
initRequest()
|
protected abstract void |
initVersion()
|
void |
setFeatureCount(int featureCount)
|
void |
setFeatureCount(java.lang.String featureCount)
|
void |
setInfoFormat(java.lang.String infoFormat)
Sets the INFO_FORMAT parameter, which specifies the format of the GetFeatureInfoResponse. |
void |
setQueryLayers(java.util.Set layers)
An unordered set of type Layer. |
void |
setQueryPoint(int x,
int y)
The point on the image (in pixels) to be queried. |
Methods inherited from class org.geotools.data.wms.request.AbstractRequest |
getProperties, processKey, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.data.wms.request.Request |
getProperties, setProperty |
Constructor Detail |
public AbstractGetFeatureInfoRequest(java.net.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 onMethod Detail |
public java.net.URL getFinalURL()
Request
getFinalURL
in interface Request
getFinalURL
in class AbstractRequest
Request.getFinalURL()
public void addQueryLayer(Layer layer)
GetFeatureInfoRequest
addQueryLayer
in interface GetFeatureInfoRequest
layer
- a queryable LayerGetFeatureInfoRequest.addQueryLayer(org.geotools.data.ows.Layer)
public void setQueryLayers(java.util.Set layers)
GetFeatureInfoRequest
setQueryLayers
in interface GetFeatureInfoRequest
layers
- A Set of type Layer, each to be queriedGetFeatureInfoRequest.setQueryLayers(java.util.Set)
public void setInfoFormat(java.lang.String infoFormat)
GetFeatureInfoRequest
setInfoFormat
in interface GetFeatureInfoRequest
infoFormat
- a value from getInfoFormats()GetFeatureInfoRequest.setInfoFormat(java.lang.String)
public void setFeatureCount(java.lang.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 java.lang.String getQueryX()
protected java.lang.String getQueryY()
protected void initRequest()
protected abstract void initVersion()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |