com.vikingbrain.nmt.controller.DavidBoxParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thedavidbox-client4j Show documentation
Show all versions of thedavidbox-client4j Show documentation
A Java HTTP client for consuming TheDavidBox Service API of Networked Media Tank devices
package com.vikingbrain.nmt.controller;
import com.vikingbrain.nmt.responses.DavidBoxResponse;
import com.vikingbrain.nmt.util.exceptions.TheDavidBoxClientException;
/**
* Response parser for TheDavidBox xml responses.
* @author vikingBrain
*
*/
public interface DavidBoxParser {
/**
* It parses the xml string into a Davidbox response object desired.
* @param responseTargetClass the target object to fit the xml
* @param xmlString the xml string to parse
* @return the davidbox response object
* @throws TheDavidBoxClientException exception in the client
*/
T parse(Class responseTargetClass, String xmlString) throws TheDavidBoxClientException;
}