Mercurial Hosting > nabble
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/nabble/view/web/util/Rmi.java Thu Mar 21 19:15:52 2019 -0600 @@ -0,0 +1,21 @@ + package nabble.view.web.util; + +import nabble.model.Init; + +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + + +public final class Rmi extends HttpServlet { + + protected void service(HttpServletRequest request,HttpServletResponse response) + throws ServletException, IOException + { + if( Init.localRmiServer == null ) + throw new RuntimeException("localRmiServer not set"); + response.getWriter().print(Init.localRmiServer); + } +}