Package org.kohsuke.stapler.jetty

Examples of org.kohsuke.stapler.jetty.JettyRunner.start()


    public static void main(String[] args) throws Exception {
//        GitHub.connect().getMyself().getRepository("sandbox").createWebHook(
//                new URL("http://173.203.118.45:18080/"), EnumSet.of(GHEvent.PULL_REQUEST));
        JettyRunner jr = new JettyRunner(new HookApp());
        jr.addHttpListener(8080);
        jr.start();
    }

    public void doIndex(StaplerRequest req) throws IOException {
        String str = req.getParameter("payload");
        System.out.println(str);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.