public class UblOrderUtils extends Object
Constructor and Description |
---|
UblOrderUtils()
Instantiates a new order utils.
|
Modifier and Type | Method and Description |
---|---|
static OrderDTO |
convertToEHFOrder(Order order)
Convert to ehf order.
|
static OrderResponseDTO |
convertToEHFOrderResponse(OrderResponse orderResponse) |
static byte[] |
generateEHFOrderResponseXML(OrderResponseDTO orderResponseDTO) |
static void |
generateEHFOrderResponseXML(OrderResponseDTO orderResponseDTO,
String filePath) |
static byte[] |
generateEHFOrderXML(OrderDTO orderDTO)
Generate ehf order xml.
|
static void |
generateEHFOrderXML(OrderDTO orderDTO,
String filePath)
Generate ehf order xml.
|
static OrderDTO |
getEHFOrder(InputStream is)
Gets the eHF order.
|
static OrderResponseDTO |
getEHFOrderResponse(InputStream is) |
public static void generateEHFOrderXML(OrderDTO orderDTO, String filePath) throws JAXBException
orderDTO
- the order dtofilePath
- the file pathJAXBException
- the jAXB exceptionpublic static byte[] generateEHFOrderXML(OrderDTO orderDTO) throws JAXBException
orderDTO
- the order dtoJAXBException
- the jAXB exceptionpublic static OrderDTO getEHFOrder(InputStream is) throws JAXBException
is
- the isJAXBException
- the jAXB exceptionpublic static OrderDTO convertToEHFOrder(Order order)
order
- the orderpublic static void generateEHFOrderResponseXML(OrderResponseDTO orderResponseDTO, String filePath) throws JAXBException, Exception
JAXBException
Exception
public static byte[] generateEHFOrderResponseXML(OrderResponseDTO orderResponseDTO) throws JAXBException, Exception
JAXBException
Exception
public static OrderResponseDTO getEHFOrderResponse(InputStream is) throws JAXBException
JAXBException
public static OrderResponseDTO convertToEHFOrderResponse(OrderResponse orderResponse)
Copyright © 2021 Norwegian Agency for Public Management and eGovernment (Difi). All rights reserved.