From f579b31bca531c8e2eb8226a4d4b631429cf7deb Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 4 Jul 2013 10:29:37 +1000 Subject: [PATCH] Add framework for HTTP api --- event/pom.xml | 9 ----- http/nb-configuration.xml | 31 ++++++++++++++++ http/pom.xml | 35 +++++++++++++++++++ .../java/net/md_5/bungee/http/HttpClient.java | 5 +++ pom.xml | 1 + protocol/pom.xml | 2 +- 6 files changed, 73 insertions(+), 10 deletions(-) create mode 100644 http/nb-configuration.xml create mode 100644 http/pom.xml create mode 100644 http/src/main/java/net/md_5/bungee/http/HttpClient.java diff --git a/event/pom.xml b/event/pom.xml index 52bdd857..51ad183d 100644 --- a/event/pom.xml +++ b/event/pom.xml @@ -17,13 +17,4 @@ BungeeCord-Event Generic java event dispatching API intended for use with BungeeCord - - - - junit - junit - 4.11 - test - - diff --git a/http/nb-configuration.xml b/http/nb-configuration.xml new file mode 100644 index 00000000..7e465924 --- /dev/null +++ b/http/nb-configuration.xml @@ -0,0 +1,31 @@ + + + + + + project + NEW_LINE + NEW_LINE + NEW_LINE + true + true + true + true + true + true + true + true + true + true + + diff --git a/http/pom.xml b/http/pom.xml new file mode 100644 index 00000000..9b5655c6 --- /dev/null +++ b/http/pom.xml @@ -0,0 +1,35 @@ + + + 4.0.0 + + + net.md-5 + bungeecord-parent + 1.6.1-SNAPSHOT + ../pom.xml + + + net.md-5 + bungeecord-http + 1.6.1-SNAPSHOT + jar + + BungeeCord-HTTP + Minimal HTTP API for sending basic GET requests + + + + io.netty + codec-http + ${netty.version} + compile + + + junit + junit + 4.11 + test + + + diff --git a/http/src/main/java/net/md_5/bungee/http/HttpClient.java b/http/src/main/java/net/md_5/bungee/http/HttpClient.java new file mode 100644 index 00000000..8f10abef --- /dev/null +++ b/http/src/main/java/net/md_5/bungee/http/HttpClient.java @@ -0,0 +1,5 @@ +package net.md_5.bungee.http; + +public class HttpClient +{ +} diff --git a/pom.xml b/pom.xml index 84d480f4..0e440f02 100644 --- a/pom.xml +++ b/pom.xml @@ -39,6 +39,7 @@ api event + http protocol proxy diff --git a/protocol/pom.xml b/protocol/pom.xml index 1fd4d774..db77213b 100644 --- a/protocol/pom.xml +++ b/protocol/pom.xml @@ -23,7 +23,7 @@ io.netty netty-buffer ${netty.version} - provided + compile