trait CoreClient extends RestClient with JsonConverterProvider with BasicJsonMarshalling
- Source
- CoreClient.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CoreClient
- BasicJsonMarshalling
- BasicMarshalling
- SprayJsonSupport
- JsonConverterProvider
- RestClient
- Loggable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
case class
GeneratedFile(name: String, contentType: ContentType, content: Array[Byte], contentDispositionType: ContentDispositionType = ContentDispositionTypes.attachment) extends Product with Serializable
- Definition Classes
- BasicMarshalling
-
case class
StreamedFile(name: String, contentType: ContentType, content: Source[ByteString, Any], contentDispositionType: ContentDispositionType = ContentDispositionTypes.attachment) extends Product with Serializable
- Definition Classes
- BasicMarshalling
-
class
CookieMap extends AnyRef
- Definition Classes
- RestClient
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
- lazy val CSRFCookieName: String
- lazy val CSRFHeaderName: String
-
implicit
val
ContentTypeUnmarshaller: FromEntityUnmarshaller[ContentType]
- Definition Classes
- BasicMarshalling
-
implicit
val
HeadersUnmarshaller: FromResponseUnmarshaller[Seq[HttpHeader]]
- Definition Classes
- BasicMarshalling
-
implicit
val
SourceUnmarshaller: FromEntityUnmarshaller[Source[ByteString, Any]]
- Definition Classes
- BasicMarshalling
-
implicit
val
StatusCodeUnmarshaller: FromResponseUnmarshaller[StatusCode]
- Definition Classes
- BasicMarshalling
-
implicit
def
TupleUnmarshaller[A, B, P](implicit ma: Unmarshaller[P, A], mb: Unmarshaller[P, B]): Unmarshaller[P, (A, B)]
- Definition Classes
- BasicMarshalling
-
implicit
val
UnitUnmarshaller: FromResponseUnmarshaller[Unit]
- Definition Classes
- BasicMarshalling
-
def
actorSystemName: String
- Definition Classes
- RestClient
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
awaitTimeout: FiniteDuration
- Definition Classes
- RestClient
-
def
clearCookies: Unit
- Definition Classes
- RestClient
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
combinedWithEC[A, B, C](marshal: (ExecutionContext) ⇒ (A) ⇒ B)(implicit m2: Marshaller[B, C]): Marshaller[A, C]
- Definition Classes
- BasicMarshalling
-
def
contentDisposition(fileName: String, dispositionType: ContentDispositionType): List[RawHeader]
- Definition Classes
- BasicMarshalling
- def count[T <: Dto](viewClass: Class[T], params: Map[String, Any]): Int
-
def
createActorSystem: ActorSystem
- Definition Classes
- RestClient
-
def
decodeResponse(response: HttpResponse): HttpResponse
- Definition Classes
- RestClient
-
val
defaultPassword: String
- Definition Classes
- RestClient
-
val
defaultUsername: String
- Definition Classes
- RestClient
- val deferredActor: ActorRef
- def deferredResultUri(hash: String): String
- def delete[T <: Dto](viewClass: Class[T], id: Long): Unit
-
def
doRequest(req: HttpRequest, cookieStorage: CookieMap, maxRedirects: Int = 20): Future[HttpResponse]
- Attributes
- protected
- Definition Classes
- RestClient
-
def
doRequestWithTimeout(req: HttpRequest, cookieStorage: CookieMap, timeout: FiniteDuration, maxRedirects: Int = 20): Future[HttpResponse]
- Attributes
- protected
- Definition Classes
- RestClient
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
val
executionContext: ExecutionContextExecutor
- Definition Classes
- RestClient
- def extractDeferredHash(headers: Seq[HttpHeader]): Option[String]
-
def
fallbackFilename(filename: String): String
- Definition Classes
- BasicMarshalling
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
flow: Flow[(HttpRequest, Unit), (Try[HttpResponse], Unit), NotUsed]
- Definition Classes
- RestClient
-
implicit
val
generatedFileMarshaller: ToResponseMarshaller[GeneratedFile]
- Definition Classes
- BasicMarshalling
- def get[T <: Dto](viewClass: Class[T], id: Long, params: Map[String, Any] = Map.empty): T
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getCookieStorage: CookieMap
- Definition Classes
- RestClient
- def getDefaultApiHeaders(cookies: CookieMap): List[HttpHeader with Product with Serializable]
- def getDtoFromJson[T <: Dto](viewClass: Class[T], value: JsValue): T
- def getDtoListFromJson[T <: Dto](viewClass: Class[T], jsValue: JsValue): List[T]
- def handleDeferredResponse[R](cookieStorage: CookieMap)(response: (R, Seq[HttpHeader]))(implicit umarshaller: FromResponseUnmarshaller[R]): Future[R]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
httpGet[R](path: String, params: Map[String, Any], headers: Seq[HttpHeader], cookieStorage: CookieMap = getCookieStorage)(implicit unmarshaller: FromResponseUnmarshaller[R]): Future[R]
- Definition Classes
- CoreClient → RestClient
-
def
httpGetAwait[R](path: String, params: Map[String, Any] = Map.empty, headers: Seq[HttpHeader] = iSeq())(implicit unmarshaller: FromResponseUnmarshaller[R]): R
- Definition Classes
- RestClient
-
def
httpGetWithTimeout[R](path: String, timeout: FiniteDuration, params: Map[String, Any] = Map.empty, headers: Seq[HttpHeader] = iSeq(), cookieStorage: CookieMap = getCookieStorage)(implicit unmarshaller: FromResponseUnmarshaller[R]): Future[R]
- Definition Classes
- RestClient
-
def
httpPost[T, R](method: HttpMethod, path: String, content: T, headers: Seq[HttpHeader], cookieStorage: CookieMap = getCookieStorage)(implicit marshaller: Marshaller[T, MessageEntity], unmarshaller: FromResponseUnmarshaller[R]): Future[R]
- Definition Classes
- CoreClient → RestClient
-
def
httpPostAwait[T, R](method: HttpMethod, path: String, content: T, headers: Seq[HttpHeader] = iSeq())(implicit marshaller: Marshaller[T, RequestEntity], umarshaller: FromResponseUnmarshaller[R]): R
- Definition Classes
- RestClient
-
def
httpPostWithTimeout[T, R](method: HttpMethod, path: String, content: T, timeout: FiniteDuration, headers: Seq[HttpHeader] = iSeq(), cookieStorage: CookieMap = getCookieStorage)(implicit marshaller: Marshaller[T, RequestEntity], unmarshaller: FromResponseUnmarshaller[R]): Future[R]
- Definition Classes
- RestClient
-
def
initJsonConverter: JsonConverter
Override this method in subclass to initialize
Override this method in subclass to initialize
jsonConverter
- Attributes
- protected
- Definition Classes
- CoreClient → JsonConverterProvider
-
def
initQuerease: AppQuerease
Override this method in subclass.
Override this method in subclass. Method usage instead of direct
val qe: AppQuereaseinitialization ensures that this.qe and subclass qe have the same instance val qe: AppQuerease }}} have the same instance
- Attributes
- protected
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit
def
jsObjectUnmarshaller(implicit jsonUnmarshaller: FromEntityUnmarshaller[JsValue]): Unmarshaller[HttpEntity, JsObject]
- Definition Classes
- BasicJsonMarshalling
-
final
val
jsonConverter: JsonConverter
- Definition Classes
- JsonConverterProvider
- def list[T <: Dto](viewClass: Class[T], params: Map[String, Any]): List[T]
- def listRaw[T <: Dto](viewClass: Class[T], params: Map[String, Any]): String
-
def
listenToWs(actor: ActorRef): Unit
- Definition Classes
- RestClient
-
lazy val
logger: Logger
- Attributes
- protected
- Definition Classes
- Loggable
- def login(username: String = defaultUsername, password: String = defaultPassword): String
-
implicit
def
mapFutureMarshaller: ToEntityMarshaller[Future[Map[String, Any]]]
- Definition Classes
- BasicJsonMarshalling
-
implicit
val
mapListMarshaller: ToEntityMarshaller[List[Map[String, Any]]]
- Definition Classes
- BasicJsonMarshalling
-
implicit
val
mapMarshaller: ToEntityMarshaller[Map[String, Any]]
- Definition Classes
- BasicJsonMarshalling
-
implicit
def
mapUnmarshaller(implicit jsonUnmarshaller: FromEntityUnmarshaller[JsValue]): FromEntityUnmarshaller[Map[String, Any]]
- Definition Classes
- BasicJsonMarshalling
-
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()
-
implicit
def
optionMarshaller[A](implicit m: ToResponseMarshaller[A]): ToResponseMarshaller[Option[A]]
- Definition Classes
- BasicMarshalling
-
implicit
def
optionUnmarshaller[T](implicit unm: FromResponseUnmarshaller[T]): FromResponseUnmarshaller[Option[T]]
- Definition Classes
- BasicMarshalling
- def pathForDto[T <: Dto](clzz: Class[T], id: jLong): String
- def pathForDtoCount[T <: Dto](clzz: Class[T]): String
-
lazy val
port: Int
- Definition Classes
- RestClient
- implicit lazy val qe: AppQuerease
-
def
requestFailed(message: String, cause: Throwable, status: StatusCode = null, content: String = null, request: HttpRequest = null): Nothing
- Attributes
- protected
- Definition Classes
- RestClient
-
def
requestPath(uri: String): String
- Definition Classes
- RestClient
-
val
requestTimeout: FiniteDuration
- Definition Classes
- RestClient
- def save[T <: DtoWithId](dto: T): T
-
lazy val
serverPath: String
- Definition Classes
- RestClient
-
lazy val
serverWsPath: String
- Definition Classes
- RestClient
-
implicit
def
sprayJsValueByteStringUnmarshaller[T]: FromByteStringUnmarshaller[JsValue]
- Definition Classes
- SprayJsonSupport
-
implicit
def
sprayJsValueMarshaller(implicit printer: JsonPrinter): ToEntityMarshaller[JsValue]
- Definition Classes
- SprayJsonSupport
-
implicit
def
sprayJsValueUnmarshaller: FromEntityUnmarshaller[JsValue]
- Definition Classes
- SprayJsonSupport
-
implicit
def
sprayJsonByteStringUnmarshaller[T](implicit reader: RootJsonReader[T]): FromByteStringUnmarshaller[T]
- Definition Classes
- SprayJsonSupport
-
implicit
def
sprayJsonMarshaller[T](implicit writer: RootJsonWriter[T], printer: JsonPrinter): ToEntityMarshaller[T]
- Definition Classes
- SprayJsonSupport
-
implicit
def
sprayJsonMarshallerConverter[T](writer: RootJsonWriter[T])(implicit printer: JsonPrinter): ToEntityMarshaller[T]
- Definition Classes
- SprayJsonSupport
-
implicit
def
sprayJsonSourceReader[T](implicit reader: RootJsonReader[T], support: EntityStreamingSupport): FromEntityUnmarshaller[Source[T, NotUsed]]
- Definition Classes
- SprayJsonSupport
-
implicit
def
sprayJsonUnmarshaller[T](implicit reader: RootJsonReader[T]): FromEntityUnmarshaller[T]
- Definition Classes
- SprayJsonSupport
-
implicit
def
sprayJsonUnmarshallerConverter[T](reader: RootJsonReader[T]): FromEntityUnmarshaller[T]
- Definition Classes
- SprayJsonSupport
-
implicit
val
streamedFileMarshaller: ToResponseMarshaller[StreamedFile]
- Definition Classes
- BasicMarshalling
-
def
stripAccents(s: String): String
- Definition Classes
- BasicMarshalling
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
val
system: ActorSystem
- Definition Classes
- RestClient
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
urlDecoder: (String) ⇒ String
- Definition Classes
- RestClient
-
val
urlEncoder: (String) ⇒ String
- Definition Classes
- RestClient
-
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
- @throws( ... ) @native()