Transaction System API

SocketResponse

Provides functionality reading the response of a socket call.

Method Summary
int getResponseCode()

Returns response code

String getResponseHeader(String name)

Returns response header value

Data getResponseHeaders()

Returns response headers

String getResponseMessage()

Returns response message, if error.

boolean isError()

Returns true if request was not submitted successfully, false otherwise

boolean isSuccess()

Returns true if request was submitted successfully, false otherwise

String readBody()

Reads the response body.

String toString()

Returns a description of this object.

Method Detail


int getResponseCode()

Returns response code

Returns:  int

Since: 11-04-2023

top

String getResponseHeader(String name)

Returns response header value

Parameters:

  • String   name

Returns:  String

Since: 11-04-2023

top

Data getResponseHeaders()

Returns response headers

Returns:  Data

Since: 11-04-2023

top

String getResponseMessage()

Returns response message, if error.

Returns:  String

Since: 11-04-2023

top

boolean isError()

Returns true if request was not submitted successfully, false otherwise

Returns:  boolean

Since: 11-04-2023

top

boolean isSuccess()

Returns true if request was submitted successfully, false otherwise

Returns:  boolean

Since: 11-04-2023

top

String readBody()

Reads the response body.

Returns:  String

Since: 11-04-2023

top

String toString()

Returns a description of this object.

Returns:  String

Since: 11-04-2023

top
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. API Date: May 01, 2024 05:15 AM