public class FragmentsResponseFormatter
extends java.lang.Object
FragmentsResponse that
will serialize them into JSON format.| Constructor and Description |
|---|
FragmentsResponseFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static FragmentsResponse |
formatResponse(java.util.List<Fragment> fragments,
java.lang.String data)
Converts Fragments list to FragmentsResponse after replacing host name by
their respective IPs.
|
public static FragmentsResponse formatResponse(java.util.List<Fragment> fragments, java.lang.String data) throws java.net.UnknownHostException
fragments - list of fragmentsdata - data (e.g. path) related to the fragmentsjava.net.UnknownHostException - if converting host names to IP fails