/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/web/BanListener.java |
Parent Directory
|
Revision Log
|
Patch
revision 1938 by torben, Wed Mar 20 15:10:54 2013 UTC | revision 1941 by torben, Wed Mar 20 16:44:18 2013 UTC | |
---|---|---|
# | Line 59 public class BanListener implements Http | Line 59 public class BanListener implements Http |
59 | } | } |
60 | ||
61 | byte bytes[] = text.getBytes(); | byte bytes[] = text.getBytes(); |
62 | http.getResponseHeaders().add("Content-Type", "text/plain"); | |
63 | http.sendResponseHeaders(HttpURLConnection.HTTP_OK, bytes.length ); | http.sendResponseHeaders(HttpURLConnection.HTTP_OK, bytes.length ); |
64 | final OutputStream os = http.getResponseBody(); | final OutputStream os = http.getResponseBody(); |
65 | os.write(bytes); | os.write(bytes); |
66 | os.close(); | os.close(); |
67 | http.close(); | |
68 | ||
69 | } | } |
70 |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |