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

com.englishtown.vertx.jersey.VertxContainer Maven / Gradle / Ivy

Go to download

Allows creating JAX-RS jersey resources that will handle incoming http requests to vert.x

The newest version!
package com.englishtown.vertx.jersey;

import io.vertx.core.Vertx;
import org.glassfish.jersey.server.spi.Container;

/**
 * Vert.x extension of {@link Container}
 */
public interface VertxContainer extends Container {

    /**
     * @param options
     * @deprecated Perform initialization at construction time
     */
    @Deprecated
    default void init(JerseyOptions options) {
        throw new UnsupportedOperationException();
    }

    /**
     * Starts the container
     */
    void start();

    /**
     * Stops the container
     */
    void stop();

    /**
     * Returns the current vertx instance
     *
     * @return the {@link Vertx} instance
     */
    Vertx getVertx();

    /**
     * Returns jersey configuration options
     *
     * @return
     */
    JerseyOptions getOptions();

    /**
     * Set the jersey configuration options
     *
     * @param options
     * @return
     */
    VertxContainer setOptions(JerseyOptions options);

    ApplicationHandlerDelegate getApplicationHandlerDelegate();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy