@Test public void get_path_for_normal_servlet_container() { String path = "/foo/bar"; HttpServletRequest sr = mockHttpServletRequest(); train_getPathInfo(sr, null); expect(sr.getServletPath()).andReturn(path); replay(); Request request = new RequestImpl(sr, CHARSET, null); assertEquals(request.getPath(), path); verify(); }
public String getPath() { String pathInfo = request.getPathInfo(); if (pathInfo == null) return request.getServletPath(); return pathInfo.length() == 0 ? "/" : pathInfo; }
RequestImpl implements Request { public String getPath() { String pathInfo = request.getPathInfo(); if (pathInfo == null) return request.getServletPath(); return pathInfo.length() == 0 ? "/" : pathInfo; } }
RequestImpl implements Request { public String getPath() { String pathInfo = request.getPathInfo(); if (pathInfo == null) return request.getServletPath(); return pathInfo.length() == 0 ? "/" : pathInfo; } RequestImpl(
            HttpServletRequest request,
            String applicationCharset,
            TapestrySessionFactory sessionFactory); }
RequestImpl implements Request { public String getPath() { String pathInfo = request.getPathInfo(); if (pathInfo == null) return request.getServletPath(); return pathInfo.length() == 0 ? "/" : pathInfo; } RequestImpl(
            HttpServletRequest request,
            String applicationCharset,
            TapestrySessionFactory sessionFactory); List<String> getParameterNames(); List<String> getHeaderNames(); String getParameter(String name); String[] getParameters(String name); String getHeader(String name); String getPath(); String getContextPath(); boolean isSessionInvalidated(); Session getSession(boolean create); Locale getLocale(); long getDateHeader(String name); boolean isXHR(); boolean isSecure(); boolean isRequestedSessionIdValid(); Object getAttribute(String name); List<String> getAttributeNames(); void setAttribute(String name, Object value); String getMethod(); String getServerName(); int getLocalPort(); int getServerPort(); String getRemoteHost(); }
RequestImpl implements Request { public String getPath() { String pathInfo = request.getPathInfo(); if (pathInfo == null) return request.getServletPath(); return pathInfo.length() == 0 ? "/" : pathInfo; } RequestImpl(
            HttpServletRequest request,
            String applicationCharset,
            TapestrySessionFactory sessionFactory); List<String> getParameterNames(); List<String> getHeaderNames(); String getParameter(String name); String[] getParameters(String name); String getHeader(String name); String getPath(); String getContextPath(); boolean isSessionInvalidated(); Session getSession(boolean create); Locale getLocale(); long getDateHeader(String name); boolean isXHR(); boolean isSecure(); boolean isRequestedSessionIdValid(); Object getAttribute(String name); List<String> getAttributeNames(); void setAttribute(String name, Object value); String getMethod(); String getServerName(); int getLocalPort(); int getServerPort(); String getRemoteHost();  }