io.github.itroadlabs.apicross.java.DefaultRequestsHandlerMethodNameResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apicross-java Show documentation
Show all versions of apicross-java Show documentation
Base classes for Java code generators
The newest version!
package io.github.itroadlabs.apicross.java;
import io.swagger.v3.oas.models.Operation;
import io.github.itroadlabs.apicross.core.handler.RequestsHandlerMethodNameResolver;
import javax.annotation.Nonnull;
public class DefaultRequestsHandlerMethodNameResolver implements RequestsHandlerMethodNameResolver {
@Nonnull
@Override
public String resolve(@Nonnull Operation operation, @Nonnull String uriPath,
String consumesMediaType, String producesMediaType) {
return new DefaultMethodNameBuilder()
.operationId(operation.getOperationId())
.consumingsMediaType(consumesMediaType)
.producingMediaType(producesMediaType)
.build();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy