protected override void doGet(HttpServletRequest req, HttpServletResponse resp)
        {
            try
            {
                var Path = req.getServletPath();
                var Query = req.getQueryString();
                var PathAndQuery = Path;
                if (Query != null)
                    PathAndQuery += "?" + Query;

                if (PathAndQuery != "/")
                {
                    //resp.setContentType("text/html");
                    //resp.getWriter().println(
                    resp.sendRedirect(
                        GetTinEyeVersion(GetPosterLink(PathAndQuery))
                        //.ToImage()
                    );
                }
                else
                {
                    resp.setContentType("text/html");
                    resp.getWriter().println(Launch(PathAndQuery));
                }
            }
            catch
            {
                // either swallow of throw a runtime exception
            }
        }
        protected override void doGet(HttpServletRequest req, HttpServletResponse resp)
        {
            try
            {
                var Path         = req.getServletPath();
                var Query        = req.getQueryString();
                var PathAndQuery = Path;
                if (Query != null)
                {
                    PathAndQuery += "?" + Query;
                }

                if (PathAndQuery != "/")
                {
                    //resp.setContentType("text/html");
                    //resp.getWriter().println(
                    resp.sendRedirect(
                        GetTinEyeVersion(GetPosterLink(PathAndQuery))
                        //.ToImage()
                        );
                }
                else
                {
                    resp.setContentType("text/html");
                    resp.getWriter().println(Launch(PathAndQuery));
                }
            }
            catch
            {
                // either swallow of throw a runtime exception
            }
        }
Ejemplo n.º 3
0
 protected override void doPost(HttpServletRequest request, HttpServletResponse response)
 {
     request.setCharacterEncoding("UTF-8");
     Message.Message newMessage = new Message.Message(request.getParameter("title"),
                                                      request.getParameter("handle"),
                                                      request.getParameter("message"));
     newMessage.date = DateTime.Now;
     Message.Message.messageList.Insert(0, newMessage);
     response.sendRedirect("/testbbs/ShowBBS");
 }
        // http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html#site-control
        // http://board.flashkit.com/board/showthread.php?t=782484

        protected override void doGet(HttpServletRequest req, HttpServletResponse resp)
        {
            try
            {
                resp.sendRedirect(ToLocation(req.GetPathAndQuery()));
            }
            catch (csharp.ThrowableException ex)
            {
                // either swallow of throw a runtime exception

                ((java.lang.Throwable)(object) ex).printStackTrace();
            }
        }
        // level editor
        // - save locally
        // -- as cookie
        // -- to google gears
        // -- to file
        // - save to the bulldog system
        // -- description
        // -- preview
        // - upload new assets for custom levels (pay extra for storage to avoid spam)
        protected override void doGet(HttpServletRequest req, HttpServletResponse resp)
        {
            try
            {
                resp.sendRedirect(Link);
            }
            catch (csharp.ThrowableException ex)
            {
                // either swallow of throw a runtime exception

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

            }
        }