public class HttpDSP extends D4DSP
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowCompression |
protected static boolean |
DEBUG |
protected static int |
DFALTPRELOADSIZE |
protected int |
status |
checksummode, datamap, dmr, dmrtext, location, mode, PARSEDEBUG, remoteorder, stream, streamclosed, xuri
Constructor and Description |
---|
HttpDSP() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
buildURL(java.lang.String baseurl,
java.lang.String suffix,
DapDataset template,
java.lang.String ce) |
boolean |
dspMatch(java.lang.String url,
DapContext context)
Determine if a path refers to an object processable by this DSP
|
void |
loadDAP()
This will be called lazily when trying to read data.
|
void |
loadDMR()
Extract the DMR from available dechunked data
|
protected java.io.InputStream |
makeRequest(java.lang.String methodurl)
Open a connection and make a request for the (possibly constrained) DMR|DAP
(choice is made by url extension)
|
D4DSP |
open(java.lang.String fileurl,
ChecksumMode cmode)
"open" a reference to a data source and return the DSP wrapper.
|
static void |
setHttpDebug() |
addVariableData, getChecksumMap, getChecksumMode, getDMR, getMethodUrl, getStream, getVariableDataMap, loadContext, parseDMR, parseURL, processAttributes, processMaps, readDMR, reportError, setDMR, setStream, suppressAttributes
protected static final boolean DEBUG
protected static final int DFALTPRELOADSIZE
protected boolean allowCompression
protected int status
public static void setHttpDebug()
public D4DSP open(java.lang.String fileurl, ChecksumMode cmode) throws DapException
D4DSP
open
in class D4DSP
fileurl
- - Object that defines the data sourceDapException
public boolean dspMatch(java.lang.String url, DapContext context)
D4DSP
public void loadDMR() throws DapException
D4DSP
loadDMR
in class D4DSP
DapException
public void loadDAP() throws DapException
loadDAP
in class D4DSP
DapException
protected java.io.InputStream makeRequest(java.lang.String methodurl) throws DapException
DapException
protected static java.lang.String buildURL(java.lang.String baseurl, java.lang.String suffix, DapDataset template, java.lang.String ce)