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

io.apicurio.datamodels.asyncapi.v2.models.Aai20Server Maven / Gradle / Ivy

There is a newer version: 3.5.0.Final
Show newest version
/*
 * Copyright 2019 Red Hat
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.apicurio.datamodels.asyncapi.v2.models;

import io.apicurio.datamodels.asyncapi.models.AaiServer;
import io.apicurio.datamodels.core.models.Node;
import io.apicurio.datamodels.core.models.common.Server;

/**
 * Models an AsyncAPI server.
 *
 * @author [email protected]
 * @author Jakub Senko
 */
public class Aai20Server extends AaiServer {

    /**
     * Constructor.
     */
    public Aai20Server(String name) {
        super(name);
    }

    /**
     * Constructor.
     * @param parent
     */
    public Aai20Server(Node parent) {
        super(parent);
    }

    /**
     * Constructor.
     * @param parent
     * @param name
     */
    public Aai20Server(Node parent, String name) {
        super(parent, name);
    }

    /**
     * @see Server#createServerVariable(String)
     */
    @Override
    public Aai20ServerVariable createServerVariable(String name) {
        return new Aai20ServerVariable(this, name);
    }

    /**
     * Creates a security requirement.
     */
    @Override
    public Aai20SecurityRequirement createSecurityRequirement() {
        return new Aai20SecurityRequirement(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy