Controllers migration.
This commit is contained in:
+10
-4
@@ -19,8 +19,11 @@
|
||||
*/
|
||||
package org.libresonic.player.controller;
|
||||
|
||||
import org.springframework.web.servlet.*;
|
||||
import org.springframework.web.servlet.mvc.*;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.*;
|
||||
|
||||
@@ -29,10 +32,13 @@ import javax.servlet.http.*;
|
||||
*
|
||||
* @author Sindre Mehus
|
||||
*/
|
||||
public class AllmusicController extends ParameterizableViewController {
|
||||
@Controller
|
||||
@RequestMapping("/allmusic")
|
||||
public class AllmusicController {
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
||||
ModelAndView result = super.handleRequestInternal(request, response);
|
||||
ModelAndView result = new ModelAndView();
|
||||
result.addObject("album", request.getParameter("album"));
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -15,9 +15,6 @@
|
||||
<mvc:annotation-driven />
|
||||
<context:component-scan base-package="org.libresonic.player.controller, org.libresonic.player.validator"/>
|
||||
|
||||
<bean id="allmusicController" class="org.libresonic.player.controller.AllmusicController">
|
||||
<property name="viewName" value="allmusic"/>
|
||||
</bean>
|
||||
<bean id="podcastChannelsController" class="org.libresonic.player.controller.PodcastChannelsController">
|
||||
<property name="viewName" value="podcastChannels"/>
|
||||
<property name="podcastService" ref="podcastService"/>
|
||||
@@ -222,7 +219,6 @@
|
||||
<prop key="/transcodingSettings.view">transcodingSettingsController</prop>
|
||||
<prop key="/internetRadioSettings.view">internetRadioSettingsController</prop>
|
||||
<prop key="/avatarUpload.view">avatarUploadController</prop>
|
||||
<prop key="/allmusic.view">allmusicController</prop>
|
||||
<prop key="/editTags.view">editTagsController</prop>
|
||||
<prop key="/avatar.view">avatarController</prop>
|
||||
<prop key="/proxy.view">proxyController</prop>
|
||||
|
||||
Reference in New Issue
Block a user