ameba.container.grizzly.server.http.GrizzlyHttpContainerProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ameba-container-grizzly Show documentation
Show all versions of ameba-container-grizzly Show documentation
A useful Java framework grizzly container!
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