class OAuth2Response extends AnyRef
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.
- Alphabetic
- By Inheritance
- OAuth2Response
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new OAuth2Response(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: AnyRef
-
def
body(): Option[Buffer]
The HTTP response body as a buffer * @return a buffer with the HTTP response body
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getHeader(name: String): String
Looks up a HTTP response header by name, in case where the response is a list of headers, the first one is returned.
Looks up a HTTP response header by name, in case where the response is a list of headers, the first one is returned. * @param name of the header to look up
- returns
the single value for the header.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
headers(): Option[MultiMap]
The HTTP response headers from the HTTP layer.
The HTTP response headers from the HTTP layer. * @return the HTTP headers
-
def
is(contentType: String): Boolean
Helper to analize the response body.
Helper to analize the response body. The test is performed against the header Content-Type, the content of the body is not analyzed. * @param contentType a content type to test, e.g.: application/json
- returns
true if the header matches
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
jsonArray(): Option[JsonArray]
The HTTP response body as a JsonArray * @return a JsonArray from the HTTP response body
-
def
jsonObject(): Option[JsonObject]
The HTTP response body as a JsonObject * @return a JsonObject from the HTTP response body
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
statusCode(): Int
the returned status code from the HTTP layer.
the returned status code from the HTTP layer. * @return HTTP status code
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )