public class OAuth2Response extends Object
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description | 
|---|---|
static io.vertx.lang.rx.TypeArg<OAuth2Response> | 
__TYPE_ARG  | 
| Constructor and Description | 
|---|
OAuth2Response(OAuth2Response delegate)  | 
OAuth2Response(Object delegate)  | 
| Modifier and Type | Method and Description | 
|---|---|
Buffer | 
body()
The HTTP response body as a buffer 
 | 
boolean | 
equals(Object o)  | 
OAuth2Response | 
getDelegate()  | 
String | 
getHeader(String name)
Looks up a HTTP response header by name, in case where the response is a list of headers,
 the first one is returned. 
 | 
int | 
hashCode()  | 
MultiMap | 
headers()
The HTTP response headers from the HTTP layer. 
 | 
boolean | 
is(String contentType)
Helper to analize the response body. 
 | 
JsonArray | 
jsonArray()
The HTTP response body as a JsonArray 
 | 
JsonObject | 
jsonObject()
The HTTP response body as a JsonObject 
 | 
static OAuth2Response | 
newInstance(OAuth2Response arg)  | 
int | 
statusCode()
the returned status code from the HTTP layer. 
 | 
String | 
toString()  | 
public static final io.vertx.lang.rx.TypeArg<OAuth2Response> __TYPE_ARG
public OAuth2Response(OAuth2Response delegate)
public OAuth2Response(Object delegate)
public OAuth2Response getDelegate()
public int statusCode()
public MultiMap headers()
public String getHeader(String name)
name - of the header to look uppublic Buffer body()
public JsonObject jsonObject()
public JsonArray jsonArray()
public boolean is(String contentType)
contentType - a content type to test, e.g.: application/jsonpublic static OAuth2Response newInstance(OAuth2Response arg)
Copyright © 2020 Eclipse. All rights reserved.