org.bitbucket.gkutiel.in.my.mind.server.ServerBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of in-my-mind Show documentation
Show all versions of in-my-mind Show documentation
An opinionated web framework on top of in-core
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());
}
}