Class ControlUtils
- java.lang.Object
-
- org.openehealth.ipf.commons.ihe.hpd.controls.ControlUtils
-
public final class ControlUtils extends Object
Methods for mapping of Controls to and from DSMLv2 and Strings.- Since:
- 4.3
- Author:
- Dmytro Rud
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PagedResultsResponseControlconvert(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 voidsetControl(DsmlMessage dsmlMessage, BasicControl bc)static voidsetControl(SearchResponse response, BasicControl bc)static ControltoDsmlv2(BasicControl bc)
-
-
-
Method Detail
-
extractControl
public static <T extends BasicControl> T extractControl(byte[] berBytes, String type, boolean criticality) throws IOException
- Throws:
IOException
-
convert
public static PagedResultsResponseControl convert(PagedResultsControl control) throws IOException
- 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
public static Control toDsmlv2(BasicControl bc)
-
setControl
public static void setControl(SearchResponse response, BasicControl bc)
-
setControl
public static void setControl(DsmlMessage dsmlMessage, BasicControl bc)
-
-