org.zalando.riptide.NoRoute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of riptide-core Show documentation
Show all versions of riptide-core Show documentation
Client side response routing
The newest version!
package org.zalando.riptide;
import org.apiguardian.api.API;
import org.springframework.http.client.ClientHttpResponse;
import static org.apiguardian.api.API.Status.STABLE;
@API(status = STABLE)
public final class NoRoute implements Route {
private static final Route NO_ROUTE = new NoRoute();
private NoRoute() {
}
@Override
public void execute(final ClientHttpResponse response, final MessageReader reader) throws Exception {
throw new UnexpectedResponseException(response);
}
public static Route noRoute() {
return NO_ROUTE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy