Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
27: Generate Home view
Browse files Browse the repository at this point in the history
Task-Url: #27

(Partial commit due to change local repository path)
  • Loading branch information
Xelit3 committed Nov 5, 2016
1 parent 4c28484 commit 7eff38a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion RocketStatsWeb/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry combineaccessrules="false" kind="src" path="/GamersCreedShared"/>
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/GamersCreedShared"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
1 change: 1 addition & 0 deletions RocketStatsWeb/WebContent/WEB-INF/servlet-context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@

<context:component-scan base-package="gamerscreed.rocketstats.controller" />


</beans:beans>
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package gamerscreed.rocketstats.controller;

import gamerscreed.profiler.structures.SecurityInfo;
import org.springframework.web.servlet.ModelAndView;

import gamerscreed.rocketstats.utilities.WebServiceControllerCallDispatcher;

public abstract class BaseController {

WebServiceControllerCallDispatcher callDispatcher;
protected WebServiceControllerCallDispatcher callDispatcher;

public BaseController(){
callDispatcher = new WebServiceControllerCallDispatcher();
}

public abstract String viewIndex(SecurityInfo aSecurityInfo);
public abstract ModelAndView viewIndex();

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import gamerscreed.profiler.structures.SecurityInfo;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HomeController extends BaseController
{

@Override
@RequestMapping(value="/", method=RequestMethod.GET)
public String viewIndex(SecurityInfo aSecurityInfo) {
public ModelAndView viewIndex() {
// TODO Auto-generated method stub
return "home";
return new ModelAndView("HomeView");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
import org.springframework.web.client.RestTemplate;

import gamerscreed.profiler.structures.DataSender;
import gamerscreed.profiler.structures.SecurityInfo;

public class WebServiceControllerCallDispatcher {

RestTemplate restTemplate = new RestTemplate();

protected DataSender MAkeRequest(String aUrl, SecurityInfo aSecurityInfo){
public DataSender MakeRequest(String aUrl, DataSender aData){
return null;
}
}

0 comments on commit 7eff38a

Please sign in to comment.