Class StaticResourceCorsConfigDefault

java.lang.Object
org.spincast.plugins.routing.StaticResourceCorsConfigDefault
All Implemented Interfaces:
org.spincast.core.routing.StaticResourceCorsConfig

public class StaticResourceCorsConfigDefault extends Object implements org.spincast.core.routing.StaticResourceCorsConfig
  • Constructor Details

    • StaticResourceCorsConfigDefault

      public StaticResourceCorsConfigDefault(Set<String> allowedOrigins, @Nullable Set<String> extraHeadersAllowedToBeRead, @Nullable Set<String> extraHeadersAllowedToBeSent, boolean allowCookies, int maxAgeInSeconds)
  • Method Details

    • getAllowedOrigins

      public Set<String> getAllowedOrigins()
      Specified by:
      getAllowedOrigins in interface org.spincast.core.routing.StaticResourceCorsConfig
    • getExtraHeadersAllowedToBeRead

      public Set<String> getExtraHeadersAllowedToBeRead()
      Specified by:
      getExtraHeadersAllowedToBeRead in interface org.spincast.core.routing.StaticResourceCorsConfig
    • getExtraHeadersAllowedToBeSent

      public Set<String> getExtraHeadersAllowedToBeSent()
      Specified by:
      getExtraHeadersAllowedToBeSent in interface org.spincast.core.routing.StaticResourceCorsConfig
    • isAllowCookies

      public boolean isAllowCookies()
      Specified by:
      isAllowCookies in interface org.spincast.core.routing.StaticResourceCorsConfig
    • getMaxAgeInSeconds

      public int getMaxAgeInSeconds()
      Specified by:
      getMaxAgeInSeconds in interface org.spincast.core.routing.StaticResourceCorsConfig