- @Override\r
- protected void doGet(HttpServletRequest req, HttpServletResponse resp)\r
- throws ServletException, IOException {\r
- StringBuffer jabawspath = req.getRequestURL();\r
- jabawspath = jabawspath.delete(jabawspath.lastIndexOf("/"), jabawspath.length());\r
- String serverPath = jabawspath.toString();\r
-/**\r
- String host = java.net.InetAddress.getLocalHost().getCanonicalHostName();\r
- System.out.println("Testing services at " + req.getRequestURL()); \r
- System.out.println("Really: Testing services at " + serverPath); \r
- System.out.println(" serverPath2 is " + getURL(req)); \r
- System.out.println(" Context Path is " + req.getContextPath()); \r
- System.out.println(" Host is " + host); \r
- System.out.println(" Request URI is " + req.getRequestURI());\r
- System.out.println(" Servlet Path is " + req.getServletPath());\r
- System.out.println(" Path Info is " + req.getPathInfo());\r
- System.out.println(" Local Port is " + req.getLocalPort());\r
- System.out.println(" Remote Port is " + req.getRemotePort());\r
- System.out.println(" Local address is " + req.getLocalAddr());\r
- System.out.println(" Remote address is " + req.getRemoteAddr());\r
- @SuppressWarnings("unchecked")\r
- List<String> list = Collections.list(req.getHeaderNames());\r
- System.out.println(" HTTP header names are " + list.toString());\r
- for (String hdr : list) {\r
- System.out.println(" " + hdr + " header is " + req.getHeader(hdr));\r