Class AdminCommandStateJsonProprietaryReader

java.lang.Object
com.sun.enterprise.admin.remote.reader.AdminCommandStateJsonProprietaryReader
All Implemented Interfaces:
ProprietaryReader<org.glassfish.api.admin.AdminCommandState>

public final class AdminCommandStateJsonProprietaryReader extends Object implements ProprietaryReader<org.glassfish.api.admin.AdminCommandState>
Author:
mmares
  • Constructor Details

    • AdminCommandStateJsonProprietaryReader

      public AdminCommandStateJsonProprietaryReader()
  • Method Details

    • isReadable

      public boolean isReadable(Class<?> type, String mimetype)
      Specified by:
      isReadable in interface ProprietaryReader<org.glassfish.api.admin.AdminCommandState>
    • readFrom

      public org.glassfish.api.admin.AdminCommandState readFrom(HttpURLConnection urlConnection) throws IOException
      Throws:
      IOException
    • readFrom

      public org.glassfish.api.admin.AdminCommandState readFrom(InputStream is, String contentType) throws IOException
      Description copied from interface: ProprietaryReader
      Reads and closes the stream, or can transfer both respnsibilities to a returned object.
      Specified by:
      readFrom in interface ProprietaryReader<org.glassfish.api.admin.AdminCommandState>
      Returns:
      T
      Throws:
      IOException
    • readAdminCommandState

      public static AdminCommandStateImpl readAdminCommandState(org.codehaus.jettison.json.JSONObject json) throws org.codehaus.jettison.json.JSONException
      Throws:
      org.codehaus.jettison.json.JSONException