[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java
From: |
Tuukka Hastrup |
Subject: |
[Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java |
Date: |
Thu, 08 May 2003 09:19:00 -0400 |
CVSROOT: /cvsroot/storm
Module name: storm
Changes by: Tuukka Hastrup <address@hidden> 03/05/08 09:19:00
Modified files:
org/nongnu/storm/util: HTTPProxy.java
Log message:
backlinks more visible on the top of the page
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/storm/storm/org/nongnu/storm/util/HTTPProxy.java.diff?tr1=1.22&tr2=1.23&r1=text&r2=text
Patches:
Index: storm/org/nongnu/storm/util/HTTPProxy.java
diff -u storm/org/nongnu/storm/util/HTTPProxy.java:1.22
storm/org/nongnu/storm/util/HTTPProxy.java:1.23
--- storm/org/nongnu/storm/util/HTTPProxy.java:1.22 Wed May 7 06:55:10 2003
+++ storm/org/nongnu/storm/util/HTTPProxy.java Thu May 8 09:19:00 2003
@@ -171,27 +171,32 @@
Collector links = idx.getLinksTo(id);
try {
+ // XXX Are we trying to wait for indexing?
Thread.sleep(2000);
} catch(InterruptedException _) {}
if(HTTPProxy.dbg) p("Iter thru links");
- String t = null;
+ String t = "";
synchronized(links) {
for(Iterator iter=links.iterator();
iter.hasNext();) {
HtmlLinkIndex.Link link =
(HtmlLinkIndex.Link)iter.next();
if(HTTPProxy.dbg) p("Link: "+link.linkText);
- if(t == null) t = "";
t += "[<a
href=\""+prefix+link.linkFrom.getURI()+
"\">"+link.linkText+"</a>]<br>";
}
}
- if(t != null) {
- int i = s.indexOf("</body>");
- if(i < 0) i = s.length();
- s = s.substring(0, i) +
"<p><tr><td><small>Backlinks:<br>" +
- t + "</small></p>" + s.substring(i);
+ if(!t.equals("")) {
+ int i = s.indexOf("<body");
+ i = s.indexOf(">", i);
+ if(i < 0) i = 0;
+ else i++;
+ s = s.substring(0, i)
+ + "\n<p><small>Backlinks:<br>"
+ + t
+ + "</small></p>\n"
+ + s.substring(i);
}
}
}
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Hermanni Hyytiälä, 2003/05/05
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Hermanni Hyytiälä, 2003/05/05
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Hermanni Hyytiälä, 2003/05/06
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Tuukka Hastrup, 2003/05/06
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Tuukka Hastrup, 2003/05/06
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java,
Tuukka Hastrup <=
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Tuukka Hastrup, 2003/05/08
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Tuukka Hastrup, 2003/05/08
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Tuukka Hastrup, 2003/05/08
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Tuukka Hastrup, 2003/05/08
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Tuukka Hastrup, 2003/05/13
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Benja Fallenstein, 2003/05/21
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Benja Fallenstein, 2003/05/21
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Benja Fallenstein, 2003/05/22
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Benja Fallenstein, 2003/05/22
- [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java, Benja Fallenstein, 2003/05/22