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.
-
-
Constructor Summary
Constructors Constructor Description HandlerRedirectUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponsegetRedirectResponse(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.HttpResponsegetResponse(org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus status, String message)
-
-
-
Field Detail
-
ENCODING
public static final Charset ENCODING
-
-
Method Detail
-
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)
-
-