\OSS\ModelCorsConfig

Class CorsConfig

Summary

Methods
Properties
Constants
__construct()
getRules()
addRule()
parseFromXml()
serializeToXml()
__toString()
No public properties found
OSS_CORS_ALLOWED_ORIGIN
OSS_CORS_ALLOWED_METHOD
OSS_CORS_ALLOWED_HEADER
OSS_CORS_EXPOSE_HEADER
OSS_CORS_MAX_AGE_SECONDS
OSS_MAX_RULES
No protected methods found
No protected properties found
N/A
No private methods found
$rules
N/A

Constants

OSS_CORS_ALLOWED_ORIGIN

OSS_CORS_ALLOWED_ORIGIN

OSS_CORS_ALLOWED_METHOD

OSS_CORS_ALLOWED_METHOD

OSS_CORS_ALLOWED_HEADER

OSS_CORS_ALLOWED_HEADER

OSS_CORS_EXPOSE_HEADER

OSS_CORS_EXPOSE_HEADER

OSS_CORS_MAX_AGE_SECONDS

OSS_CORS_MAX_AGE_SECONDS

OSS_MAX_RULES

OSS_MAX_RULES

Properties

$rules

$rules : array<mixed,\OSS\Model\CorsRule>

orsRule列表

Type

array<mixed,\OSS\Model\CorsRule>

Methods

__construct()

__construct() 

CorsConfig constructor.

getRules()

getRules() : array<mixed,\OSS\Model\CorsRule>

得到CorsRule列表

Returns

array<mixed,\OSS\Model\CorsRule>

addRule()

addRule(\OSS\Model\CorsRule  $rule) 

添加一条CorsRule

Parameters

\OSS\Model\CorsRule $rule

Throws

\OSS\Core\OssException

parseFromXml()

parseFromXml(string  $strXml) : null

从xml数据中解析出CorsConfig

Parameters

string $strXml

Throws

\OSS\Core\OssException

Returns

null

serializeToXml()

serializeToXml() : string

生成xml字符串

Returns

string

__toString()

__toString()