Skip to content

Commit

Permalink
Remove some debug lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Fransiro committed Jul 29, 2016
1 parent 7c466de commit ca96825
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,17 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Level;

import com.google.inject.Singleton;

@Singleton
public class ParseWikipediaService extends HttpServlet{

private static final long serialVersionUID = -8524195705285261839L;
private static final String WIKIPEDIA_PARAM="URL";
private static org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger("Map4RDF");

@SuppressWarnings("static-access")
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
log.log(Level.FATAL, "ESCRIBE ALGO!!!!");
try {
resp.setContentType("text/html; charset=UTF-8");
String URL = getWikipediaURL(req);
Expand All @@ -54,7 +50,6 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se
wikipediaCon.addRequestProperty("Content-Type", "text/plain; charset=utf-8");
wikipediaCon.setRequestProperty("Content-Type", "text/plain; charset=utf-8");
wikipediaCon.setRequestProperty("content-type", "text/plain; charset=utf-8");
log.log(Level.FATAL, "content-type:"+wikipediaCon.getContentType());
wikipediaCon.connect();
BufferedReader buffReader = new BufferedReader(
new InputStreamReader(wikipediaCon.getInputStream(),"UTF-8"));
Expand Down

0 comments on commit ca96825

Please sign in to comment.