test_class.declarator: configurationService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private PrintConfigurationService configurationService;
test_class.type: PrintConfigurationService
test_class.var_name: configurationService
test_class.declarator: printDtoService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private PrintDtoConverterService printDtoService;
test_class.type: PrintDtoConverterService
test_class.var_name: printDtoService
test_class.declarator: printService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private PrintService printService;
test_class.type: PrintService
test_class.var_name: printService
test_class.declarator: printingController
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private PrintingController printingController;
test_class.type: PrintingController
test_class.var_name: printingController
test_class.declarator: securityManager
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private SecurityManager securityManager;
test_class.type: SecurityManager
test_class.var_name: securityManager
test_class.declarator: app
test_class.modifier: @Autowired
  	@Qualifier("application")
  	private
test_class.original_string: @Autowired
  	@Qualifier("application")
  	private ClientApplicationInfo app;
test_class.type: ClientApplicationInfo
test_class.var_name: app
test_class.file: plugin/print/print/src/test/java/org/geomajas/plugin/printing/mvc/PrintingControllerTest.java
test_class.identifier: PrintingControllerTest
test_case.body: @Test
  	public void testGet() throws Exception {
  		DefaultDocument document = new DefaultDocument(printService.createDefaultTemplate("A4", true), null,
  				getDefaultVisitor(-31.44, -37.43, 80.83f), new MapConfigurationVisitor(configurationService,
  						printDtoService));
  		String documentId = printService.putDocument(document);
  		ModelAndView mv = printingController.printGet(documentId, PrintingController.DOWNLOAD_METHOD_SAVE, "mydoc.pdf", 200);
  		Assert.assertSame(document, mv.getModel().get(PrintingController.DOCUMENT_KEY));
  		Assert.assertEquals("mydoc.pdf", mv.getModel().get(PrintingController.FILENAME_KEY));
  		Assert.assertEquals(Format.PDF, mv.getModel().get(PrintingController.FORMAT_KEY));
  	}
test_case.class_method_signature: PrintingControllerTest.testGet()
test_case.full_signature: @Test public void testGet()
test_case.identifier: testGet
test_case.invocations: createDefaultTemplate getDefaultVisitor putDocument printGet assertSame get getModel assertEquals get getModel assertEquals get getModel
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGet()
focal_class.declarator: log = LoggerFactory.getLogger(PrintingController.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger log = LoggerFactory.getLogger(PrintingController.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: DOCUMENT_VIEW_NAME = "plugin.printing.mvc.DocumentView"
focal_class.modifier: public static final
focal_class.original_string: public static final String DOCUMENT_VIEW_NAME = "plugin.printing.mvc.DocumentView";
focal_class.type: String
focal_class.var_name: DOCUMENT_VIEW_NAME
focal_class.declarator: DOCUMENT_KEY = "document"
focal_class.modifier: public static final
focal_class.original_string: public static final String DOCUMENT_KEY = "document";
focal_class.type: String
focal_class.var_name: DOCUMENT_KEY
focal_class.declarator: DOWNLOAD_KEY = "download"
focal_class.modifier: public static final
focal_class.original_string: public static final String DOWNLOAD_KEY = "download";
focal_class.type: String
focal_class.var_name: DOWNLOAD_KEY
focal_class.declarator: FILENAME_KEY = "name"
focal_class.modifier: public static final
focal_class.original_string: public static final String FILENAME_KEY = "name";
focal_class.type: String
focal_class.var_name: FILENAME_KEY
focal_class.declarator: FORMAT_KEY = "format"
focal_class.modifier: public static final
focal_class.original_string: public static final String FORMAT_KEY = "format";
focal_class.type: String
focal_class.var_name: FORMAT_KEY
focal_class.declarator: DPI_KEY = "dpi"
focal_class.modifier: public static final
focal_class.original_string: public static final String DPI_KEY = "dpi";
focal_class.type: String
focal_class.var_name: DPI_KEY
focal_class.declarator: DOWNLOAD_METHOD_BROWSER = "0"
focal_class.modifier: public static final
focal_class.original_string: public static final String DOWNLOAD_METHOD_BROWSER = "0";
focal_class.type: String
focal_class.var_name: DOWNLOAD_METHOD_BROWSER
focal_class.declarator: DOWNLOAD_METHOD_SAVE = "1"
focal_class.modifier: public static final
focal_class.original_string: public static final String DOWNLOAD_METHOD_SAVE = "1";
focal_class.type: String
focal_class.var_name: DOWNLOAD_METHOD_SAVE
focal_class.declarator: printService
focal_class.modifier: @Autowired
  	protected
focal_class.original_string: @Autowired
  	protected PrintService printService;
focal_class.type: PrintService
focal_class.var_name: printService
focal_class.declarator: configurationService
focal_class.modifier: @Autowired
  	protected
focal_class.original_string: @Autowired
  	protected PrintConfigurationService configurationService;
focal_class.type: PrintConfigurationService
focal_class.var_name: configurationService
focal_class.declarator: converterService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private PrintDtoConverterService converterService;
focal_class.type: PrintDtoConverterService
focal_class.var_name: converterService
focal_class.declarator: commandDispatcher
focal_class.modifier: @Autowired
  	protected
focal_class.original_string: @Autowired
  	protected CommandDispatcher commandDispatcher;
focal_class.type: CommandDispatcher
focal_class.var_name: commandDispatcher
focal_class.declarator: securityContext
focal_class.modifier: @Autowired
  	protected
focal_class.original_string: @Autowired
  	protected SecurityContext securityContext;
focal_class.type: SecurityContext
focal_class.var_name: securityContext
focal_class.declarator: objectMapper
focal_class.modifier: protected
focal_class.original_string: protected ObjectMapper objectMapper;
focal_class.type: ObjectMapper
focal_class.var_name: objectMapper
focal_class.file: plugin/print/print/src/main/java/org/geomajas/plugin/printing/mvc/PrintingController.java
focal_class.identifier: PrintingController
focal_class.class_method_signature: PrintingController.printGet(@RequestParam("documentId") String documentId,
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)
focal_class.full_signature: @RequestMapping(value = "/printing", method = RequestMethod.GET) public ModelAndView printGet(@RequestParam("documentId") String documentId,
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)
focal_class.identifier: printGet
focal_class.modifiers: @RequestMapping(value = "/printing", method = RequestMethod.GET) public
focal_class.parameters: (@RequestParam("documentId") String documentId,
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)
focal_class.return: ModelAndView
focal_class.signature: ModelAndView printGet(@RequestParam("documentId") String documentId,
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)
focal_class.class_method_signature: PrintingController.printPost(
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "template") String templateJson,
  			@RequestParam(value = "pageSize", required = false) String pageSize,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)
focal_class.full_signature: @RequestMapping(value = "/printing", method = RequestMethod.POST) public ModelAndView printPost(
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "template") String templateJson,
  			@RequestParam(value = "pageSize", required = false) String pageSize,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)
