Class CrossOrigin
java.lang.Object
org.springframework.integration.http.inbound.CrossOrigin
The mapping to permit cross origin requests (CORS) for
HttpRequestHandlingEndpointSupport.
Provides direct mapping in terms of functionality compared to
CrossOrigin.- Since:
- 4.2
- See Also:
-
CrossOriginIntegrationRequestMappingHandlerMapping
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]String[]longorg.springframework.web.bind.annotation.RequestMethod[]String[]voidsetAllowCredentials(Boolean allowCredentials) voidsetAllowedHeaders(String... allowedHeaders) voidsetExposedHeaders(String... exposedHeaders) voidsetMaxAge(long maxAge) voidsetMethod(org.springframework.web.bind.annotation.RequestMethod... method) void
-
Constructor Details
-
CrossOrigin
public CrossOrigin()
-
-
Method Details
-
setOrigin
-
getOrigin
-
setAllowedHeaders
-
getAllowedHeaders
-
setExposedHeaders
-
getExposedHeaders
-
setMethod
public void setMethod(org.springframework.web.bind.annotation.RequestMethod... method) -
getMethod
public org.springframework.web.bind.annotation.RequestMethod[] getMethod() -
setAllowCredentials
-
getAllowCredentials
-
setMaxAge
public void setMaxAge(long maxAge) -
getMaxAge
public long getMaxAge()
-