Class OAuth2Response


  • public class OAuth2Response
    extends Object
    A response from a fetch request. This class represents a secure response from a Oauth2 fetch call. A fetch is a simplified HTTP response from a protected resource.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Constructor Detail

      • OAuth2Response

        public OAuth2Response​(io.vertx.ext.auth.oauth2.OAuth2Response delegate)
      • OAuth2Response

        public OAuth2Response​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.ext.auth.oauth2.OAuth2Response getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • statusCode

        @Deprecated
        public int statusCode()
        Deprecated.
        Returns:
        HTTP status code
      • getHeader

        @Deprecated
        public String getHeader​(String name)
        Deprecated.
        Parameters:
        name - of the header to look up
        Returns:
        the single value for the header.
      • body

        @Deprecated
        public Buffer body()
        Deprecated.
        Returns:
        a buffer with the HTTP response body
      • jsonObject

        @Deprecated
        public io.vertx.core.json.JsonObject jsonObject()
        Deprecated.
        Returns:
        a JsonObject from the HTTP response body
      • jsonArray

        @Deprecated
        public io.vertx.core.json.JsonArray jsonArray()
        Deprecated.
        Returns:
        a JsonArray from the HTTP response body
      • is

        @Deprecated
        public boolean is​(String contentType)
        Deprecated.
        Parameters:
        contentType - a content type to test, e.g.: application/json
        Returns:
        true if the header matches
      • newInstance

        public static OAuth2Response newInstance​(io.vertx.ext.auth.oauth2.OAuth2Response arg)