Class CorsResolution

java.lang.Object
org.codelibs.fess.cors.CorsResolution

public class CorsResolution extends Object
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 Details

    • CorsResolution

      public CorsResolution(CorsHandler handler, CorsMatchType matchType)
      Creates a resolution.
      Parameters:
      handler - the handler to process the request
      matchType - how the origin matched the allow list
  • Method Details

    • getHandler

      public CorsHandler getHandler()
      Returns the handler to process the request.
      Returns:
      the CORS handler
    • getMatchType

      public CorsMatchType getMatchType()
      Returns how the origin matched the allow list.
      Returns:
      the match type