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()
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() |
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 List<String> getAllowHeaders()
public int getMaxAge()
public List<String> getAllowMethods()
public List<String> getExposeHeaders()
public String toString()
toString
in class HeaderResponse
Copyright © 2021. All rights reserved.