[Geoserver-devel] [JIRA] (GEOS-10244) WFS / GetFeature request: make all KVP available with GetFeatureRequest object

Long John Silver created an issue

GeoServer / ImprovementGEOS-10244

WFS / GetFeature request: make all KVP available with GetFeatureRequest object

Issue Type:

ImprovementImprovement

Affects Versions:

2.20.0

Assignee:

Unassigned

Components:

WFS

Created:

23/Sep/21 10:21 AM

Priority:

HighestHighest

Reporter:

Long John Silver

Plugin development may need to access vendor specific parameters submitted with a WFS GetFeature request.
For example, it might be required that a Bearer Access Token is submitted via the GET Query: “access_token=…”.

The proposed code change is very simple, as it adds the not existing setter function setExtendedProperties() to populate all KVP into the existing slot for “extendedProperties”. One can later use the existing getter function getExtendedProperties() from Request.java for fetching the “rawKVP”:

> GetFeatureRequest wfsRequest = GetFeatureRequest.adapt(operation.getParameters()[0]);
> String accessToken = (String) wfsRequest.getExtendedProperties().get(“access_token”);

Proposed change to set the “extendedProperty” in GetFeatureRequest.java:

> public void setExtendedProperties(Map<String, Object> vsp)
>
> Unknown macro: { LOGGER.info(“setting extendedProperties” + vsp.toString()); eSet(adaptee, “extendedProperties”, vsp); }

which requires to add one line of code to the GetFeatureKvpRequestReader.java, function read(…):

> req.setExtendedProperties(kvp);

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100178-sha1:b30d6b7)

Atlassian logo