Skip to content

Commit

Permalink
Committing last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dancanangwenyi committed May 17, 2019
1 parent ee22251 commit 4cbf107
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
package com.mycompany.cassiopeia.ejb;

import com.mycompany.cassiopeia.entity.Cancer;
import java.util.HashMap;
import javax.persistence.*;
import java.util.List;
import javax.ejb.Stateless;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@

import com.mycompany.cassiopeia.ejb.cancerRepository;
import com.mycompany.cassiopeia.entity.Cancer;
import java.util.HashMap;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.Produces;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PUT;
import javax.ws.rs.core.MediaType;

/**
Expand All @@ -44,31 +40,10 @@ public boolean addCancers(List<Cancer> cancers){
return crBean.addListCancers(cancers);
}

@Context
private UriInfo context;

/**
* Creates a new instance of CancerResource
*/
public CancerResource() {
}
/**
* Retrieves representation of an instance of com.mycompany.cassiopeia.CancerResource
* @return an instance of java.lang.String
*/
// @GET
// @Produces(MediaType.TEXT_HTML)
// public String getHtml() {
// //TODO return proper representation object
// //throw new UnsupportedOperationException();
// return "<html><body><h1>Hello World!</body></h1></html>";
// }

/**
* PUT method for updating or creating an instance of CancerResource
* @param content representation for the resource
*/
@PUT
public void putHtml(String content) {
}
}

0 comments on commit 4cbf107

Please sign in to comment.