Class TransformBetweenProformaResponseAndGraja

java.lang.Object
de.hsh.graja.transform.TransformBetweenProformaResponseAndGraja

public class TransformBetweenProformaResponseAndGraja extends Object
  • Constructor Details

    • TransformBetweenProformaResponseAndGraja

      public TransformBetweenProformaResponseAndGraja()
  • Method Details

    • createOverallResult

      public static proforma.xml21.OverallResultType createOverallResult(Double score, Boolean isInternalError)
    • createResult

      public static proforma.xml21.ResultType createResult(Double score)
    • convertToProformaResponse

      public static ProformaResponseResultTO convertToProformaResponse(GrajaResultTO gsr, LocalDateTime timestamp, ResultSpecTO resultSpec) throws javax.xml.bind.JAXBException, IOException
      Throws:
      javax.xml.bind.JAXBException
      IOException
    • createProformaResponseResultFromProformaResponse

      public static ProformaResponseResultTO createProformaResponseResultFromProformaResponse(proforma.xml21.ResponseType response, String format) throws javax.xml.bind.JAXBException, IOException
      Throws:
      javax.xml.bind.JAXBException
      IOException
    • convertToGrajaResult

      public static GrajaResultTO convertToGrajaResult(ProformaResponseResultTO in) throws javax.xml.bind.JAXBException, IOException
      Throws:
      javax.xml.bind.JAXBException
      IOException
    • convertToGrajaResult

      public static GrajaResultTO convertToGrajaResult(proforma.xml21.ResponseType in) throws javax.xml.bind.JAXBException, IOException
      Throws:
      javax.xml.bind.JAXBException
      IOException
    • serializeResponse

      public static byte[] serializeResponse(proforma.xml21.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 proforma.xml21.ResponseType deserializeResponse(byte[] content) throws javax.xml.bind.JAXBException, IOException
      Throws:
      javax.xml.bind.JAXBException
      IOException
    • createProformaErrorResponse

      public static proforma.xml21.ResponseType createProformaErrorResponse(LocalDateTime timestamp, String msg)
    • createSerializedProformaErrorResponse

      public static byte[] createSerializedProformaErrorResponse(LocalDateTime timestamp, String msg, String format) throws javax.xml.bind.JAXBException, IOException
      Throws:
      javax.xml.bind.JAXBException
      IOException