Long John Silver ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=614c2e4da995ad0073d978de
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiMWI1YTI5NDA4ZmRlNGVlMThmMzNjOTAwNGM2MGMyNGEiLCJwIjoiaiJ9
 ) / Improvement ( 
https://osgeo-org.atlassian.net/browse/GEOS-10244?atlOrigin=eyJpIjoiMWI1YTI5NDA4ZmRlNGVlMThmMzNjOTAwNGM2MGMyNGEiLCJwIjoiaiJ9
 ) GEOS-10244 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10244?atlOrigin=eyJpIjoiMWI1YTI5NDA4ZmRlNGVlMThmMzNjOTAwNGM2MGMyNGEiLCJwIjoiaiJ9
 ) WFS / GetFeature request: make all KVP available with GetFeatureRequest 
object ( 
https://osgeo-org.atlassian.net/browse/GEOS-10244?atlOrigin=eyJpIjoiMWI1YTI5NDA4ZmRlNGVlMThmMzNjOTAwNGM2MGMyNGEiLCJwIjoiaiJ9
 )

Issue Type: Improvement Affects Versions: 2.20.0 Assignee: Unassigned 
Components: WFS Created: 23/Sep/21 10:21 AM Priority: Highest Reporter: Long 
John Silver ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=614c2e4da995ad0073d978de
 )

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);
> 
> 

( 
https://osgeo-org.atlassian.net/browse/GEOS-10244#add-comment?atlOrigin=eyJpIjoiMWI1YTI5NDA4ZmRlNGVlMThmMzNjOTAwNGM2MGMyNGEiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10244#add-comment?atlOrigin=eyJpIjoiMWI1YTI5NDA4ZmRlNGVlMThmMzNjOTAwNGM2MGMyNGEiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100178- 
sha1:b30d6b7 )
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to