Class ThreddsWmsServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @Controller
    @RequestMapping("/wms")
    public class ThreddsWmsServlet
    extends uk.ac.rdg.resc.edal.wms.WmsServlet
    An example WmsServlet which uses the THREDDS catalogue to supply data. This is example is well commented and demonstrates how to properly integrate the EDAL WMS into the THREDDS catalogue. It doesn't show how to implement caching, or WMS-specific configuration, but these things are recommended in the final version.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class uk.ac.rdg.resc.edal.wms.WmsServlet

        AXIS_RESOLUTION, DEFAULT_SUPPORTED_CRS_CODES, FEATURE_INFO_HTML_FORMAT, FEATURE_INFO_PLAIN_FORMAT, FEATURE_INFO_XML_FORMAT, velocityEngine
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void dispatchWmsRequest​(String request, uk.ac.rdg.resc.edal.wms.RequestParams params, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, uk.ac.rdg.resc.edal.wms.WmsCatalogue catalogue)  
      • Methods inherited from class uk.ac.rdg.resc.edal.wms.WmsServlet

        addVariablesToArray, doGet, extractSectionElevation, getCapabilities, getCatalogue, getCrsCodes, getFeatureInfo, getFeatureInfoValuesFromFeature, getLegendGraphic, getMap, getMetadata, getTimeseries, getTransect, getVerticalProfile, handleWmsException, setCapabilitiesAdvertisedPalettes, setCatalogue, setCrsCodes, showAnimationTimesteps, showLayerDetails, showMenu, showMinMax, showTimesteps
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
    • Constructor Detail

      • ThreddsWmsServlet

        public ThreddsWmsServlet()
    • Method Detail

      • dispatchWmsRequest

        @RequestMapping(value="**",
                        method=GET)
        protected void dispatchWmsRequest​(String request,
                                          uk.ac.rdg.resc.edal.wms.RequestParams params,
                                          javax.servlet.http.HttpServletRequest httpServletRequest,
                                          javax.servlet.http.HttpServletResponse httpServletResponse,
                                          uk.ac.rdg.resc.edal.wms.WmsCatalogue catalogue)
                                   throws Exception
        Overrides:
        dispatchWmsRequest in class uk.ac.rdg.resc.edal.wms.WmsServlet
        Throws:
        Exception