All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gravitee.apim.common.mapper.TcpTargetMapperImpl Maven / Gradle / Ivy

There is a newer version: 4.6.0
Show newest version
package io.gravitee.apim.common.mapper;

import io.gravitee.definition.model.v4.tcp.TcpTarget;
import io.gravitee.node.vertx.client.tcp.VertxTcpTarget;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-10-24T18:11:40+0000",
    comments = "version: 1.6.0.Beta2, compiler: javac, environment: Java 17.0.8 (Eclipse Adoptium)"
)
public class TcpTargetMapperImpl implements TcpTargetMapper {

    @Override
    public VertxTcpTarget map(TcpTarget tcpTarget) {
        if ( tcpTarget == null ) {
            return null;
        }

        VertxTcpTarget.VertxTcpTargetBuilder vertxTcpTarget = VertxTcpTarget.builder();

        vertxTcpTarget.host( tcpTarget.getHost() );
        vertxTcpTarget.port( tcpTarget.getPort() );
        vertxTcpTarget.secured( tcpTarget.isSecured() );

        return vertxTcpTarget.build();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy