public class CrossOrigin extends Object
HttpRequestHandlingEndpointSupport
.
Provides direct mapping in terms of functionality compared to
CrossOrigin
.CrossOrigin
,
IntegrationRequestMappingHandlerMapping
Constructor and Description |
---|
CrossOrigin() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getAllowCredentials() |
String[] |
getAllowedHeaders() |
String[] |
getExposedHeaders() |
long |
getMaxAge() |
RequestMethod[] |
getMethod() |
String[] |
getOrigin() |
void |
setAllowCredentials(Boolean allowCredentials) |
void |
setAllowedHeaders(String... allowedHeaders) |
void |
setExposedHeaders(String... exposedHeaders) |
void |
setMaxAge(long maxAge) |
void |
setMethod(RequestMethod... method) |
void |
setOrigin(String... origin) |
public void setOrigin(String... origin)
public String[] getOrigin()
public void setAllowedHeaders(String... allowedHeaders)
public String[] getAllowedHeaders()
public void setExposedHeaders(String... exposedHeaders)
public String[] getExposedHeaders()
public void setMethod(RequestMethod... method)
public RequestMethod[] getMethod()
public void setAllowCredentials(Boolean allowCredentials)
public Boolean getAllowCredentials()
public void setMaxAge(long maxAge)
public long getMaxAge()