Class ActionReportJsonProprietaryReader
- java.lang.Object
-
- com.sun.enterprise.admin.remote.reader.ActionReportJsonProprietaryReader
-
- All Implemented Interfaces:
ProprietaryReader<ActionReport>
public class ActionReportJsonProprietaryReader extends Object implements ProprietaryReader<ActionReport>
Reads ActionReport from Json format.- Since:
- 4.0
- Author:
- mmares
-
-
Constructor Summary
Constructors Constructor Description ActionReportJsonProprietaryReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
fillActionReport(ActionReport ar, jakarta.json.JsonObject json)
Turns aJsonObject
into anActionReport
boolean
isReadable(Class<?> type, String mimetype)
ActionReport
readFrom(InputStream is, String contentType)
ActionReport
readFrom(HttpURLConnection urlConnection)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, String mimetype)
- Specified by:
isReadable
in interfaceProprietaryReader<ActionReport>
-
readFrom
public ActionReport readFrom(HttpURLConnection urlConnection) throws IOException
- Throws:
IOException
-
readFrom
public ActionReport readFrom(InputStream is, String contentType) throws IOException
- Specified by:
readFrom
in interfaceProprietaryReader<ActionReport>
- Throws:
IOException
-
fillActionReport
public static void fillActionReport(ActionReport ar, jakarta.json.JsonObject json) throws jakarta.json.JsonException
Turns aJsonObject
into anActionReport
The Json Object must contain a valid
exit_code
at the top level.- Parameters:
ar
-json
-- Throws:
jakarta.json.JsonException
-
-