Class ControlUtils
java.lang.Object
org.openehealth.ipf.commons.ihe.hpd.controls.ControlUtils
Methods for mapping of Controls to and from DSMLv2 and Strings.
- Since:
- 4.3
- Author:
- Dmytro Rud
-
Method Summary
Modifier and TypeMethodDescriptionstatic PagedResultsResponseControl
convert
(PagedResultsControl control) static <T extends BasicControl>
TextractControl
(byte[] berBytes, String type, boolean criticality) static <T extends BasicControl>
TextractControl
(List<Control> controls, String type) static <T extends BasicControl>
TextractControl
(DsmlMessage dsmlMessage, String type) static <T extends BasicControl>
TextractControl
(SearchResponse searchResponse, String type) static void
setControl
(DsmlMessage dsmlMessage, BasicControl bc) static void
setControl
(SearchResponse response, BasicControl bc) static Control
toDsmlv2
(BasicControl bc)
-
Method Details
-
extractControl
public static <T extends BasicControl> T extractControl(byte[] berBytes, String type, boolean criticality) throws IOException - Throws:
IOException
-
convert
- Throws:
IOException
-
extractControl
public static <T extends BasicControl> T extractControl(List<Control> controls, String type) throws IOException - Throws:
IOException
-
extractControl
public static <T extends BasicControl> T extractControl(SearchResponse searchResponse, String type) throws IOException - Throws:
IOException
-
extractControl
public static <T extends BasicControl> T extractControl(DsmlMessage dsmlMessage, String type) throws IOException - Throws:
IOException
-
toDsmlv2
-
setControl
-
setControl
-