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

org.bitbucket.gkutiel.in.my.mind.server.ServerBuilder Maven / Gradle / Ivy

The newest version!
package org.bitbucket.gkutiel.in.my.mind.server;

import static org.slf4j.LoggerFactory.getLogger;
import org.bitbucket.gkutiel.in.Server;
import org.bitbucket.gkutiel.in.my.mind.dispatcher.Dispatcher;
import org.bitbucket.gkutiel.in.my.mind.inject.InjectCookie;
import org.bitbucket.gkutiel.in.my.mind.inject.InjectParam;
import org.slf4j.Logger;

public class ServerBuilder {
	static final Logger log = getLogger(ServerBuilder.class);

	public static Server use(final int port) {
		return Server.use(port, new Dispatcher()).addFilter(new InjectParam()).addFilter(new InjectCookie());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy