@Test public void testOtherAttributesAreFetchedFromTheOriginalRequest() { this.testee.getAttribute("other.attribute"); verify(this.request).getAttribute("other.attribute"); }
@Override public Object getAttribute(String name) { if (INCLUDE_REQUEST_URI_ATTRIBUTE.equals(name)) { return getServletPath() + getRequestPathInfo().getSuffix(); } if (INCLUDE_SERVLET_PATH_ATTRIBUTE.equals(name)) { return getServletPath(); } return super.getAttribute(name); }
SlingMvcServletRequest extends SlingHttpServletRequestWrapper { @Override public Object getAttribute(String name) { if (INCLUDE_REQUEST_URI_ATTRIBUTE.equals(name)) { return getServletPath() + getRequestPathInfo().getSuffix(); } if (INCLUDE_SERVLET_PATH_ATTRIBUTE.equals(name)) { return getServletPath(); } return super.getAttribute(name); } }
SlingMvcServletRequest extends SlingHttpServletRequestWrapper { @Override public Object getAttribute(String name) { if (INCLUDE_REQUEST_URI_ATTRIBUTE.equals(name)) { return getServletPath() + getRequestPathInfo().getSuffix(); } if (INCLUDE_SERVLET_PATH_ATTRIBUTE.equals(name)) { return getServletPath(); } return super.getAttribute(name); } SlingMvcServletRequest(SlingHttpServletRequest request); }
SlingMvcServletRequest extends SlingHttpServletRequestWrapper { @Override public Object getAttribute(String name) { if (INCLUDE_REQUEST_URI_ATTRIBUTE.equals(name)) { return getServletPath() + getRequestPathInfo().getSuffix(); } if (INCLUDE_SERVLET_PATH_ATTRIBUTE.equals(name)) { return getServletPath(); } return super.getAttribute(name); } SlingMvcServletRequest(SlingHttpServletRequest request); @Override Object getAttribute(String name); @Override String getServletPath(); }
SlingMvcServletRequest extends SlingHttpServletRequestWrapper { @Override public Object getAttribute(String name) { if (INCLUDE_REQUEST_URI_ATTRIBUTE.equals(name)) { return getServletPath() + getRequestPathInfo().getSuffix(); } if (INCLUDE_SERVLET_PATH_ATTRIBUTE.equals(name)) { return getServletPath(); } return super.getAttribute(name); } SlingMvcServletRequest(SlingHttpServletRequest request); @Override Object getAttribute(String name); @Override String getServletPath();  }