Package org.codelibs.fess.cors
Class CorsResolution
java.lang.Object
org.codelibs.fess.cors.CorsResolution
Result of resolving a request
Origin against the CORS allow list.
Carries both the handler to invoke and the CorsMatchType that decides
whether the Origin is reflected (EXACT) or a literal "*" is returned (WILDCARD).-
Constructor Summary
ConstructorsConstructorDescriptionCorsResolution(CorsHandler handler, CorsMatchType matchType) Creates a resolution. -
Method Summary
Modifier and TypeMethodDescriptionReturns the handler to process the request.Returns how the origin matched the allow list.
-
Constructor Details
-
CorsResolution
Creates a resolution.- Parameters:
handler- the handler to process the requestmatchType- how the origin matched the allow list
-
-
Method Details
-
getHandler
Returns the handler to process the request.- Returns:
- the CORS handler
-
getMatchType
Returns how the origin matched the allow list.- Returns:
- the match type
-