Class CorsCallback

  • All Implemented Interfaces:
    kotlin.Function , kotlin.Function1

    
    public final class CorsCallback
     implements Function1<HttpContext, HttpContext>
                        

    HTTP CORS callback. It holds info for CORS.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      CorsCallback(String allowedOrigin, Set<HttpMethod> allowedMethods, Set<String> allowedHeaders, Set<String> exposedHeaders, Boolean supportCredentials, HttpStatus preFlightStatus, Long preFlightMaxAge)
      CorsCallback(Regex allowedOrigin, Set<HttpMethod> allowedMethods, Set<String> allowedHeaders, Set<String> exposedHeaders, Boolean supportCredentials, HttpStatus preFlightStatus, Long preFlightMaxAge)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      HttpContext invoke(HttpContext context)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CorsCallback

        CorsCallback(String allowedOrigin, Set<HttpMethod> allowedMethods, Set<String> allowedHeaders, Set<String> exposedHeaders, Boolean supportCredentials, HttpStatus preFlightStatus, Long preFlightMaxAge)
      • CorsCallback

        CorsCallback(Regex allowedOrigin, Set<HttpMethod> allowedMethods, Set<String> allowedHeaders, Set<String> exposedHeaders, Boolean supportCredentials, HttpStatus preFlightStatus, Long preFlightMaxAge)
    • Method Detail

      • invoke

         HttpContext invoke(HttpContext context)