Interface HttpObjectParserFactory

    • Method Detail

      • getContentType

        java.lang.String getContentType()
        Obtains the Content-Type supported by the create HttpObjectParser instances.
        Returns:
        Content-Type.
      • createHttpObjectParser

        <T> HttpObjectParser<T> createHttpObjectParser​(java.lang.Class<T> objectClass)
                                                throws java.lang.Exception
        Creates the HttpObjectParser for the Object.
        Type Parameters:
        T - Object type.
        Parameters:
        objectClass - Object Class.
        Returns:
        HttpObjectParser for the Object. May return null if does not support parsing out the particular Object.
        Throws:
        java.lang.Exception - If fails to create the HttpObjectParser for the Object.