focal_class.identifier: printPost
focal_class.modifiers: @RequestMapping(value = "/printing", method = RequestMethod.POST) public
focal_class.parameters: (
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "template") String templateJson,
  			@RequestParam(value = "pageSize", required = false) String pageSize,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)
focal_class.return: ModelAndView
focal_class.signature: ModelAndView printPost(
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "template") String templateJson,
  			@RequestParam(value = "pageSize", required = false) String pageSize,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)
focal_class.class_method_signature: PrintingController.removeNulls(JsonNode tree)
focal_class.full_signature: private static void removeNulls(JsonNode tree)
focal_class.identifier: removeNulls
focal_class.modifiers: private static
focal_class.parameters: (JsonNode tree)
focal_class.return: void
focal_class.signature: void removeNulls(JsonNode tree)
focal_class.class_method_signature: PrintingController.exception(PrintingException exception, HttpServletResponse response)
focal_class.full_signature: @ExceptionHandler public ModelAndView exception(PrintingException exception, HttpServletResponse response)
focal_class.identifier: exception
focal_class.modifiers: @ExceptionHandler public
focal_class.parameters: (PrintingException exception, HttpServletResponse response)
focal_class.return: ModelAndView
focal_class.signature: ModelAndView exception(PrintingException exception, HttpServletResponse response)
focal_class.class_method_signature: PrintingController.getObjectMapper()
focal_class.full_signature: protected ObjectMapper getObjectMapper()
focal_class.identifier: getObjectMapper
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: ObjectMapper
focal_class.signature: ObjectMapper getObjectMapper()
focal_class.class_method_signature: PrintingController.fromJson(JsonNode template)
focal_class.full_signature: private PrintTemplateInfo fromJson(JsonNode template)
focal_class.identifier: fromJson
focal_class.modifiers: private
focal_class.parameters: (JsonNode template)
focal_class.return: PrintTemplateInfo
focal_class.signature: PrintTemplateInfo fromJson(JsonNode template)
focal_class.class_method_signature: PrintingController.postConstruct()
focal_class.full_signature: @PostConstruct public void postConstruct()
focal_class.identifier: postConstruct
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void postConstruct()
focal_method.body: @RequestMapping(value = "/printing", method = RequestMethod.GET)
  	public ModelAndView printGet(@RequestParam("documentId") String documentId,
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi) throws PrintingException {
  		ModelAndView mav = new ModelAndView();
  		mav.setViewName(DOCUMENT_VIEW_NAME);
  		mav.addObject(DOCUMENT_KEY, printService.removeDocument(documentId));
  		mav.addObject(DOWNLOAD_KEY, download);
  		mav.addObject(FILENAME_KEY, fileName);
  		mav.addObject(FORMAT_KEY, Format.decode(fileName));
  		mav.addObject(DPI_KEY, dpi);
  		return mav;
  	}
focal_method.class_method_signature: PrintingController.printGet(@RequestParam("documentId") String documentId,
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)
focal_method.full_signature: @RequestMapping(value = "/printing", method = RequestMethod.GET) public ModelAndView printGet(@RequestParam("documentId") String documentId,
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)
focal_method.identifier: printGet
focal_method.invocations: setViewName addObject removeDocument addObject addObject addObject decode addObject
focal_method.modifiers: @RequestMapping(value = "/printing", method = RequestMethod.GET) public
focal_method.parameters: (@RequestParam("documentId") String documentId,
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)
focal_method.return: ModelAndView
focal_method.signature: ModelAndView printGet(@RequestParam("documentId") String documentId,
  			@RequestParam(value = "download", defaultValue = DOWNLOAD_METHOD_SAVE, required = false) String download,
  			@RequestParam(value = "name", defaultValue = "geomajas.pdf", required = false) String fileName,
  			@RequestParam(value = "dpi", defaultValue = "72", required = false) int dpi)