Package dap4.dap4lib

Class HttpDSP


  • public class HttpDSP
    extends D4DSP
    Make a request to a server and convert the reply to a DapDataset from the returned bytes.
    • Field Detail

      • allowCompression

        protected boolean allowCompression
      • status

        protected int status
    • Constructor Detail

      • HttpDSP

        public HttpDSP()
    • Method Detail

      • setHttpDebug

        public static void setHttpDebug()
      • open

        public D4DSP open​(String fileurl,
                          ChecksumMode cmode)
                   throws DapException
        Description copied from class: D4DSP
        "open" a reference to a data source and return the DSP wrapper.
        Overrides:
        open in class D4DSP
        Parameters:
        fileurl - - Object that defines the data source
        Returns:
        = wrapping dsp
        Throws:
        DapException
      • dspMatch

        public boolean dspMatch​(String url,
                                DapContext context)
        Description copied from class: D4DSP
        Determine if a path refers to an object processable by this DSP
        Specified by:
        dspMatch in class D4DSP
        Parameters:
        url -
        context - Any parameters that may help to decide.
        Returns:
        true if this url appears to be processible by this DSP
      • makeRequest

        protected InputStream makeRequest​(String methodurl)
                                   throws DapException
        Open a connection and make a request for the (possibly constrained) DMR|DAP (choice is made by url extension)
        Throws:
        DapException