public final class OldAPIRequestConverter
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static PJsonObject |
convert(PJsonObject oldRequest,
Configuration configuration)
Converts a print request of the old API into the new request format.
|
public static PJsonObject convert(PJsonObject oldRequest, Configuration configuration) throws org.json.JSONException
Note that the converter does not support all features of the old API, for example only requests containing a single map are supported.
oldRequest - the request in the format of the old APIconfiguration - the configurationorg.json.JSONException