apidocs / com.srv4pos.server.api.infrastructure.request / RequestHelper

RequestHelper

class RequestHelper

User: Pavel Abizyaev, Date: 11.08.14 15:00

.

Properties

DEFAULT_URL_ENCODING_CODEPAGE

static val DEFAULT_URL_ENCODING_CODEPAGE: String

Functions

buildQuery

static fun buildQuery(params: MutableMap<String!, String!>!): String!

isStatusCodeIn9xx

static fun isStatusCodeIn9xx(statusCode: Int): Boolean

isStatusCodeInSuccessfulClass

static fun isStatusCodeInSuccessfulClass(statusCode: Int): Boolean

Returns true if status code is 2xx.

requestStream

static fun requestStream(method: String!, httpMethod: HttpMethod!, url: URL!, authentication: String!, eTag: String!, params: MutableMap<String!, String!>!, body: ConnectionWriter!, mimeType: String!, transport: Transport!): StreamResponse!

requestString

static fun requestString(method: String!, httpMethod: HttpMethod!, url: URL!, authentication: String!, eTag: String!, params: MutableMap<String!, String!>!, body: Any!, mimeType: String!, transport: Transport!): StringResponse!

requestVoid

static fun requestVoid(method: String!, httpMethod: HttpMethod!, url: URL!, authentication: String!, eTag: String!, params: MutableMap<String!, String!>!, body: Any!, mimeType: String!, transport: Transport!): Unit