public class DownloadWFSFeaturesServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
DownloadWFSFeaturesServlet() |
| Modifier and Type | Method and Description |
|---|---|
static File |
createTempFile(String fileName,
String extension)
Creates the temp file.
|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Do get.
|
static String |
getValueOfParameter(String paramName,
String requestURL)
Gets the value of parameter.
|
void |
init() |
protected void |
sendError(javax.servlet.http.HttpServletResponse response,
int status,
String message)
Send error.
|
protected javax.servlet.http.HttpServletResponse |
setContentLength(javax.servlet.http.HttpServletResponse resp,
long length)
Method to manage HttpServletResponse content length also to big data.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic 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 IOException
doGet in class javax.servlet.http.HttpServletreq - the reqresp - the respIOException - Signals that an I/O exception has occurred.public static String getValueOfParameter(String paramName, String requestURL)
paramName - the param namerequestURL - the request URLprotected javax.servlet.http.HttpServletResponse setContentLength(javax.servlet.http.HttpServletResponse resp,
long length)
resp - the resplength - the lengthprotected void sendError(javax.servlet.http.HttpServletResponse response,
int status,
String message)
throws IOException
response - the responsestatus - the statusmessage - the messageIOException - Signals that an I/O exception has occurred.public static File createTempFile(String fileName, String extension) throws IOException
fileName - the file nameextension - the extensionIOException - Signals that an I/O exception has occurred.Copyright © 2020. All Rights Reserved.