Package dap4.d4ts

Class D4TSServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
dap4.servlet.DapController
dap4.d4ts.D4TSServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class D4TSServlet extends dap4.servlet.DapController
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected List<FrontPage.Root>
     

    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)
     
    protected void
    doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    long
     
    dap4.servlet.CDMWrap
    getCDMWrap(dap4.servlet.DapRequest drq)
     
    protected FrontPage
    getFrontPage(dap4.servlet.DapRequest drq, dap4.core.util.DapContext cxt)
    Isolate front page builder so we can override if desired for testing.
    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
     

    Methods inherited from class dap4.servlet.DapController

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

    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, log, log

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • D4TSServlet

      public D4TSServlet()
  • Method Details

    • initialize

      public void initialize()
      Overrides:
      initialize in class dap4.servlet.DapController
    • doGet

      protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      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
    • getFrontPage

      protected FrontPage getFrontPage(dap4.servlet.DapRequest drq, dap4.core.util.DapContext cxt) throws dap4.core.util.DapException
      Isolate front page builder so we can override if desired for testing.
      Parameters:
      drq -
      cxt -
      Returns:
      FrontPage object
      Throws:
      dap4.core.util.DapException
    • 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
    • getCDMWrap

      public dap4.servlet.CDMWrap getCDMWrap(dap4.servlet.DapRequest drq) throws IOException
      Specified by:
      getCDMWrap in class dap4.servlet.DapController
      Throws:
      IOException
    • 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
      Parameters:
      drq - dap request
      location - suffix of url path
      Returns:
      path in a string builder so caller can extend.
      Throws:
      IOException
      dap4.core.util.DapException