apidocs / com.srv4pos.server.api / Registry

Registry

class Registry

Version of current API.

User: Kirill, Date: 22.05.14 22:23

Properties

DEFAULT_SERVER_ADDRESS_PROD

static val DEFAULT_SERVER_ADDRESS_PROD: String

The production server address.

DEFAULT_SERVER_ADDRESS_STAGE

static val DEFAULT_SERVER_ADDRESS_STAGE: String

The stage server address.

DEFAULT_SERVER_ADDRESS_TEST

static val DEFAULT_SERVER_ADDRESS_TEST: String

The development server address.

VERSION

static val VERSION: Int

The version of API.

Functions

isProductionHost

static fun isProductionHost(host: String!): Boolean

Check that the host is a production server.

wrap

static fun wrap(schemaHostAndPort: String!, version: Int): URL!

Wrap schemaHostAndPort and version to URL.

static fun wrap(schemaHostAndPort: String!): URL!

Wrap schemaHostAndPort and current version to URL.