Package io.kvision.jquery.rest

Legacy, jquery-based RESTful API client with support for type-safe connectivity.

Types

Link copied to clipboard
class BadGateway(url: String, method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class BadRequest(url: String, method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class Forbidden(url: String, method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
enum HttpMethod : Enum<HttpMethod>
Link copied to clipboard
open class LegacyRestClient(module: <ERROR CLASS>?)

An agent responsible for remote calls.

Link copied to clipboard
class NotAllowed(url: String, method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class NotFound(url: String, method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class NotImplemented(url: String, method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
open class RemoteRequestException(code: Short, url: String, method: HttpMethod, message: String)
Link copied to clipboard
data class Response<T>(data: T, textStatus: String, jqXHR: <ERROR CLASS>)

A response wrapper

Link copied to clipboard
class ServerError(url: String, method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class ServiceUnavailable(url: String, method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class Unauthorized(url: String, method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class XHRError(url: String, method: HttpMethod, message: String) : RemoteRequestException

Code 0 does not represent any http status, it represent XHR error (e.g. network error, CORS failure).

Properties

Link copied to clipboard
const val HTTP_BAD_GATEWAY: Short = 502
Link copied to clipboard
const val HTTP_BAD_REQUEST: Short = 400
Link copied to clipboard
const val HTTP_FORBIDDEN: Short = 403
Link copied to clipboard
const val HTTP_NOT_ALLOWED: Short = 405
Link copied to clipboard
const val HTTP_NOT_FOUND: Short = 404
Link copied to clipboard
const val HTTP_NOT_IMPLEMENTED: Short = 501
Link copied to clipboard
const val HTTP_SERVER_ERROR: Short = 500
Link copied to clipboard
const val HTTP_SERVICE_UNAVAILABLE: Short = 503
Link copied to clipboard
const val HTTP_UNAUTHORIZED: Short = 401
Link copied to clipboard
const val XHR_ERROR: Short = 0