@Singleton
@Path(value="/pdftest")
public class PdfTestServices
extends step.core.deployment.AbstractServices
Modifier and Type | Class and Description |
---|---|
static class |
PdfTestServices.TestScenarioOutput |
static class |
PdfTestServices.TestScenarioOutputError |
Modifier and Type | Field and Description |
---|---|
protected PdfExtractionService |
extractionService |
protected step.attachments.FileResolver |
fileResolver |
protected PdfTestScenarioServices |
pdfScenarioServices |
protected PdfToImageService |
pdfToImageServices |
protected step.core.miscellaneous.ReportNodeAttachmentManager |
reportNodeAttachmentManager |
protected PdfTestSessionServices |
sessionServices |
Constructor and Description |
---|
PdfTestServices() |
Modifier and Type | Method and Description |
---|---|
String |
extractRegionText(String sessionid,
RegionDefinion regionDef) |
Set<Integer> |
getPageIdsWithAnchors(String sessionId) |
String |
getPdfFilename(String sessionid) |
javax.ws.rs.core.Response |
getPdfPageAsImage(String sessionid,
Integer pageid) |
Integer |
getPdfPageCount(String sessionid) |
Dimension |
getPdfPageCount(String sessionid,
Integer pageid) |
Scenario |
getScenario(String sessionid) |
protected File |
getWorkingDir() |
void |
init() |
void |
loadPdf(String sessionId,
String filename) |
void |
saveScenario(String sessionid,
Scenario scenario) |
PdfTestServices.TestScenarioOutput |
testScenario(String sessionId,
Scenario.TestScenario testScenario) |
protected PdfExtractionService extractionService
protected PdfTestScenarioServices pdfScenarioServices
protected PdfTestSessionServices sessionServices
protected PdfToImageService pdfToImageServices
protected step.core.miscellaneous.ReportNodeAttachmentManager reportNodeAttachmentManager
protected step.attachments.FileResolver fileResolver
@PostConstruct public void init() throws Exception
init
in class step.core.deployment.AbstractServices
Exception
@POST @Path(value="/session/{sessionid}/load") public void loadPdf(@PathParam(value="sessionid") String sessionId, @QueryParam(value="filename") String filename) throws Exception
Exception
@GET @Path(value="/scenario/{sessionid}/pagesIdsWithAnchors") public Set<Integer> getPageIdsWithAnchors(@PathParam(value="sessionid") String sessionId) throws Exception
Exception
@POST @Path(value="/scenario/{sessionid}/test") public PdfTestServices.TestScenarioOutput testScenario(@PathParam(value="sessionid") String sessionId, Scenario.TestScenario testScenario) throws Exception
Exception
protected File getWorkingDir()
@GET @Path(value="/pdf/{sessionid}/page/{pageid}") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getPdfPageAsImage(@PathParam(value="sessionid") String sessionid, @PathParam(value="pageid") Integer pageid) throws Exception
Exception
@POST @Path(value="/pdf/{sessionid}/zone/text") @Consumes(value="application/json") public String extractRegionText(@PathParam(value="sessionid") String sessionid, RegionDefinion regionDef) throws Exception
Exception
@POST @Path(value="/pdf/{sessionid}/scenario") @Consumes(value="application/json") public void saveScenario(@PathParam(value="sessionid") String sessionid, Scenario scenario) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonGenerationException
com.fasterxml.jackson.databind.JsonMappingException
IOException
@GET @Path(value="/pdf/{sessionid}/scenario") @Consumes(value="application/json") public Scenario getScenario(@PathParam(value="sessionid") String sessionid) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonGenerationException
com.fasterxml.jackson.databind.JsonMappingException
IOException
@GET @Path(value="/pdf/{sessionid}/pagecount") public Integer getPdfPageCount(@PathParam(value="sessionid") String sessionid) throws Exception
Exception
@GET @Path(value="/pdf/{sessionid}/pdf/page/{pageid}/dimension") public Dimension getPdfPageCount(@PathParam(value="sessionid") String sessionid, @PathParam(value="pageid") Integer pageid) throws Exception
Exception
Copyright © 2020. All rights reserved.