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, suppressAttributesprotected 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
D4DSPopen in class D4DSPfileurl - - Object that defines the data sourceDapExceptionpublic boolean dspMatch(java.lang.String url,
DapContext context)
D4DSPpublic void loadDMR()
throws DapException
D4DSPloadDMR in class D4DSPDapExceptionpublic void loadDAP()
throws DapException
loadDAP in class D4DSPDapExceptionprotected java.io.InputStream makeRequest(java.lang.String methodurl)
throws DapException
DapExceptionprotected static java.lang.String buildURL(java.lang.String baseurl,
java.lang.String suffix,
DapDataset template,
java.lang.String ce)