You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2004/06/14 23:30:56 UTC

cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/search/handlers URLToDocHandler.java

taylor      2004/06/14 14:30:56

  Modified:    src/java/org/apache/jetspeed/services/search/handlers
                        URLToDocHandler.java
  Log:
  updated to HttpClient 2.0 API
  
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.6       +3 -3      jakarta-jetspeed/src/java/org/apache/jetspeed/services/search/handlers/URLToDocHandler.java
  
  Index: URLToDocHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/search/handlers/URLToDocHandler.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- URLToDocHandler.java	15 May 2004 19:25:56 -0000	1.5
  +++ URLToDocHandler.java	14 Jun 2004 21:30:56 -0000	1.6
  @@ -98,9 +98,9 @@
               String content = null;
               try
               {
  -                content = method.getDataAsString();
  +                content = method.getResponseBodyAsString();
               }
  -            catch (IOException ioe)
  +            catch (Exception ioe)
               {
                   logger.error("Getting content for " + pageToAdd.toString(), ioe);
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org