Class Dap4Controller

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
dap4.servlet.DapController
thredds.server.dap4.Dap4Controller
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

@Controller @RequestMapping("/dap4") public class Dap4Controller extends dap4.servlet.DapController
See Also:
  • Field Summary

    Fields inherited from class dap4.servlet.DapController

    BIG_ENDIAN, DATAEXT, DEFAULTBINARYWRITELIMIT, DMREXT, DSREXT, ENDINGS, FAVICON, initialized, IS_BIG_ENDIAN, LITTLE_ENDIAN, testDataRoot, webContentRoot
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doCapabilities(dap4.servlet.DapRequest drq, dap4.core.util.DapContext cxt)
     
    protected void
    doFavicon(String icopath, dap4.core.util.DapContext cxt)
     
    long
     
    getResourcePath(dap4.servlet.DapRequest drq, String location)
    Convert a URL path for a dataset into an absolute file path
     
    getWebContentRoot(dap4.servlet.DapRequest drq)
     
    void
    handleRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)
     

    Methods inherited from class dap4.servlet.DapController

    addCommonHeaders, buildDapContext, computeDMRChecksums, constrainDapContext, doData, doDMR, doDSR, getRequestState, init, initialize, printDMR, senderror

    Methods inherited from class jakarta.servlet.http.HttpServlet

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

    Methods inherited from class jakarta.servlet.GenericServlet

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

    Methods inherited from class java.lang.Object

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

    • Dap4Controller

      public Dap4Controller()
  • Method Details

    • handleRequest

      @RequestMapping("**") public void handleRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException
      Overrides:
      handleRequest in class dap4.servlet.DapController
      Throws:
      IOException
    • doFavicon

      protected void doFavicon(String icopath, dap4.core.util.DapContext cxt) throws IOException
      Specified by:
      doFavicon in class dap4.servlet.DapController
      Throws:
      IOException
    • doCapabilities

      protected void doCapabilities(dap4.servlet.DapRequest drq, dap4.core.util.DapContext cxt) throws IOException
      Specified by:
      doCapabilities in class dap4.servlet.DapController
      Throws:
      IOException
    • getBinaryWriteLimit

      public long getBinaryWriteLimit()
      Specified by:
      getBinaryWriteLimit in class dap4.servlet.DapController
    • getServletID

      public String getServletID()
      Specified by:
      getServletID in class dap4.servlet.DapController
    • getWebContentRoot

      public String getWebContentRoot(dap4.servlet.DapRequest drq) throws dap4.core.util.DapException
      Specified by:
      getWebContentRoot in class dap4.servlet.DapController
      Throws:
      dap4.core.util.DapException
    • getResourcePath

      public String getResourcePath(dap4.servlet.DapRequest drq, String location) throws dap4.core.util.DapException
      Convert a URL path for a dataset into an absolute file path
      Specified by:
      getResourcePath in class dap4.servlet.DapController
      Parameters:
      location - suffix of url path
      Returns:
      path in a string builder so caller can extend.
      Throws:
      IOException
      dap4.core.util.DapException