1515import javax .servlet .http .HttpServletRequest ;
1616import javax .servlet .http .HttpServletResponse ;
1717
18- import org .apache .log4j .Level ;
19-
2018import com .google .inject .Singleton ;
2119
2220@ Singleton
2321public class ParseWikipediaService extends HttpServlet {
2422
2523 private static final long serialVersionUID = -8524195705285261839L ;
2624 private static final String WIKIPEDIA_PARAM ="URL" ;
27- private static org .apache .log4j .Logger log = org .apache .log4j .Logger .getLogger ("Map4RDF" );
2825
2926 @ SuppressWarnings ("static-access" )
3027 @ Override
3128 protected void doGet (HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException {
32- log .log (Level .FATAL , "ESCRIBE ALGO!!!!" );
3329 try {
3430 resp .setContentType ("text/html; charset=UTF-8" );
3531 String URL = getWikipediaURL (req );
@@ -54,7 +50,6 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se
5450 wikipediaCon .addRequestProperty ("Content-Type" , "text/plain; charset=utf-8" );
5551 wikipediaCon .setRequestProperty ("Content-Type" , "text/plain; charset=utf-8" );
5652 wikipediaCon .setRequestProperty ("content-type" , "text/plain; charset=utf-8" );
57- log .log (Level .FATAL , "content-type:" +wikipediaCon .getContentType ());
5853 wikipediaCon .connect ();
5954 BufferedReader buffReader = new BufferedReader (
6055 new InputStreamReader (wikipediaCon .getInputStream (),"UTF-8" ));
0 commit comments