asascience-open/ncSOS — pull request #81 by mhermida (2013-09-13 16:06:13+00:00)
Title: Testing

I think this could be a easier way to integrate ncSOS in TDS:
In TDS Spring is set up to scan packages starting by thredds. So changing the name of the package com.asascience.ncsos.controller to thredds.server.ncsos.controller (or whatever starting by thredds) we will not need the sos-context.xml file or editing the TDS web.xml file. Spring will find controllers and will set up the mappings automatically. It should work only dropping the ncSOS jar file into the thredds/WEB-INF/lib directory.
Also, since this way the SosController will be using the Spring DispatcherServler that is mapped to "/" the servletPath is everything preceding the query string so the request.getPathInfo() returns an empty
string. To get the right dataset path we have to use the servlet path in the request and remove the "/sos" part. Mind I also add the a request mapping annotation to the handleSOSRequest to make it work properly.
Updated to netCDF-JAVA 4.3.19-SNAPSHOT too.