Class CrossOrigin
java.lang.Object
org.springframework.integration.http.inbound.CrossOrigin
public class CrossOrigin extends Object
The mapping to permit cross origin requests (CORS) for
HttpRequestHandlingEndpointSupport
.
Provides direct mapping in terms of functionality compared to
CrossOrigin
.- Since:
- 4.2
- Author:
- Artem Bilan
- See Also:
CrossOrigin
,IntegrationRequestMappingHandlerMapping
-
Constructor Summary
Constructors Constructor Description CrossOrigin()
-
Method Summary
Modifier and Type Method 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)
-
Constructor Details
-
CrossOrigin
public CrossOrigin()
-
-
Method Details
-
setOrigin
-
getOrigin
-
setAllowedHeaders
-
getAllowedHeaders
-
setExposedHeaders
-
getExposedHeaders
-
setMethod
-
getMethod
-
setAllowCredentials
-
getAllowCredentials
-
setMaxAge
public void setMaxAge(long maxAge) -
getMaxAge
public long getMaxAge()
-