Interface GenericEndpoint<RequestT,​ResponseT>

  • All Superinterfaces:
    Endpoint<RequestT,​ResponseT,​ResponseT>

    public interface GenericEndpoint<RequestT,​ResponseT>
    extends Endpoint<RequestT,​ResponseT,​ResponseT>
    An endpoint with a raw, unparsed response body. The endpoind does not distinguish between errornous and successful response and always return the raw response body.
    • Method Detail

      • responseDeserializer

        ResponseT responseDeserializer​(java.lang.String uri,
                                       java.lang.String method,
                                       java.lang.String protocol,
                                       int status,
                                       java.lang.String reason,
                                       java.util.List<java.util.Map.Entry<java.lang.String,​java.lang.String>> headers,
                                       @Nullable
                                       java.lang.String contentType,
                                       @Nullable
                                       java.io.InputStream body)
        Constructs the GenericEndpoint instance
        Parameters:
        uri - request URI
        method - HTTP method
        protocol - HTTP protocol version
        status - status code
        reason - reason phrase
        headers - response headers
        body - optional body
        Returns:
        the GenericEndpoint instance