@Test public void shouldSetRequestAttribute() { result.include("my_key", "my_value"); verify(request).setAttribute("my_key", "my_value"); }
public Result include(String key, Object value) { if (logger.isDebugEnabled()) { logger.debug("including attribute {}: {}", key, value); } includedAttributes.put(key, value); request.setAttribute(key, value); return this; }
DefaultResult extends AbstractResult { public Result include(String key, Object value) { if (logger.isDebugEnabled()) { logger.debug("including attribute {}: {}", key, value); } includedAttributes.put(key, value); request.setAttribute(key, value); return this; } }
DefaultResult extends AbstractResult { public Result include(String key, Object value) { if (logger.isDebugEnabled()) { logger.debug("including attribute {}: {}", key, value); } includedAttributes.put(key, value); request.setAttribute(key, value); return this; } DefaultResult(); @Inject  DefaultResult(HttpServletRequest request, Container container, ExceptionMapper exceptions, TypeNameExtractor extractor); }
DefaultResult extends AbstractResult { public Result include(String key, Object value) { if (logger.isDebugEnabled()) { logger.debug("including attribute {}: {}", key, value); } includedAttributes.put(key, value); request.setAttribute(key, value); return this; } DefaultResult(); @Inject  DefaultResult(HttpServletRequest request, Container container, ExceptionMapper exceptions, TypeNameExtractor extractor); T use(Class<T> view); Result on(Class<? extends Exception> exception); Result include(String key, Object value); boolean used(); Map<String, Object> included(); Result include(Object value); }
DefaultResult extends AbstractResult { public Result include(String key, Object value) { if (logger.isDebugEnabled()) { logger.debug("including attribute {}: {}", key, value); } includedAttributes.put(key, value); request.setAttribute(key, value); return this; } DefaultResult(); @Inject  DefaultResult(HttpServletRequest request, Container container, ExceptionMapper exceptions, TypeNameExtractor extractor); T use(Class<T> view); Result on(Class<? extends Exception> exception); Result include(String key, Object value); boolean used(); Map<String, Object> included(); Result include(Object value);  }