case class RequestSuccess[U](status: Int, body: Option[String], headers: Map[String, String], result: U) extends Response[U] with Product with Serializable
- Alphabetic
- By Inheritance
- RequestSuccess
- Serializable
- Serializable
- Product
- Equals
- Response
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RequestSuccess(status: Int, body: Option[String], headers: Map[String, String], result: U)
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
-
val
body: Option[String]
Returns the body included in the HTTP response or None if this response did not include a body.
Returns the body included in the HTTP response or None if this response did not include a body.
- Definition Classes
- RequestSuccess → Response
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
error: Nothing
Returns error details as an instance of ElasticError if this is RequestFailure.
Returns error details as an instance of ElasticError if this is RequestFailure. Otherwise throws an exception.
- Definition Classes
- RequestSuccess → Response
-
final
def
flatMap[V](f: (U) ⇒ Response[V]): Response[V]
- Definition Classes
- RequestSuccess → Response
-
final
def
fold[V](onError: (RequestFailure) ⇒ V, onSuccess: (U) ⇒ V): V
- Definition Classes
- Response
-
final
def
fold[V](ifError: ⇒ V)(f: (U) ⇒ V): V
- Definition Classes
- Response
-
final
def
foreach[V](f: (U) ⇒ V): Unit
- Definition Classes
- Response
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
headers: Map[String, String]
Returns any HTTP headers that were included in the response.
Returns any HTTP headers that were included in the response.
- Definition Classes
- RequestSuccess → Response
-
def
isError: Boolean
Returns true if this response is an error state.
Returns true if this response is an error state.
- Definition Classes
- RequestSuccess → Response
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isSuccess: Boolean
Returns true if this response was successful
Returns true if this response was successful
- Definition Classes
- Response
-
final
def
map[V](f: (U) ⇒ V): Response[V]
- Definition Classes
- RequestSuccess → Response
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
result: U
Returns the marshalled response U if this is an instance of RequestSuccess, otherwise throws an exception.
Returns the marshalled response U if this is an instance of RequestSuccess, otherwise throws an exception.
- Definition Classes
- RequestSuccess → Response
-
val
status: Int
Returns the http status code of the response.
Returns the http status code of the response.
- Definition Classes
- RequestSuccess → Response
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toEither: Either[ElasticError, U]
- Definition Classes
- Response
-
final
def
toOption: Option[U]
- Definition Classes
- Response
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated