Class ThreddsWmsServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
uk.ac.rdg.resc.edal.wms.WmsServlet
thredds.server.wms.ThreddsWmsServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, org.springframework.beans.factory.InitializingBean

@Controller @RequestMapping("/wms") public class ThreddsWmsServlet extends uk.ac.rdg.resc.edal.wms.WmsServlet implements org.springframework.beans.factory.InitializingBean
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:
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
    dispatchWmsRequest(String request, uk.ac.rdg.resc.edal.wms.RequestParams params, jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, uk.ac.rdg.resc.edal.wms.WmsCatalogue wmsCatalogue)
     
    protected void
    doGet(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse)
     
    void
    init(org.springframework.context.event.ContextRefreshedEvent event)
     
    static void
     
    static void
    showCache(Formatter formatter)
     

    Methods inherited from class uk.ac.rdg.resc.edal.wms.WmsServlet

    addVariablesToArray, 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 jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ThreddsWmsServlet

      public ThreddsWmsServlet()
  • Method Details

    • init

      @EventListener public void init(org.springframework.context.event.ContextRefreshedEvent event)
    • afterPropertiesSet

      public void afterPropertiesSet() throws jakarta.servlet.ServletException
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      jakarta.servlet.ServletException
    • doGet

      protected void doGet(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doGet in class uk.ac.rdg.resc.edal.wms.WmsServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • dispatchWmsRequest

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

      public static void showCache(Formatter formatter)
    • resetCache

      public static void resetCache()