public class HttpGetHandler extends java.lang.Object implements DispatchHandler
Modifier and Type | Class and Description |
---|---|
class |
HttpGetHandler.catalogUpdater |
Constructor and Description |
---|
HttpGetHandler() |
HttpGetHandler(boolean enableUpdateUrl) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describeCoverageTestPage(java.lang.String requestUrl,
java.util.Map<java.lang.String,java.lang.String[]> keyValuePairs) |
void |
destroy()
Called when the servlet is shutdown.
|
void |
echoWcsRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
java.lang.String |
getCapabilitiesTestPage(java.lang.String serviceUrl,
java.util.Map<java.lang.String,java.lang.String[]> keyValuePairs) |
java.lang.String |
getCoverageTestPage(javax.servlet.http.HttpServletRequest req,
java.util.Map<java.lang.String,java.lang.String[]> keyValuePairs) |
long |
getLastModified(javax.servlet.http.HttpServletRequest req) |
static java.lang.String |
getRequestUrlWithQuery(javax.servlet.http.HttpServletRequest request) |
void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init(javax.servlet.http.HttpServlet dispatchServlet) |
void |
init(javax.servlet.http.HttpServlet dispatchServlet,
org.jdom.Element e)
Since a constructor cannot be defined for an interface there needs to
be a way to initialize the objects state.
|
void |
init(javax.servlet.http.HttpServlet dispatchServlet,
org.jdom.Element e,
BesApi besApi) |
void |
init(java.lang.String contextPath,
java.lang.String resourcePath) |
boolean |
isUpdateUrlEnabled() |
boolean |
requestCanBeHandled(javax.servlet.http.HttpServletRequest request) |
void |
sendCapabilitesPresentationPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
sendDescribeCoveragePage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setEnableUpdateUrl(boolean state) |
void |
testWcsRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
update(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public HttpGetHandler()
public HttpGetHandler(boolean enableUpdateUrl)
public void init(javax.servlet.http.HttpServlet dispatchServlet, org.jdom.Element e) throws javax.servlet.ServletException
DispatchHandler
init
in interface DispatchHandler
dispatchServlet
- This should be the IsoDispatchHandler that creates the
instance of IsoDispatchHandler that is being intialized.e
- 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.javax.servlet.ServletException
DispatchServlet
public void init(javax.servlet.http.HttpServlet dispatchServlet, org.jdom.Element e, BesApi besApi) throws javax.servlet.ServletException
init
in interface DispatchHandler
javax.servlet.ServletException
public void init(javax.servlet.http.HttpServlet dispatchServlet) throws javax.servlet.ServletException
javax.servlet.ServletException
public boolean isUpdateUrlEnabled()
public void setEnableUpdateUrl(boolean state)
public void init(java.lang.String contextPath, java.lang.String resourcePath) throws javax.servlet.ServletException
javax.servlet.ServletException
public boolean requestCanBeHandled(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
requestCanBeHandled
in interface DispatchHandler
request
- 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 DispatchHandler
request
- 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 long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified
in interface DispatchHandler
req
- The request for which we need to get a last modified date.HttpServlet
public void destroy()
DispatchHandler
destroy
in interface DispatchHandler
public void update(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
public void sendDescribeCoveragePage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
public void sendCapabilitesPresentationPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
public void echoWcsRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public static java.lang.String getRequestUrlWithQuery(javax.servlet.http.HttpServletRequest request)
public void testWcsRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedException
java.io.IOException
public java.lang.String getCapabilitiesTestPage(java.lang.String serviceUrl, java.util.Map<java.lang.String,java.lang.String[]> keyValuePairs) throws java.lang.InterruptedException, WcsException
java.lang.InterruptedException
WcsException
public java.lang.String describeCoverageTestPage(java.lang.String requestUrl, java.util.Map<java.lang.String,java.lang.String[]> keyValuePairs) throws java.lang.InterruptedException, WcsException
java.lang.InterruptedException
WcsException
public java.lang.String getCoverageTestPage(javax.servlet.http.HttpServletRequest req, java.util.Map<java.lang.String,java.lang.String[]> keyValuePairs) throws java.lang.InterruptedException, WcsException
java.lang.InterruptedException
WcsException