@Controller public class OldAPIMapPrinterServlet extends BaseMapServlet
SPEC_LOGGER| Constructor and Description |
|---|
OldAPIMapPrinterServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createPDF(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
java.lang.String basePath,
java.lang.String spec)
Create the PDF and returns to the client (in JSON) the URL to get the PDF.
|
void |
createReportPost(java.lang.String baseUrl,
java.lang.String spec,
java.lang.String requestData,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Create the report from a POST request.
|
void |
getFile(java.lang.String id,
boolean inline,
javax.servlet.http.HttpServletResponse response)
To get the PDF created previously and write it to the http response.
|
void |
getInfo(java.lang.String baseUrl,
java.lang.String jsonpVar,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
To get (in JSON) the information about the available formats and CO.
|
void |
printReport(java.lang.String spec,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Print the report from a GET request.
|
void |
printReportPost(java.lang.String requestData,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Print the report from a POST request.
|
cleanUpName, error, error, findReplacement, getBaseUrl@RequestMapping(value="/dep/print.pdf",
method=POST)
public final void printReportPost(@RequestBody
java.lang.String requestData,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
java.io.IOException
requestData - the request spec as POST bodyhttpServletRequest - the request objecthttpServletResponse - the response objectjavax.servlet.ServletExceptionjava.io.IOException@RequestMapping(value="/dep/print.pdf",
method=GET)
public final void printReport(@RequestParam(value="spec",defaultValue="")
java.lang.String spec,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException
spec - the request spec as GET parameterhttpServletRequest - the request objecthttpServletResponse - the response objectjavax.servlet.ServletException@RequestMapping(value="/dep/create.json**",
method=POST)
public final void createReportPost(@RequestParam(value="url",defaultValue="")
java.lang.String baseUrl,
@RequestParam(value="spec",required=false)
java.lang.String spec,
@RequestBody
java.lang.String requestData,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException,
org.json.JSONException
baseUrl - the base url to the servletspec - if spec is form data then this will be nonnullrequestData - the request spec as POST bodyhttpServletRequest - the request objecthttpServletResponse - the response objectjava.io.IOExceptionorg.json.JSONExceptionprotected final void createPDF(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
java.lang.String basePath,
java.lang.String spec)
throws java.io.IOException,
org.json.JSONException
httpServletRequest - the request objecthttpServletResponse - the response objectbasePath - the path of the webappspec - the request specjava.io.IOExceptionorg.json.JSONException@RequestMapping(value="/dep/{id:.+}.printout")
public final void getFile(@PathVariable
java.lang.String id,
@RequestParam(value="inline",defaultValue="false")
boolean inline,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
inline - if true then inline the responseresponse - the http responseid - the id for the filejava.io.IOExceptionjavax.servlet.ServletException@RequestMapping(value="/dep/info.json")
public final void getInfo(@RequestParam(value="url",defaultValue="")
java.lang.String baseUrl,
@RequestParam(value="var",defaultValue="")
java.lang.String jsonpVar,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
baseUrl - the path to the webappjsonpVar - if given the result is returned as a variable assignmentreq - the http requestresp - the http responsejavax.servlet.ServletExceptionjava.io.IOException