String html = "\n"
+ "\n"
+ "
\n"
+ " Hello!\n"
+ "\n"
+ "\n"
+ "PotaLab Inc.
\n"
+ "Hello WAFULL World!!!(The Http protocol uses "
+ "com.potalab.wafull.sattang.server.HttpServer)
\n"
+ ""
+ "\n"
+ "\n";
try {
response.addHeader("Content-Type", "text/html");
response.addHeader("Content-Length", Integer.toString(html.getBytes().length));
OutputStream output = response.getOutputStream();
if (output != null) {
output.write(html.getBytes());
output.flush();
}
} catch (Exception e) {
e.printStackTrace();
}