Package thredds.server.wms
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voiddispatchWmsRequest(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 voiddoGet(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) voidinit(org.springframework.context.event.ContextRefreshedEvent event) static voidstatic voidMethods 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, showTimestepsMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
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:
afterPropertiesSetin interfaceorg.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:
doGetin classuk.ac.rdg.resc.edal.wms.WmsServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
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:
dispatchWmsRequestin classuk.ac.rdg.resc.edal.wms.WmsServlet- Throws:
Exception
-
showCache
-
resetCache
public static void resetCache()
-