// Path: e-paper-jaxb-api/src/main/java/fr/romainmoreau/epaper/jaxb/api/Commands.java
// @XmlRootElement
// public class Commands {
// 	private List<Command> commands;
// 
// 	@XmlElements({ @XmlElement(name = "clear", type = Clear.class),
// 			@XmlElement(name = "setDrawingColors", type = SetDrawingColors.class),
// 			@XmlElement(name = "setDisplayDirection", type = SetDisplayDirection.class),
// 			@XmlElement(name = "setFontSize", type = SetFontSize.class),
// 			@XmlElement(name = "drawLine", type = DrawLine.class),
// 			@XmlElement(name = "drawRectangle", type = DrawRectangle.class),
// 			@XmlElement(name = "drawPoint", type = DrawPoint.class),
// 			@XmlElement(name = "drawTable", type = DrawTable.class),
// 			@XmlElement(name = "fillRectangle", type = FillRectangle.class),
// 			@XmlElement(name = "displayText", type = DisplayText.class),
// 			@XmlElement(name = "displayTextRectangle", type = DisplayTextRectangle.class),
// 			@XmlElement(name = "refreshAndUpdate", type = RefreshAndUpdate.class) })
// 	public List<Command> getCommands() {
// 		return commands;
// 	}
// 
// 	public void setCommands(List<Command> commands) {
// 		this.commands = commands;
// 	}
// }


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import fr.romainmoreau.epaper.jaxb.api.Commands;
package fr.romainmoreau.epaper.web.common;



@Controller
@RequestMapping("/")
public class EPaperController {
	@Autowired
	private EPaperWorker ePaperWorker;

	@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_XML_VALUE)
// Path: e-paper-jaxb-api/src/main/java/fr/romainmoreau/epaper/jaxb/api/Commands.java
// @XmlRootElement
// public class Commands {
// 	private List<Command> commands;
// 
// 	@XmlElements({ @XmlElement(name = "clear", type = Clear.class),
// 			@XmlElement(name = "setDrawingColors", type = SetDrawingColors.class),
// 			@XmlElement(name = "setDisplayDirection", type = SetDisplayDirection.class),
// 			@XmlElement(name = "setFontSize", type = SetFontSize.class),
// 			@XmlElement(name = "drawLine", type = DrawLine.class),
// 			@XmlElement(name = "drawRectangle", type = DrawRectangle.class),
// 			@XmlElement(name = "drawPoint", type = DrawPoint.class),
// 			@XmlElement(name = "drawTable", type = DrawTable.class),
// 			@XmlElement(name = "fillRectangle", type = FillRectangle.class),
// 			@XmlElement(name = "displayText", type = DisplayText.class),
// 			@XmlElement(name = "displayTextRectangle", type = DisplayTextRectangle.class),
// 			@XmlElement(name = "refreshAndUpdate", type = RefreshAndUpdate.class) })
// 	public List<Command> getCommands() {
// 		return commands;
// 	}
// 
// 	public void setCommands(List<Command> commands) {
// 		this.commands = commands;
// 	}
// }


// Path: e-paper-web-common/src/main/java/fr/romainmoreau/epaper/web/common/EPaperController.java
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import fr.romainmoreau.epaper.jaxb.api.Commands;

package fr.romainmoreau.epaper.web.common;



@Controller
@RequestMapping("/")
public class EPaperController {
	@Autowired
	private EPaperWorker ePaperWorker;

	@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_XML_VALUE)
	public @ResponseBody boolean post(@RequestBody Commands commands) {