nicolaken 2002/06/14 09:29:23 Modified: . Tag: cocoon_2_0_3_branch changes.xml src/scratchpad/src/org/apache/cocoon/generation Tag: cocoon_2_0_3_branch LinkStatusGenerator.java Log: <action dev="NKB" type="update"> Moved linkstatus sample and LinkStatusGenerator to core from scratchpad; added a link to test the documentation links on the Cocoon demo webapp frontpage. </action> <action dev="NKB" type="fix"> Removed Java 1.3+ only method (URL.getPath()) from LinkStatusGenerator. </action> Revision Changes Path No revision No revision 1.138.2.20 +4 -1 xml-cocoon2/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/changes.xml,v retrieving revision 1.138.2.19 retrieving revision 1.138.2.20 diff -u -r1.138.2.19 -r1.138.2.20 --- changes.xml 11 Jun 2002 13:45:36 -0000 1.138.2.19 +++ changes.xml 14 Jun 2002 16:29:22 -0000 1.138.2.20 @@ -39,6 +39,9 @@ <release version="@version@" date="@date@"> + <action dev="NKB" type="fix"> + Removed Java 1.3+ only method (URL.getPath()) from LinkStatusGenerator. + </action> <action dev="SW" type="update"> CocoonServlet no longer builds its own classloader. Also, it no more sets the thread's context classloader unless the "init-classloader" parameter is true. To have Cocoon use its own classloader, No revision No revision 1.1.2.1 +4 -3 xml-cocoon2/src/scratchpad/src/org/apache/cocoon/generation/Attic/LinkStatusGenerator.java Index: LinkStatusGenerator.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/generation/Attic/LinkStatusGenerator.java,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -u -r1.1 -r1.1.2.1 --- LinkStatusGenerator.java 26 Mar 2002 08:10:58 -0000 1.1 +++ LinkStatusGenerator.java 14 Jun 2002 16:29:23 -0000 1.1.2.1 @@ -34,7 +34,8 @@ * Generates a list of links that are reachable from the src and their status. * * @author Michael Homeijer - */ + * @author Nicola Ken Barozzi ([EMAIL PROTECTED]) +*/ public class LinkStatusGenerator extends ComposerGenerator implements Recyclable, Configurable { /** The URI of the namespace of this generator. */ @@ -516,8 +517,8 @@ // Output url, referrer, content-type, status, message for traversable url's // add prefix and query to get data from the linkserializer. try { - URL links_url = new URL(url, url.getPath() - + ((url.getPath().indexOf("?") == -1) ? "?" : "&") + URL links_url = new URL(url.toExternalForm() + + ((url.toExternalForm().indexOf("?") == -1) ? "?" : "&") + linkViewQuery); URLConnection links_url_connection = links_url.openConnection(); HttpURLConnection h = (HttpURLConnection)links_url_connection;
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]