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

ameba.container.grizzly.server.http.GrizzlyHttpContainerProvider Maven / Gradle / Ivy

There is a newer version: 0.1.12
Show newest version
package ameba.container.grizzly.server.http;

import org.glassfish.grizzly.http.server.HttpHandler;
import org.glassfish.jersey.server.spi.ContainerProvider;

import javax.ws.rs.ProcessingException;
import javax.ws.rs.core.Application;

/**
 * @author icode
 * @since 14-12-11
 */
public class GrizzlyHttpContainerProvider implements ContainerProvider {

    @Override
    public  T createContainer(Class type, Application application) throws ProcessingException {
        if (HttpHandler.class == type || GrizzlyHttpContainer.class == type) {
            return type.cast(new GrizzlyHttpContainer(application));
        }

        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy