Class ActionReportJsonProprietaryReader
java.lang.Object
com.sun.enterprise.admin.remote.reader.ActionReportJsonProprietaryReader
- All Implemented Interfaces:
ProprietaryReader<org.glassfish.api.ActionReport>
public final class ActionReportJsonProprietaryReader
extends Object
implements ProprietaryReader<org.glassfish.api.ActionReport>
Reads ActionReport from JSON format.
- Author:
- mmares
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfillActionReport(org.glassfish.api.ActionReport ar, org.codehaus.jettison.json.JSONObject json) booleanisReadable(Class<?> type, String mimetype) org.glassfish.api.ActionReportreadFrom(InputStream is, String contentType) Reads and closes the stream, or can transfer both respnsibilities to a returned object.org.glassfish.api.ActionReportreadFrom(HttpURLConnection urlConnection)
-
Constructor Details
-
ActionReportJsonProprietaryReader
public ActionReportJsonProprietaryReader()
-
-
Method Details
-
isReadable
- Specified by:
isReadablein interfaceProprietaryReader<org.glassfish.api.ActionReport>
-
readFrom
- Throws:
IOException
-
readFrom
public org.glassfish.api.ActionReport readFrom(InputStream is, String contentType) throws IOException Description copied from interface:ProprietaryReaderReads and closes the stream, or can transfer both respnsibilities to a returned object.- Specified by:
readFromin interfaceProprietaryReader<org.glassfish.api.ActionReport>- Parameters:
is-contentType-- Returns:
- T
- Throws:
IOException
-
fillActionReport
public static void fillActionReport(org.glassfish.api.ActionReport ar, org.codehaus.jettison.json.JSONObject json) throws org.codehaus.jettison.json.JSONException - Throws:
org.codehaus.jettison.json.JSONException
-