Mercurial Hosting > nabble
comparison src/nabble/view/web/util/Rmi.java @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7ecd1a4ef557 |
---|---|
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 } |