Class WFSController

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

    @Controller
    @RequestMapping("/wfs")
    public class WFSController
    extends javax.servlet.http.HttpServlet
    Controller for WFS Simple Geometry Web Service
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      WFSController()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static String constructServerPath​(javax.servlet.http.HttpServletRequest hsreq)
      Constructs the full server URI from a request
      static String getXMLNamespaceXMLNSValue​(javax.servlet.http.HttpServletRequest hsreq)
      Gets the namespace associated with the WFS Controller and this specific THREDDS server
      void httpHandler​(javax.servlet.http.HttpServletRequest hsreq, javax.servlet.http.HttpServletResponse hsres)
      A handler for WFS based HTTP requests that sends to other request handlers to handle the request.
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doGet, 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

      • WFSController

        public WFSController()
    • Method Detail

      • getXMLNamespaceXMLNSValue

        public static String getXMLNamespaceXMLNSValue​(javax.servlet.http.HttpServletRequest hsreq)
        Gets the namespace associated with the WFS Controller and this specific THREDDS server
        Parameters:
        hsreq - The request which contains the applicable URI of the WFS Controller
        Returns:
        the namespace value as "SERVER/PATH"
      • constructServerPath

        public static String constructServerPath​(javax.servlet.http.HttpServletRequest hsreq)
        Constructs the full server URI from a request
        Parameters:
        hsreq - The relevant request
        Returns:
        The URI of the server corresponding to the request
      • httpHandler

        @RequestMapping("**")
        public void httpHandler​(javax.servlet.http.HttpServletRequest hsreq,
                                javax.servlet.http.HttpServletResponse hsres)
        A handler for WFS based HTTP requests that sends to other request handlers to handle the request. Servlet Path: /wfs/{request}