org.springframework.web.bind.support.DefaultSessionAttributeStore Java Examples

The following examples show how to use org.springframework.web.bind.support.DefaultSessionAttributeStore. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ModelFactoryTests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Before
public void setUp() throws Exception {
	this.webRequest = new ServletWebRequest(new MockHttpServletRequest());
	this.attributeStore = new DefaultSessionAttributeStore();
	this.attributeHandler = new SessionAttributesHandler(TestController.class, this.attributeStore);
	this.controller = new TestController();
	this.mavContainer = new ModelAndViewContainer();
}
 
Example #2
Source File: ModelFactoryOrderingTests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Before
public void setup() {
	this.sessionAttributeStore = new DefaultSessionAttributeStore();
	this.webRequest = new ServletWebRequest(new MockHttpServletRequest(), new MockHttpServletResponse());
	this.mavContainer = new ModelAndViewContainer();
	this.mavContainer.addAttribute("methods", new ArrayList<String>());
}
 
Example #3
Source File: ModelFactoryTests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Before
public void setUp() throws Exception {
	this.webRequest = new ServletWebRequest(new MockHttpServletRequest());
	this.attributeStore = new DefaultSessionAttributeStore();
	this.attributeHandler = new SessionAttributesHandler(TestController.class, this.attributeStore);
	this.controller = new TestController();
	this.mavContainer = new ModelAndViewContainer();
}
 
Example #4
Source File: ModelFactoryOrderingTests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Before
public void setup() {
	this.sessionAttributeStore = new DefaultSessionAttributeStore();
	this.webRequest = new ServletWebRequest(new MockHttpServletRequest(), new MockHttpServletResponse());
	this.mavContainer = new ModelAndViewContainer();
	this.mavContainer.addAttribute("methods", new ArrayList<String>());
}
 
Example #5
Source File: ModelFactoryTests.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Before
public void setUp() throws Exception {
	this.controller = new TestController();

	Method method = TestController.class.getDeclaredMethod("handle");
	this.handleMethod = new InvocableHandlerMethod(this.controller, method);

	method = TestController.class.getDeclaredMethod("handleSessionAttr", String.class);
	this.handleSessionAttrMethod = new InvocableHandlerMethod(this.controller, method);

	this.sessionAttributeStore = new DefaultSessionAttributeStore();
	this.sessionAttrsHandler = new SessionAttributesHandler(TestController.class, this.sessionAttributeStore);
	this.webRequest = new ServletWebRequest(new MockHttpServletRequest());
}
 
Example #6
Source File: ModelFactoryOrderingTests.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Before
public void setup() {
	this.sessionAttributeStore = new DefaultSessionAttributeStore();
	this.webRequest = new ServletWebRequest(new MockHttpServletRequest(), new MockHttpServletResponse());
	this.mavContainer = new ModelAndViewContainer();
	this.mavContainer.addAttribute("methods", new ArrayList<String>());
}
 
Example #7
Source File: HandlerMethodInvoker.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer) {
	this(methodResolver, bindingInitializer, new DefaultSessionAttributeStore(), null, null, null);
}
 
Example #8
Source File: HandlerMethodInvoker.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
public HandlerMethodInvoker(HandlerMethodResolver methodResolver, WebBindingInitializer bindingInitializer) {
	this(methodResolver, bindingInitializer, new DefaultSessionAttributeStore(), null, null, null);
}