@NotThreadSafe
public abstract class DapServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BIG_ENDIAN |
protected ByteOrder |
byteorder |
protected boolean |
compress |
protected static String |
DATAEXT |
static boolean |
DEBUG |
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 |
protected URLMap |
urlmap |
| 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 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 void |
doFavicon(DapRequest drq)
Process a favicon request.
|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
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 String |
getResourceFile(DapRequest drq,
boolean isdir)
Return the full file path with
respect to the resource directory.
|
void |
init() |
protected void |
senderror(DapRequest drq,
int httpcode,
Throwable t)
Generate an error based on the parameters
|
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
protected boolean compress
protected transient URLMap urlmap
protected transient ByteOrder byteorder
protected transient DapDSR dsrbuilder
protected transient ServletInfo svcinfo
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 doCapabilities(DapRequest drq) throws IOException
drq - The merged dap stateIOExceptionprotected void doFavicon(DapRequest drq) throws IOException
drq - The merged dap stateIOExceptionprotected 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 String getResourceFile(DapRequest drq, boolean isdir) throws IOException
drq - The request infoisdir - do we want a file or a directoryIOExceptionprotected 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–2014 UCAR/Unidata. All rights reserved.