[DS-2784] redundant annotation deleted

This commit is contained in:
aleksanderkotbury
2015-10-29 17:33:00 +01:00
parent 88a3780657
commit f578ab406b

View File

@@ -29,7 +29,6 @@ import org.dspace.eperson.service.EPersonService;
import org.dspace.rest.common.Status;
import org.dspace.rest.common.User;
import org.dspace.rest.exceptions.ContextException;
import org.springframework.stereotype.Component;
/**
* Root of RESTful api. It provides login and logout. Also have method for
@@ -38,14 +37,11 @@ import org.springframework.stereotype.Component;
* @author Rostislav Novak (Computing and Information Centre, CTU in Prague)
*
*/
@Component
@Path("/")
public class RestIndex {
protected EPersonService epersonService = EPersonServiceFactory.getInstance().getEPersonService();
private static Logger log = Logger.getLogger(RestIndex.class);
@javax.ws.rs.core.Context public ServletContext servletContext;
/**
* Return html page with information about REST api. It contains methods all
* methods provide by REST api.
@@ -54,7 +50,7 @@ public class RestIndex {
*/
@GET
@Produces(MediaType.TEXT_HTML)
public String sayHtmlHello() {
public String sayHtmlHello(@Context ServletContext servletContext) {
// TODO Better graphics, add arguments to all methods. (limit, offset, item and so on)
return "<html><title>DSpace REST - index</title>" +
"<body>"