()
| 42 | InputStream in; |
| 43 | |
| 44 | public void init() |
| 45 | { |
| 46 | getContentPane().setLayout(new BorderLayout()); |
| 47 | |
| 48 | try { |
| 49 | URL base = getDocumentBase(); |
| 50 | |
| 51 | // connect to session server on port (httpd + 1) |
| 52 | Socket s = new Socket(base.getHost(), base.getPort() + 1); |
| 53 | out = s.getOutputStream(); |
| 54 | in = s.getInputStream(); |
| 55 | } catch(IOException e) { |
| 56 | getContentPane().add("Center", |
| 57 | new Label("Remote Connection Failed", Label.CENTER)); |
| 58 | return; |
| 59 | } |
| 60 | |
| 61 | Component console = new JConsole(in, out); |
| 62 | getContentPane().add("Center", console); |
| 63 | } |
| 64 | } |
| 65 |
nothing calls this directly
no test coverage detected