0
|
1 package nabble.view.web.util;
|
|
2
|
|
3 import nabble.model.Init;
|
|
4
|
|
5 import javax.servlet.ServletException;
|
|
6 import javax.servlet.http.HttpServlet;
|
|
7 import javax.servlet.http.HttpServletRequest;
|
|
8 import javax.servlet.http.HttpServletResponse;
|
|
9 import java.io.IOException;
|
|
10
|
|
11
|
|
12 public final class Rmi extends HttpServlet {
|
|
13
|
|
14 protected void service(HttpServletRequest request,HttpServletResponse response)
|
|
15 throws ServletException, IOException
|
|
16 {
|
|
17 if( Init.localRmiServer == null )
|
|
18 throw new RuntimeException("localRmiServer not set");
|
|
19 response.getWriter().print(Init.localRmiServer);
|
|
20 }
|
|
21 }
|