Closed andreabono closed 2 years ago
Humm, this is not a use case I had considered. Long term I can make those methods public and put out a new release.
But in the short term, you might be able to create your own subclass of FDSNStationQueryParams
and access the setParam methods from within it.
Alternatively, and maybe easier, you can use the getParams()
method to get the params as a HashMap and add your custom parameter manually. Something like:
queryParams.getParams().put("authoritative", "any");
Let me know if these work for you.
THANKS A LOT!!!!!!!!
The second solution is ok for me.
I tried the first one before opening this issue, but I could not figure out how to get to the point.
Sometimes things are easier than one can expect.
Thanks again!!
Hello!!
I wrote the following code to read some stationXML info via an FDSNStationQuerier:
It works pretty fine, but now I need to add a "custom" parameter; so I'm trying:
queryParams.setParam("authoritative", "any");
but I'm facing the "protected" attribute on setParam.
So, what can I do to add a custom parameter?