\OSS\ResultGetWebsiteResult

Class GetWebsiteResult

Summary

Methods
Properties
Constants
__construct()
getRequestId()
getData()
isOK()
parseResponse()
getRawResponse()
No public properties found
No constants found
parseDataFromResponse()
isResponseOk()
$isOk
$parsedData
$rawResponse
N/A
retrieveErrorMessage()
retrieveErrorCode()
No private properties found
N/A

Properties

$isOk

$isOk

Indicate whether the request is successful

$parsedData

$parsedData

Data parsed by subclasses

$rawResponse

$rawResponse : \OSS\Http\ResponseCore

Store the original Response returned by the auth function

Type

ResponseCore

Methods

__construct()

__construct( $response) : mixed

Result constructor.

Parameters

$response

ResponseCore

Throws

\OSS\Core\OssException

Returns

mixed —

getRequestId()

getRequestId() : string

Get requestId

Returns

string —

getData()

getData() : mixed

Get the returned data, different request returns the data format is different

$return mixed

Returns

mixed —

isOK()

isOK() : mixed

Whether the operation is successful

Returns

mixed —

parseResponse()

parseResponse() : mixed

Throws

\OSS\Core\OssException

Returns

mixed —

getRawResponse()

getRawResponse() : \OSS\Http\ResponseCore

Return the original return data

Returns

\OSS\Http\ResponseCore —

parseDataFromResponse()

parseDataFromResponse() : \OSS\Model\WebsiteConfig

Parse WebsiteConfig data

Returns

\OSS\Model\WebsiteConfig —

isResponseOk()

isResponseOk() : bool

Judged according to the return HTTP status code, [200-299] that is OK, get the bucket configuration interface, 404 is also considered a valid response

Returns

bool —

retrieveErrorMessage()

retrieveErrorMessage( $body) : string

Try to get the error message from body

Parameters

$body

Returns

string —

retrieveErrorCode()

retrieveErrorCode( $body) : string

Try to get the error Code from body

Parameters

$body

Returns

string —