Class ClientRedirectConfig

java.lang.Object
io.vertx.core.http.ClientRedirectConfig

@Unstable public class ClientRedirectConfig extends Object
HTTP client HTTP redirect config.
Author:
Julien Viet
  • Constructor Details

    • ClientRedirectConfig

      public ClientRedirectConfig()
    • ClientRedirectConfig

      public ClientRedirectConfig(ClientRedirectConfig other)
  • Method Details

    • getMaxRedirects

      public int getMaxRedirects()
      Returns:
      the maximum number of redirection a request can follow
    • setMaxRedirects

      public ClientRedirectConfig setMaxRedirects(int maxRedirects)
      Set to maxRedirects the maximum number of redirection a request can follow.
      Parameters:
      maxRedirects - the maximum number of redirection
      Returns:
      a reference to this, so the API can be used fluently
    • getSameOriginBlockedHeaders

      public Set<String> getSameOriginBlockedHeaders()
      Returns:
      the set of blocked HTTP headers on a same-origin redirection, the default being HttpClientOptions.DEFAULT_SAME_ORIGIN_REDIRECT_BLOCKED_HEADERS
    • setSameOriginBlockedHeaders

      public ClientRedirectConfig setSameOriginBlockedHeaders(Set<String> sameOriginBlockedHeaders)
      Update the set of blocked HTTP headers on a same-origin redirection.
      Parameters:
      sameOriginBlockedHeaders - the new set of headers to block
      Returns:
      a reference to this, so the API can be used fluently
    • getCrossOriginBlockedHeaders

      public Set<String> getCrossOriginBlockedHeaders()
      Returns:
      the set of blocked HTTP headers on a cross-origin redirection, the default being HttpClientOptions.DEFAULT_CROSS_ORIGIN_REDIRECT_BLOCKED_HEADERS
    • setCrossOriginBlockedHeaders

      public ClientRedirectConfig setCrossOriginBlockedHeaders(Set<String> crossOriginBlockedHeaders)
      Update the set of blocked HTTP headers on a cross-origin redirection.
      Parameters:
      crossOriginBlockedHeaders - the new set of headers to block
      Returns:
      a reference to this, so the API can be used fluently