protected override void doGet(HttpServletRequest req, HttpServletResponse resp)
        {
            try
            {
                resp.setContentType("text/html");
                var a = new RenderArguments
                {
                    PathAndQuery = req.GetPathAndQuery(),
                    ServerName   = req.getServerName()
                };

                resp.getWriter().println(Render(a));
                resp.getWriter().flush();
            }
            catch (csharp.ThrowableException ex)
            {
                // either swallow of throw a runtime exception

                ((java.lang.Throwable)(object) ex).printStackTrace();
            }
        }
        protected override void doGet(HttpServletRequest req, HttpServletResponse resp)
        {
            try
            {

                resp.setContentType("text/html");
                var a = new RenderArguments
                {
                    PathAndQuery = req.GetPathAndQuery(),
                    ServerName = req.getServerName()
                };

                resp.getWriter().println(Render(a));
                resp.getWriter().flush();
            }
            catch (csharp.ThrowableException ex)
            {
                // either swallow of throw a runtime exception

                ((java.lang.Throwable)(object)ex).printStackTrace();

            }
        }
 public override string getServerName()
 {
     return(_request.getServerName());
 }
Exemple #4
0
 public override string GetServerName()
 {
     return(_HttpServletRequest.getServerName());
 }