public class OptionsInfoResult extends HeaderResponse
Modifier and Type | Field and Description |
---|---|
protected List<String> |
allowHeaders |
protected List<String> |
allowMethods |
protected String |
allowOrigin |
protected List<String> |
exposeHeaders |
protected int |
maxAge |
Modifier | Constructor and Description |
---|---|
protected |
OptionsInfoResult() |
|
OptionsInfoResult(String allowOrigin,
List<String> allowHeaders,
int maxAge,
List<String> allowMethods,
List<String> exposeHeaders) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllowHeaders()
获取允许携带的请求头域列表
|
List<String> |
getAllowMethods()
获取允许的跨域请求方法列表
|
String |
getAllowOrigin()
获取允许跨域请求的来源
|
List<String> |
getExposeHeaders()
获取允许响应中带的附加头域列表
|
int |
getMaxAge()
获取客户端对请求结果的缓存时间,单位:秒
|
String |
toString() |
getRequestId, getResponseHeaders, getStatusCode
protected 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 int getMaxAge()
public String toString()
toString
in class HeaderResponse
Copyright © 2021. All rights reserved.