public class BesDapDispatcher extends java.lang.Object implements DispatchHandler
| Constructor and Description |
|---|
BesDapDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addResponder(Dap4Responder r) |
static boolean |
allowDirectDataSourceAccess() |
void |
destroy()
Called when the servlet is shutdown.
|
BesApi |
getBesApi() |
long |
getLastModified(javax.servlet.http.HttpServletRequest req) |
protected java.util.Vector<Dap4Responder> |
getResponders() |
java.lang.String |
getSystemPath() |
void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init(javax.servlet.http.HttpServlet servlet,
org.jdom.Element config)
Since a constructor cannot be defined for an interface there needs to
be a way to initialize the objects state.
|
protected void |
init(javax.servlet.http.HttpServlet servlet,
org.jdom.Element config,
BesApi besApi)
This method is where the behavior of the BesDapDispatcher is defined.
|
boolean |
requestCanBeHandled(javax.servlet.http.HttpServletRequest request) |
boolean |
requestDispatch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean sendResponse) |
void |
setBesApi(BesApi besApi) |
static boolean |
useDAP2ResourceUrlResponse() |
public java.lang.String getSystemPath()
public static boolean allowDirectDataSourceAccess()
public static boolean useDAP2ResourceUrlResponse()
protected java.util.Vector<Dap4Responder> getResponders()
protected void addResponder(Dap4Responder r)
public BesApi getBesApi()
public void setBesApi(BesApi besApi)
public void init(javax.servlet.http.HttpServlet servlet,
org.jdom.Element config)
throws java.lang.Exception
DispatchHandlerinit in interface DispatchHandlerservlet - This should be the IsoDispatchHandler that creates the
instance of IsoDispatchHandler that is being intialized.config - A JDOM Element objct containing the XML Element that
announced which implementation of IsoDispatchHandler to use. It may (or
may not) contain additional confguration information.java.lang.Exception - When the bad things happen.DispatchServletprotected void init(javax.servlet.http.HttpServlet servlet,
org.jdom.Element config,
BesApi besApi)
throws java.lang.Exception
servlet - The Servlet instance that this dispatcher is running in.config - The configuration element loaded from the olfs.xml file for this dispatcherbesApi - The BesApi instance to use when servicing requests.java.lang.Exception - When the bad things happen.public boolean requestCanBeHandled(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
requestCanBeHandled in interface DispatchHandlerrequest - The request to be handled.java.lang.Exception - When the bad things happen.public void handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
handleRequest in interface DispatchHandlerrequest - The request to be handled.response - The response object into which the response information
will be placed.java.lang.Exception - When the bad things happen.public boolean requestDispatch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean sendResponse)
throws java.lang.Exception
java.lang.Exceptionpublic long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified in interface DispatchHandlerreq - The request for which we need to get a last modified date.HttpServletpublic void destroy()
DispatchHandlerdestroy in interface DispatchHandler