use of com.xrtb.bidder.CustomListener in project XRTB by benmfaul.
the class Handler method run.
/**
* Starts the JETTY server
*/
public void run() {
Server server = new Server(port);
Handler handler = new Handler();
try {
// org.eclipse.jetty.server.session.SessionHandler
SessionHandler sh = new SessionHandler();
sh.addEventListener(new CustomListener());
sh.setHandler(handler);
server.setHandler(sh);
server.start();
server.join();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Aggregations