Class HandlerRedirectUtils

java.lang.Object
org.apache.flink.runtime.rest.handler.util.HandlerRedirectUtils

public class HandlerRedirectUtils extends Object
Utilities to extract a redirect address.

This is necessary at the moment, because many execution graph structures are not serializable. The proper solution here is to have these serializable and transparently work with the leading job manager instead of redirecting.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Charset
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse
    getRedirectResponse(String redirectAddress, String path, org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus code)
     
    static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse
    getResponse(org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus status, String message)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ENCODING

      public static final Charset ENCODING
  • Constructor Details

    • HandlerRedirectUtils

      public HandlerRedirectUtils()
  • Method Details

    • getRedirectResponse

      public static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse getRedirectResponse(String redirectAddress, String path, org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus code)
    • getResponse

      public static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse getResponse(org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus status, @Nullable String message)