
io.reactiverse.awssdk.converters.MethodConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-sdk Show documentation
Show all versions of aws-sdk Show documentation
Reactiverse AWS SDK v2 with Vert.x
The newest version!
package io.reactiverse.awssdk.converters;
import io.vertx.core.http.HttpMethod;
import software.amazon.awssdk.http.SdkHttpMethod;
import java.util.EnumMap;
import java.util.Map;
public final class MethodConverter {
private MethodConverter() {}
private static Map sdkToVertx = new EnumMap<>(SdkHttpMethod.class);
static {
sdkToVertx.put(SdkHttpMethod.GET, HttpMethod.GET);
sdkToVertx.put(SdkHttpMethod.POST, HttpMethod.POST);
sdkToVertx.put(SdkHttpMethod.PUT, HttpMethod.PUT);
sdkToVertx.put(SdkHttpMethod.DELETE, HttpMethod.DELETE);
sdkToVertx.put(SdkHttpMethod.HEAD, HttpMethod.HEAD);
sdkToVertx.put(SdkHttpMethod.PATCH, HttpMethod.PATCH);
sdkToVertx.put(SdkHttpMethod.OPTIONS, HttpMethod.OPTIONS);
}
public static HttpMethod awsToVertx(SdkHttpMethod method) {
return sdkToVertx.get(method);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy