@NotThreadSafe
public abstract class DapServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BIG_ENDIAN |
protected static long |
binarywritelimit |
protected ByteOrder |
byteorder |
protected static DapCache |
cache |
protected boolean |
compress |
protected static String |
DATAEXT |
static boolean |
DEBUG |
static long |
DEFAULTBINARYWRITELIMIT |
protected static String |
DMREXT |
protected DapDSR |
dsrbuilder |
protected static String |
DSREXT |
protected static String |
FAVICON |
protected static boolean |
IS_BIG_ENDIAN |
protected static String |
LITTLE_ENDIAN |
static boolean |
PARSEDEBUG |
protected ServletInfo |
svcinfo |
| Constructor and Description |
|---|
DapServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCommonHeaders(DapRequest drq) |
protected CEConstraint |
buildconstraint(DapRequest drq,
String sce,
DapDataset dmr)
If the request has a constraint, then parse it
else use the universal constraint
|
protected abstract void |
doCapabilities(DapRequest drq)
Process a capabilities request.
|
protected void |
doData(DapRequest drq)
Process a DataDMR request.
|
protected void |
doDMR(DapRequest drq)
Process a DMR request.
|
protected void |
doDSR(DapRequest drq)
Process a DSR request.
|
protected abstract void |
doFavicon(DapRequest drq)
Process a favicon request.
|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected abstract long |
getBinaryWriteLimit()
Set the limit of the max amount of binary data to return to caller.
|
protected static DapCache |
getCache() |
ServletInfo |
getInfo() |
protected DapRequest |
getRequestState(ServletInfo info,
javax.servlet.http.HttpServletRequest rq,
javax.servlet.http.HttpServletResponse rsp)
Merge the servlet inputs into a single object
for easier transport as well as adding value.
|
protected abstract String |
getResourcePath(DapRequest drq)
Convert a URL path into an absolute file path
|
void |
init() |
protected void |
senderror(DapRequest drq,
int httpcode,
Throwable t)
Generate an error based on the parameters
|
static void |
setBinaryWritelimit(long limit) |
protected static void |
setCache(DapCache cache) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic static final boolean DEBUG
public static final boolean PARSEDEBUG
protected static final String BIG_ENDIAN
protected static final String LITTLE_ENDIAN
protected static boolean IS_BIG_ENDIAN
protected static final String DMREXT
protected static final String DATAEXT
protected static final String DSREXT
protected static final String FAVICON
public static final long DEFAULTBINARYWRITELIMIT
protected static DapCache cache
protected static long binarywritelimit
protected boolean compress
protected transient ByteOrder byteorder
protected transient DapDSR dsrbuilder
protected transient ServletInfo svcinfo
protected static void setCache(DapCache cache)
protected static DapCache getCache()
public static void setBinaryWritelimit(long limit)
protected abstract void doFavicon(DapRequest drq) throws IOException
drq - The merged dap stateIOExceptionprotected abstract void doCapabilities(DapRequest drq) throws IOException
drq - The merged dap stateIOExceptionprotected abstract String getResourcePath(DapRequest drq) throws IOException
drq - The wrapped request infoIOExceptionprotected abstract long getBinaryWriteLimit()
public ServletInfo getInfo()
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doDSR(DapRequest drq) throws IOException
drq - The merged dap stateIOExceptionprotected void doDMR(DapRequest drq) throws IOException
drq - The merged dap stateIOExceptionprotected void doData(DapRequest drq) throws IOException
drq - The merged dap stateIOExceptionprotected void addCommonHeaders(DapRequest drq) throws IOException
IOExceptionprotected DapRequest getRequestState(ServletInfo info, javax.servlet.http.HttpServletRequest rq, javax.servlet.http.HttpServletResponse rsp) throws IOException
rq - A Servlet request objectrsp - A Servlet response objectIOExceptionprotected void senderror(DapRequest drq, int httpcode, Throwable t) throws IOException
drq - DapRequesthttpcode - 0=>no code specifiedt - exception that caused the error; may be nullIOExceptionprotected CEConstraint buildconstraint(DapRequest drq, String sce, DapDataset dmr) throws IOException
drq - sce - string of the constraintIOExceptionCopyright © 1999-2015 UCAR/Unidata. All Rights Reserved.