Package de.hsh.graja.transform
Class TransformBetweenProformaResponseAndGraja
java.lang.Object
de.hsh.graja.transform.TransformBetweenProformaResponseAndGraja
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GrajaSingleResultTO
static GrajaSingleResultTO
static ProformaResponseResultTO
convertToProformaResponse
(GrajaResultTO in, LocalDateTime timestamp, ResultSpecTO resultSpec) static ResponseType
createProformaErrorResponse
(LocalDateTime timestamp, String msg) static ProformaResponseResultTO
createProformaResponseResultFromProformaResponse
(ResponseType response, String format) static byte[]
createSerializedProformaErrorResponse
(LocalDateTime timestamp, String msg, String format) static ResponseType
deserializeResponse
(byte[] content) static byte[]
serializeResponse
(ResponseType response, String format)
-
Constructor Details
-
TransformBetweenProformaResponseAndGraja
public TransformBetweenProformaResponseAndGraja()
-
-
Method Details
-
convertToProformaResponse
public static ProformaResponseResultTO convertToProformaResponse(GrajaResultTO in, LocalDateTime timestamp, ResultSpecTO resultSpec) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBException
IOException
-
createProformaResponseResultFromProformaResponse
public static ProformaResponseResultTO createProformaResponseResultFromProformaResponse(ResponseType response, String format) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBException
IOException
-
convertToGrajaResult
public static GrajaSingleResultTO convertToGrajaResult(ProformaResponseResultTO in) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBException
IOException
-
convertToGrajaResult
public static GrajaSingleResultTO convertToGrajaResult(ResponseType in) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBException
IOException
-
serializeResponse
public static byte[] serializeResponse(ResponseType response, String format) throws javax.xml.bind.JAXBException, IOException - Parameters:
response
-format
- xml or zip (as result-spec/format in the ProFormA submission format)- Returns:
- Throws:
javax.xml.bind.JAXBException
IOException
-
deserializeResponse
public static ResponseType deserializeResponse(byte[] content) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBException
IOException
-
createProformaErrorResponse
-
createSerializedProformaErrorResponse
public static byte[] createSerializedProformaErrorResponse(LocalDateTime timestamp, String msg, String format) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBException
IOException
-