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