3 import interfaces
.DJInterface
;
6 import java
.io
.IOException
;
7 import java
.net
.URISyntaxException
;
9 import java
.util
.Scanner
;
11 import util
.node
.Node
;
12 import util
.node
.PageNode
;
14 public class PageRequest
implements Command
{
16 public void init(Map
<String
, String
> args
) {
17 // TODO Auto-generated method stub
21 public Node
run(DJInterface dj
) {
25 File f
= new File(PageRequest
.class.getResource("stereo.html").toURI());
26 Scanner sc
= new Scanner(f
);
27 while (sc
.hasNextLine()) {
28 body
+= sc
.nextLine() + "\r\n";
30 return new PageNode("text/html", body
);
31 } catch (IOException e
) {
32 // TODO Auto-generated catch block
34 } catch (URISyntaxException e
) {
35 // TODO Auto-generated catch block