apidocs / com.srv4pos.server.api.infrastructure.http / Transport

Transport

interface Transport

Instance of this interface responsible for making api calls. There are HttpUrlTransport comes with this api by default. Pass it as a parameter if you want to use HTTP/HTTPS as network layer.

User: Kirill, Date: 13.09.13 13:40

Functions

closeConnection

abstract fun closeConnection(): Unit

invoke

abstract fun invoke(httpMethod: HttpMethod!, uri: String!, authenticaton: String!, eTag: String!, mimeType: String!, body: Any!, acceptLanguage: Locale!): Response!

setConnectTimeout

abstract fun setConnectTimeout(connectTimeout: Int): Unit

setReadTimeout

abstract fun setReadTimeout(readTimeout: Int): Unit

Inheritors

HttpUrlDeprecatedTransport

open class HttpUrlDeprecatedTransport : Transport

Provides HTTP/HTTPS network layer for server api.

HttpUrlTransport

class HttpUrlTransport : Transport

Provides HTTP/HTTPS network layer for server api.