I'm trying to add a new REST-style API endpoint at /mapml - this
endpoint would take a layerName and output the corresponding MapML. So
far I've got something like this:
@RestController
@RequestMapping(path = "/mapml")
public class MapMLController {
@Autowired
GeoServer geoServer;
@RequestMapping(value = "", method = {RequestMethod.GET, RequestMethod.POST})
public Mapml mapML(String layer) {
LayerInfo layerInfo = geoServer.getCatalog().getLayer(layer);
// .. do stuff with the layerInfo
}
}
The problem is that the result of the user() call in the secure proxy to
the catalog is coming back with null instead of a anonymous user - I'm
guessing I need to put some Spring XML config in place to enable the
security filters to run on my new URL? Can anyone point me in the right
direction please?
Thanks,
Chris
--
Chris Hodgson
Refractions Research
Suite 419 – 1207 Douglas Street
Victoria, British Columbia
Canada, V8W 2E7
1-250-383-3022
http://www.refractions.net
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel