Package org.httprpc

Interface WebServiceProxy.ResponseHandler<T>

  • Enclosing class:
    WebServiceProxy

    public static interface WebServiceProxy.ResponseHandler<T>
    Interface representing a response handler.
    • Method Detail

      • decodeResponse

        T decodeResponse​(java.io.InputStream inputStream,
                         java.lang.String contentType)
                  throws java.io.IOException
        Decodes a response from an input stream.
        Parameters:
        inputStream - The input stream to read from.
        contentType - The content type, or null if the content type is not known.
        Returns:
        The decoded value.
        Throws:
        java.io.IOException - If an exception occurs.