@Controller @RequestMapping(value="/dods") public class OpendapServlet extends AbstractServlet implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
OpendapServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
dap2ExceptionHandler(opendap.dap.DAP2Exception de,
ReqState rs) |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles incoming requests from clients.
|
void |
doGetASC(ReqState rs)
Default handler for OPeNDAP ascii data requests.
|
void |
doGetBLOB(ReqState rs)
Default handler for the client's data request.
|
void |
doGetDAP2Data(ReqState rs)
Default handler for the client's data request.
|
void |
doGetDAS(ReqState rs)
Default handler for the client's DAS request.
|
void |
doGetDDS(ReqState rs)
Default handler for the client's DDS request.
|
void |
doGetDDX(ReqState rs)
Default handler for the client's DDS request.
|
void |
doGetDIR(ReqState rs)
Default handler for the client's directory request.
|
void |
doGetHELP(ReqState rs)
Default handler for the client's help request.
|
void |
doGetHTML(ReqState rs)
Default handler for OPeNDAP .html requests.
|
void |
doGetINFO(ReqState rs)
Default handler for OPeNDAP info requests.
|
void |
doGetVER(ReqState rs)
Default handler for the client's version request.
|
protected GuardedDataset |
getDataset(ReqState preq)
This method must be implemented locally for each OPeNDAP server.
|
protected long |
getLastModified(javax.servlet.http.HttpServletRequest req) |
protected ReqState |
getRequestState(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
getServerName()
In this (default) implementation of the getServerName() method we just get
the name of the servlet and pass it back.
|
String |
getServerVersion()
This function must be implemented locally for each OPeNDAP server.
|
void |
parseExceptionHandler(opendap.dap.parsers.ParseException pe,
javax.servlet.http.HttpServletResponse response)
Turns a ParseException into a OPeNDAP DAP2 error and sends it to the client.
|
protected void |
printBadURLPage(PrintWriter pw)
Prints the Bad URL Page page to the passed PrintWriter
|
anyExceptionHandler, badURL, dap2ExceptionHandler, doDebug, doDebugCmd, doGetCatalog, doGetStatus, doGetSystemProps, IOExceptionHandler, parseConstraint, printCatalog, printStatus, printThrowable, probeRequest, sendDODSError, setLogdoDelete, doHead, doOptions, doPost, doPut, doTrace, service, servicepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic String getServerVersion()
AbstractServletgetServerVersion in class AbstractServletprotected long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified in class javax.servlet.http.HttpServlet@RequestMapping(value="**",
method=GET)
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
AbstractServletAbstractServlet.doGet in class AbstractServletrequest - The client's HttpServletRequest request object.response - The server's HttpServletResponse response object.ReqStatepublic void doGetASC(ReqState rs) throws Exception
AbstractServletdoGetASC in class AbstractServletrs - the decoded Request StateExceptionpublic void doGetDAS(ReqState rs) throws Exception
AbstractServletOnce the DAS has been parsed it is sent to the requesting client.
doGetDAS in class AbstractServletrs - The ReqState of this client request. Contains all kinds of
important stuff.ExceptionReqStatepublic void doGetDDS(ReqState rs) throws Exception
AbstractServletOnce the DDS has been parsed and constrained it is sent to the requesting client.
doGetDDS in class AbstractServletrs - The ReqState of this client request. Contains all kinds of
important stuff.ExceptionReqStatepublic void doGetDDX(ReqState rs) throws Exception
AbstractServletOnce the DDS has been parsed and constrained it is sent to the requesting client.
doGetDDX in class AbstractServletrs - The ReqState of this client request. Contains all kinds of
important stuff.ExceptionReqStatepublic void doGetBLOB(ReqState rs) throws Exception
AbstractServletOnce the DDS has been parsed, the data is read (using the class in the localized server factory etc.), compared to the constraint expression, and then sent to the client.
doGetBLOB in class AbstractServletrs - The ReqState of this client request. Contains all kinds of
important stuff.ExceptionReqStatepublic void doGetDAP2Data(ReqState rs) throws Exception
AbstractServletOnce the DDS has been parsed, the data is read (using the class in the localized server factory etc.), compared to the constraint expression, and then sent to the client.
doGetDAP2Data in class AbstractServletrs - The ReqState of this client request.Exceptionpublic void doGetVER(ReqState rs) throws Exception
AbstractServletReturns a plain text document with server version and OPeNDAP core version #'s
doGetVER in class AbstractServletrs - The client's ReqStateExceptionpublic void doGetHELP(ReqState rs) throws Exception
AbstractServletdoGetHELP in class AbstractServletrs - The client's ReqState Exceptionpublic void doGetDIR(ReqState rs) throws Exception
AbstractServletdoGetDIR in class AbstractServletrs - The client's ReqStateExceptionGetDirHandlerpublic void doGetINFO(ReqState rs) throws Exception
AbstractServletdoGetINFO in class AbstractServletrs - The client's ReqState ExceptionGetInfoHandlerpublic void doGetHTML(ReqState rs) throws Exception
AbstractServletdoGetHTML in class AbstractServletrs - The client's ReqStateExceptionGetHTMLInterfaceHandlerpublic String getServerName()
AbstractServletgetServerName in class AbstractServletprotected void printBadURLPage(PrintWriter pw)
printBadURLPage in class AbstractServletpw - PrintWriter stream to which to dump the bad URL page.protected ReqState getRequestState(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
getRequestState in class AbstractServletprotected GuardedDataset getDataset(ReqState preq) throws Exception
AbstractServletgetDataset in class AbstractServletpreq - The ReqState object for this particular client request.Exceptionpublic void parseExceptionHandler(opendap.dap.parsers.ParseException pe,
javax.servlet.http.HttpServletResponse response)
AbstractServletparseExceptionHandler in class AbstractServletpe - The ParseException that caused the problem.response - The HttpServletResponse for the client.public void dap2ExceptionHandler(opendap.dap.DAP2Exception de,
ReqState rs)