|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CorsDefaults
Defaults to apply for Cross-Origin Resource Sharing when the
com.atlassian.plugins.rest.common.security.AllowCors
annotation is used.
| Method Summary | |
|---|---|
boolean |
allowsCredentials(java.lang.String uri)
Given an origin which has already passed an allowsOrigin(String) check, tests that origin to determine
if it is whitelisted for making a credentialed CORS request, on behalf of a specific user. |
boolean |
allowsOrigin(java.lang.String uri)
Tests the provided origin to determine if it is whitelisted for making non-credentialed CORS requests. |
java.util.Set<java.lang.String> |
getAllowedRequestHeaders(java.lang.String uri)
For the provided origin, returns a set of HTTP headers which the browser may include when making a request. |
java.util.Set<java.lang.String> |
getAllowedResponseHeaders(java.lang.String uri)
For the provided origin, returns a set of HTTP headers which the browser's CORS support can forward on to the underlying request. |
| Method Detail |
|---|
boolean allowsCredentials(java.lang.String uri)
throws java.lang.IllegalArgumentException
allowsOrigin(String) check, tests that origin to determine
if it is whitelisted for making a credentialed CORS request, on behalf of a specific user.
uri - The origin that has already been allowed. Will never be null
java.lang.IllegalArgumentException - Thrown if the uri is not a valid origin or is null.
boolean allowsOrigin(java.lang.String uri)
throws java.lang.IllegalArgumentException
uri - The origin. Will never be null
java.lang.IllegalArgumentException - Thrown if the uri is not a valid URL or is null.
java.util.Set<java.lang.String> getAllowedRequestHeaders(java.lang.String uri)
throws java.lang.IllegalArgumentException
uri - the origin that has already been allowed. Will never be null
java.lang.IllegalArgumentException - Thrown if the uri is not a valid origin or is null.CorsHeaders.ACCESS_CONTROL_ALLOW_HEADERS
java.util.Set<java.lang.String> getAllowedResponseHeaders(java.lang.String uri)
throws java.lang.IllegalArgumentException
uri - the origin that has already been allowed. Will never be null
java.lang.IllegalArgumentException - Thrown if the uri is not a valid origin or is null.CorsHeaders.ACCESS_CONTROL_EXPOSE_HEADERS
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||