public class OptionsInfoResult extends HeaderResponse
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected List<String> |
allowHeaders |
|
protected List<String> |
allowMethods |
|
protected String |
allowOrigin |
|
protected List<String> |
exposeHeaders |
|
protected int |
maxAge |
| 限定符 | 构造器 | 说明 |
|---|---|---|
protected |
OptionsInfoResult() |
|
|
OptionsInfoResult(String allowOrigin,
List<String> allowHeaders,
int maxAge,
List<String> allowMethods,
List<String> exposeHeaders) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
List<String> |
getAllowHeaders() |
Obtain the list of allowed request headers.
|
List<String> |
getAllowMethods() |
Obtain the list of allowed cross-origin request methods.
|
String |
getAllowOrigin() |
Obtain the origin of the allowed cross-origin request.
|
List<String> |
getExposeHeaders() |
Obtain the list of allowed additional headers in the response.
|
int |
getMaxAge() |
Obtain the cache duration (in seconds) of the request result in the
instance of ObsClient.
|
String |
toString() |
getOriginalHeaders, getRequestId, getResponseHeaders, getStatusCodeprotected String allowOrigin
protected int maxAge
public OptionsInfoResult(String allowOrigin, List<String> allowHeaders, int maxAge, List<String> allowMethods, List<String> exposeHeaders)
protected OptionsInfoResult()
public String getAllowOrigin()
public List<String> getAllowHeaders()
public int getMaxAge()
public List<String> getAllowMethods()
public List<String> getExposeHeaders()
public String toString()
toString 在类中 HeaderResponseCopyright © 2025. All rights reserved.