1 /*
2 * Licensed under the GPL License. You may not use this file except in compliance with the License.
3 * You may obtain a copy of the License at
4 *
5 * https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6 *
7 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8 * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9 * PURPOSE.
10 */
11 package psiprobe;
12
13 import org.springframework.http.HttpMethod;
14 import org.springframework.web.servlet.mvc.ParameterizableViewController;
15
16 /**
17 * The Class PostParameterizableViewController.
18 */
19 public class PostParameterizableViewController extends ParameterizableViewController {
20
21 /**
22 * Instantiates a new post parameterizable view controller. As of spring 4.3.x, the
23 * ParameterizableViewController no longer allows POST but only GET/HEAD. This patch restores POST
24 * functionality.
25 */
26 public PostParameterizableViewController() {
27 setSupportedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.HEAD.name());
28 }
29
30 }