Class AbstractMetadataController

java.lang.Object
thredds.server.metadata.controller.AbstractMetadataController
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.web.context.ServletContextAware, IMetadataContoller
Direct Known Subclasses:
IsoController, NcmlController, UddcController

public abstract class AbstractMetadataController extends Object implements org.springframework.web.context.ServletContextAware, IMetadataContoller
  • Field Details

    • _logServerStartup

      protected static org.slf4j.Logger _logServerStartup
    • _allow

      protected boolean _allow
    • _metadataServiceType

      protected String _metadataServiceType
    • _servletPath

      protected String _servletPath
    • sc

      protected jakarta.servlet.ServletContext sc
  • Constructor Details

    • AbstractMetadataController

      public AbstractMetadataController()
  • Method Details

    • setServletContext

      public void setServletContext(jakarta.servlet.ServletContext sc)
      Specified by:
      setServletContext in interface org.springframework.web.context.ServletContextAware
    • isAllowed

      protected void isAllowed(boolean allow, String metadataServiceType, jakarta.servlet.http.HttpServletResponse res) throws Exception
      Throws:
      Exception
    • returnError

      protected void returnError(String message, String metadataServiceType, jakarta.servlet.http.HttpServletResponse res) throws Exception
      Throws:
      Exception
    • handleMetadataRequest

      public void handleMetadataRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException
      All metadata controllers must implement a handleMetadataRequest method.
      Specified by:
      handleMetadataRequest in interface IMetadataContoller
      Parameters:
      req - incoming url request
      res - outgoing web based response
      Throws:
      jakarta.servlet.ServletException - if ServletException occurred
      IOException - if IOException occurred
    • getThreddsDataset

      protected thredds.client.catalog.Dataset getThreddsDataset(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)
      Get the THREDDS dataset object where catalogString and dataset are passed in the request string
      Parameters:
      req - incoming url request
    • getPath

      protected abstract String getPath()
    • getInfoPath

      protected String getInfoPath(jakarta.servlet.http.HttpServletRequest req)