public class D4DSP extends AbstractDSP
| Modifier and Type | Class and Description |
|---|---|
protected static class |
D4DSP.State
Store compilation of information about
a request for meta-databuffer or databuffer from a client
and some info from the response
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowCompression |
protected String |
basece |
protected static String |
CHECKSUMTAG |
protected static String |
CONSTRAINTTAG |
protected D4DataDataset |
d4data |
protected static String[] |
DAP4EXTENSIONS |
protected static String |
DAP4PROTO |
protected static String[] |
DAPEXTENSIONS |
protected static String |
DAPVERSION |
protected ByteBuffer |
databuffer |
protected static String |
DATASUFFIX |
protected static boolean |
DEBUG |
protected static int |
DFALTPRELOADSIZE |
protected static String |
DMRSUFFIX |
protected static String |
DMRVERSION |
protected static String |
DSRSUFFIX |
protected static String |
FILEPROTO |
protected boolean |
isfile |
protected static boolean |
PARSEDEBUG |
protected int |
preloadsize |
protected static String |
PROTOTAG |
protected static String |
QUERYSTART |
context, dmr, path, xuri| Constructor and Description |
|---|
D4DSP() |
D4DSP(String path) |
D4DSP(String path,
DapContext cxt) |
| Modifier and Type | Method and Description |
|---|---|
protected D4DSP |
build() |
protected static String |
buildURL(String baseurl,
String suffix,
DapDataset template,
String ce) |
protected InputStream |
callServer(String methodurl,
D4DSP.State context) |
void |
close() |
String |
getCapabilities(String url)
Provide a method for getting the capabilities document.
|
ByteBuffer |
getDatabuffer() |
DataDataset |
getDataDataset() |
boolean |
match(String path,
DapContext context)
A path is a DAP4 path if at least one of the following is true.
|
D4DSP |
open(String path) |
D4DSP |
open(String path,
DapContext context) |
void |
parseDATA(D4DSP.State cxt,
ChunkInputStream reader)
Extract and "compile" the databuffer section of the server response
|
void |
parseDMR(D4DSP.State cxt,
ChunkInputStream reader)
Parse a straight DMR request
|
protected void |
readDAP(RequestMode mode)
Open a connection and make a request for the (possibly constrained) DMR.
|
protected void |
readDATA()
Open a connection and make a request for the constrained DATA
Note: for now, the whole of the databuffer is read, so any
secondary constraint is ignored in reading.
|
protected void |
readDMR()
Open a connection and make a request for the (possibly constrained) DMR.
|
void |
setD4Dataset(D4DataDataset dds) |
getContext, getDMR, getPath, setContext, setDataset, setPathprotected static final boolean PARSEDEBUG
protected static final boolean DEBUG
protected static final String DAPVERSION
protected static final String DMRVERSION
protected static final String DAP4PROTO
protected static final String FILEPROTO
protected static final String DMRSUFFIX
protected static final String DATASUFFIX
protected static final String DSRSUFFIX
protected static final String QUERYSTART
protected static final String CONSTRAINTTAG
protected static final String CHECKSUMTAG
protected static final String PROTOTAG
protected static final int DFALTPRELOADSIZE
protected static final String[] DAPEXTENSIONS
protected static final String[] DAP4EXTENSIONS
protected boolean isfile
protected D4DataDataset d4data
protected boolean allowCompression
protected int preloadsize
protected String basece
protected ByteBuffer databuffer
public D4DSP()
public D4DSP(String path, DapContext cxt) throws DapException
DapExceptionpublic D4DSP(String path) throws DapException
DapExceptionpublic D4DSP open(String path) throws DapException
open in interface DSPopen in class AbstractDSPDapExceptionpublic D4DSP open(String path, DapContext context) throws DapException
open in interface DSPopen in class AbstractDSPDapExceptionpublic boolean match(String path, DapContext context)
match in interface DSPmatch in class AbstractDSPpath - context - Any parameters that may help to decide (like a File object).public void close()
public DataDataset getDataDataset()
getDataDataset in interface DSPgetDataDataset in class AbstractDSPpublic ByteBuffer getDatabuffer()
public void setD4Dataset(D4DataDataset dds)
protected D4DSP build() throws DapException
DapExceptionprotected void readDAP(RequestMode mode) throws DapException
DapExceptionprotected void readDMR()
throws DapException
DapExceptionprotected void readDATA()
throws DapException
IOExceptionDapExceptionpublic void parseDMR(D4DSP.State cxt, ChunkInputStream reader) throws IOException
cxt - from which to read databufferreader - the chunk-based input streamDapExceptionIOExceptionpublic void parseDATA(D4DSP.State cxt, ChunkInputStream reader) throws IOException
cxt - from which to read databufferreader - the chunk-based input streamDapExceptionIOExceptionprotected InputStream callServer(String methodurl, D4DSP.State context) throws DapException
DapExceptionpublic String getCapabilities(String url) throws IOException
url - for accessing the documentDapExceptionIOExceptionprotected static String buildURL(String baseurl, String suffix, DapDataset template, String ce)
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.