public class RedirectUtils extends Object
| Constructor and Description |
|---|
RedirectUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.mule.runtime.http.api.domain.message.request.HttpRequest |
createRedirectRequest(org.mule.runtime.http.api.domain.message.response.HttpResponse response,
org.mule.runtime.http.api.domain.message.request.HttpRequest request)
Create a new request with the params of the original and the new URI from the LOCATION header.
|
static String |
getMethodForStatusCode(String requestMethod,
int responseStatusCode) |
static boolean |
isRedirected(int statusCode) |
static boolean |
shouldFollowRedirect(org.mule.runtime.http.api.domain.message.response.HttpResponse response,
org.mule.runtime.http.api.client.HttpRequestOptions options,
boolean enableMuleRedirect) |
public static boolean shouldFollowRedirect(org.mule.runtime.http.api.domain.message.response.HttpResponse response,
org.mule.runtime.http.api.client.HttpRequestOptions options,
boolean enableMuleRedirect)
response - HttpResponseoptions - HttpRequestOptionspublic static boolean isRedirected(int statusCode)
statusCode - public static String getMethodForStatusCode(String requestMethod, int responseStatusCode)
requestMethod - responseStatusCode - public static org.mule.runtime.http.api.domain.message.request.HttpRequest createRedirectRequest(org.mule.runtime.http.api.domain.message.response.HttpResponse response,
org.mule.runtime.http.api.domain.message.request.HttpRequest request)
response - HttpResponserequest - HttpRequestCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.