commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r952406 [16/42] - in /websites/production/commons/content/proper/commons-email: ./ apidocs/ apidocs/org/apache/commons/mail/ apidocs/org/apache/commons/mail/class-use/ apidocs/org/apache/commons/mail/resolver/ apidocs/org/apache/commons/mai...
Date Sat, 23 May 2015 06:51:00 GMT
Modified: websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/ImageHtmlEmail.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/ImageHtmlEmail.html
(original)
+++ websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/ImageHtmlEmail.html
Sat May 23 06:50:57 2015
@@ -49,7 +49,7 @@
 <span class="sourceLineNo">041</span> * &lt;/p&gt;<a name="line.41"></a>
 <span class="sourceLineNo">042</span> *<a name="line.42"></a>
 <span class="sourceLineNo">043</span> * @since 1.3<a name="line.43"></a>
-<span class="sourceLineNo">044</span> * @version $Id: ImageHtmlEmail.java 1606709
2014-06-30 12:26:06Z ggregory $<a name="line.44"></a>
+<span class="sourceLineNo">044</span> * @version $Id: ImageHtmlEmail.java 1665692
2015-03-10 20:59:29Z tn $<a name="line.44"></a>
 <span class="sourceLineNo">045</span> */<a name="line.45"></a>
 <span class="sourceLineNo">046</span>public class ImageHtmlEmail extends HtmlEmail<a
name="line.46"></a>
 <span class="sourceLineNo">047</span>{<a name="line.47"></a>
@@ -180,7 +180,7 @@
 <span class="sourceLineNo">172</span><a name="line.172"></a>
 <span class="sourceLineNo">173</span>                if (cid == null)<a name="line.173"></a>
 <span class="sourceLineNo">174</span>                {<a name="line.174"></a>
-<span class="sourceLineNo">175</span>                    cid = embed(dataSource,
dataSource.getName());<a name="line.175"></a>
+<span class="sourceLineNo">175</span>                    cid = embed(dataSource,
name);<a name="line.175"></a>
 <span class="sourceLineNo">176</span>                    cidCache.put(name, cid);<a
name="line.176"></a>
 <span class="sourceLineNo">177</span>                }<a name="line.177"></a>
 <span class="sourceLineNo">178</span><a name="line.178"></a>
@@ -264,4 +264,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/MultiPartEmail.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/MultiPartEmail.html
(original)
+++ websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/MultiPartEmail.html
Sat May 23 06:50:57 2015
@@ -52,7 +52,7 @@
 <span class="sourceLineNo">044</span> * different attach() methods.<a name="line.44"></a>
 <span class="sourceLineNo">045</span> *<a name="line.45"></a>
 <span class="sourceLineNo">046</span> * @since 1.0<a name="line.46"></a>
-<span class="sourceLineNo">047</span> * @version $Id: MultiPartEmail.java 1606710
2014-06-30 12:29:13Z ggregory $<a name="line.47"></a>
+<span class="sourceLineNo">047</span> * @version $Id: MultiPartEmail.java 1629057
2014-10-02 19:51:48Z tn $<a name="line.47"></a>
 <span class="sourceLineNo">048</span> */<a name="line.48"></a>
 <span class="sourceLineNo">049</span>public class MultiPartEmail extends Email<a
name="line.49"></a>
 <span class="sourceLineNo">050</span>{<a name="line.50"></a>
@@ -152,7 +152,7 @@
 <span class="sourceLineNo">144</span>     */<a name="line.144"></a>
 <span class="sourceLineNo">145</span>    public Email addPart(final MimeMultipart
multipart, final int index) throws EmailException<a name="line.145"></a>
 <span class="sourceLineNo">146</span>    {<a name="line.146"></a>
-<span class="sourceLineNo">147</span>            final BodyPart bodyPart = createBodyPart();<a
name="line.147"></a>
+<span class="sourceLineNo">147</span>        final BodyPart bodyPart = createBodyPart();<a
name="line.147"></a>
 <span class="sourceLineNo">148</span>        try<a name="line.148"></a>
 <span class="sourceLineNo">149</span>        {<a name="line.149"></a>
 <span class="sourceLineNo">150</span>            bodyPart.setContent(multipart);<a
name="line.150"></a>
@@ -659,4 +659,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/SimpleEmail.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/SimpleEmail.html
(original)
+++ websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/SimpleEmail.html
Sat May 23 06:50:57 2015
@@ -117,4 +117,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceBaseResolver.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceBaseResolver.html
(original)
+++ websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceBaseResolver.html
Sat May 23 06:50:57 2015
@@ -161,4 +161,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceClassPathResolver.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceClassPathResolver.html
(original)
+++ websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceClassPathResolver.html
Sat May 23 06:50:57 2015
@@ -35,7 +35,7 @@
 <span class="sourceLineNo">027</span> * Creates a &lt;code&gt;DataSource&lt;/code&gt;
based on an class path.<a name="line.27"></a>
 <span class="sourceLineNo">028</span> *<a name="line.28"></a>
 <span class="sourceLineNo">029</span> * @since 1.3<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * @version $Id: DataSourceClassPathResolver.java
1606709 2014-06-30 12:26:06Z ggregory $<a name="line.30"></a>
+<span class="sourceLineNo">030</span> * @version $Id: DataSourceClassPathResolver.java
1632033 2014-10-15 13:53:24Z ggregory $<a name="line.30"></a>
 <span class="sourceLineNo">031</span> */<a name="line.31"></a>
 <span class="sourceLineNo">032</span>public class DataSourceClassPathResolver
extends DataSourceBaseResolver<a name="line.32"></a>
 <span class="sourceLineNo">033</span>{<a name="line.33"></a>
@@ -113,41 +113,35 @@
 <span class="sourceLineNo">105</span>                    {<a name="line.105"></a>
 <span class="sourceLineNo">106</span>                        return null;<a
name="line.106"></a>
 <span class="sourceLineNo">107</span>                    }<a name="line.107"></a>
-<span class="sourceLineNo">108</span>                    else<a name="line.108"></a>
-<span class="sourceLineNo">109</span>                    {<a name="line.109"></a>
-<span class="sourceLineNo">110</span>                        throw new IOException("The
following class path resource was not found : " + resourceLocation);<a name="line.110"></a>
-<span class="sourceLineNo">111</span>                    }<a name="line.111"></a>
-<span class="sourceLineNo">112</span>                }<a name="line.112"></a>
-<span class="sourceLineNo">113</span>            }<a name="line.113"></a>
-<span class="sourceLineNo">114</span><a name="line.114"></a>
-<span class="sourceLineNo">115</span><a name="line.115"></a>
-<span class="sourceLineNo">116</span>            return result;<a name="line.116"></a>
-<span class="sourceLineNo">117</span>        }<a name="line.117"></a>
-<span class="sourceLineNo">118</span>        catch (final IOException e)<a
name="line.118"></a>
-<span class="sourceLineNo">119</span>        {<a name="line.119"></a>
-<span class="sourceLineNo">120</span>            if (isLenient)<a name="line.120"></a>
-<span class="sourceLineNo">121</span>            {<a name="line.121"></a>
-<span class="sourceLineNo">122</span>                return null;<a name="line.122"></a>
-<span class="sourceLineNo">123</span>            }<a name="line.123"></a>
-<span class="sourceLineNo">124</span>            else<a name="line.124"></a>
-<span class="sourceLineNo">125</span>            {<a name="line.125"></a>
-<span class="sourceLineNo">126</span>                throw e;<a name="line.126"></a>
-<span class="sourceLineNo">127</span>            }<a name="line.127"></a>
-<span class="sourceLineNo">128</span>        }<a name="line.128"></a>
-<span class="sourceLineNo">129</span>    }<a name="line.129"></a>
-<span class="sourceLineNo">130</span><a name="line.130"></a>
-<span class="sourceLineNo">131</span>    /**<a name="line.131"></a>
-<span class="sourceLineNo">132</span>     * Returns the resource name for a given
resource location.<a name="line.132"></a>
-<span class="sourceLineNo">133</span>     *<a name="line.133"></a>
-<span class="sourceLineNo">134</span>     * @param resourceLocation the resource
location<a name="line.134"></a>
-<span class="sourceLineNo">135</span>     * @return {@link #getClassPathBase()}
+ {@code resourceLocation}<a name="line.135"></a>
-<span class="sourceLineNo">136</span>     * @see #getClassPathBase()<a name="line.136"></a>
-<span class="sourceLineNo">137</span>     */<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    private String getResourceName(final
String resourceLocation)<a name="line.138"></a>
-<span class="sourceLineNo">139</span>    {<a name="line.139"></a>
-<span class="sourceLineNo">140</span>        return (getClassPathBase() + resourceLocation).replaceAll("//",
"/");<a name="line.140"></a>
-<span class="sourceLineNo">141</span>    }<a name="line.141"></a>
-<span class="sourceLineNo">142</span>}<a name="line.142"></a>
+<span class="sourceLineNo">108</span>                    throw new IOException("The
following class path resource was not found : " + resourceLocation);<a name="line.108"></a>
+<span class="sourceLineNo">109</span>                }<a name="line.109"></a>
+<span class="sourceLineNo">110</span>            }<a name="line.110"></a>
+<span class="sourceLineNo">111</span><a name="line.111"></a>
+<span class="sourceLineNo">112</span><a name="line.112"></a>
+<span class="sourceLineNo">113</span>            return result;<a name="line.113"></a>
+<span class="sourceLineNo">114</span>        }<a name="line.114"></a>
+<span class="sourceLineNo">115</span>        catch (final IOException e)<a
name="line.115"></a>
+<span class="sourceLineNo">116</span>        {<a name="line.116"></a>
+<span class="sourceLineNo">117</span>            if (isLenient)<a name="line.117"></a>
+<span class="sourceLineNo">118</span>            {<a name="line.118"></a>
+<span class="sourceLineNo">119</span>                return null;<a name="line.119"></a>
+<span class="sourceLineNo">120</span>            }<a name="line.120"></a>
+<span class="sourceLineNo">121</span>            throw e;<a name="line.121"></a>
+<span class="sourceLineNo">122</span>        }<a name="line.122"></a>
+<span class="sourceLineNo">123</span>    }<a name="line.123"></a>
+<span class="sourceLineNo">124</span><a name="line.124"></a>
+<span class="sourceLineNo">125</span>    /**<a name="line.125"></a>
+<span class="sourceLineNo">126</span>     * Returns the resource name for a given
resource location.<a name="line.126"></a>
+<span class="sourceLineNo">127</span>     *<a name="line.127"></a>
+<span class="sourceLineNo">128</span>     * @param resourceLocation the resource
location<a name="line.128"></a>
+<span class="sourceLineNo">129</span>     * @return {@link #getClassPathBase()}
+ {@code resourceLocation}<a name="line.129"></a>
+<span class="sourceLineNo">130</span>     * @see #getClassPathBase()<a name="line.130"></a>
+<span class="sourceLineNo">131</span>     */<a name="line.131"></a>
+<span class="sourceLineNo">132</span>    private String getResourceName(final
String resourceLocation)<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    {<a name="line.133"></a>
+<span class="sourceLineNo">134</span>        return (getClassPathBase() + resourceLocation).replaceAll("//",
"/");<a name="line.134"></a>
+<span class="sourceLineNo">135</span>    }<a name="line.135"></a>
+<span class="sourceLineNo">136</span>}<a name="line.136"></a>
 
 
 
@@ -211,4 +205,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceCompositeResolver.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceCompositeResolver.html
(original)
+++ websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceCompositeResolver.html
Sat May 23 06:50:57 2015
@@ -34,7 +34,7 @@
 <span class="sourceLineNo">026</span> * multiple locations such as the classpath,
the file system or an URL.<a name="line.26"></a>
 <span class="sourceLineNo">027</span> *<a name="line.27"></a>
 <span class="sourceLineNo">028</span> * @since 1.3<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * @version $Id: DataSourceCompositeResolver.java
1606709 2014-06-30 12:26:06Z ggregory $<a name="line.29"></a>
+<span class="sourceLineNo">029</span> * @version $Id: DataSourceCompositeResolver.java
1632036 2014-10-15 13:55:10Z ggregory $<a name="line.29"></a>
 <span class="sourceLineNo">030</span> */<a name="line.30"></a>
 <span class="sourceLineNo">031</span>public class DataSourceCompositeResolver
extends DataSourceBaseResolver<a name="line.31"></a>
 <span class="sourceLineNo">032</span>{<a name="line.32"></a>
@@ -87,37 +87,31 @@
 <span class="sourceLineNo">079</span>        {<a name="line.79"></a>
 <span class="sourceLineNo">080</span>            return result;<a name="line.80"></a>
 <span class="sourceLineNo">081</span>        }<a name="line.81"></a>
-<span class="sourceLineNo">082</span>        else<a name="line.82"></a>
-<span class="sourceLineNo">083</span>        {<a name="line.83"></a>
-<span class="sourceLineNo">084</span>            throw new IOException("The following
resource was not found : " + resourceLocation);<a name="line.84"></a>
-<span class="sourceLineNo">085</span>        }<a name="line.85"></a>
-<span class="sourceLineNo">086</span><a name="line.86"></a>
-<span class="sourceLineNo">087</span>    }<a name="line.87"></a>
-<span class="sourceLineNo">088</span><a name="line.88"></a>
-<span class="sourceLineNo">089</span>    /** {@inheritDoc} */<a name="line.89"></a>
-<span class="sourceLineNo">090</span>    public DataSource resolve(final String
resourceLocation, final boolean isLenient) throws IOException<a name="line.90"></a>
-<span class="sourceLineNo">091</span>    {<a name="line.91"></a>
-<span class="sourceLineNo">092</span>        for (int i = 0; i &lt; getDataSourceResolvers().length;
i++)<a name="line.92"></a>
-<span class="sourceLineNo">093</span>        {<a name="line.93"></a>
-<span class="sourceLineNo">094</span>            final DataSourceResolver dataSourceResolver
= getDataSourceResolvers()[i];<a name="line.94"></a>
-<span class="sourceLineNo">095</span>            final DataSource dataSource
= dataSourceResolver.resolve(resourceLocation, isLenient);<a name="line.95"></a>
-<span class="sourceLineNo">096</span><a name="line.96"></a>
-<span class="sourceLineNo">097</span>            if (dataSource != null)<a
name="line.97"></a>
-<span class="sourceLineNo">098</span>            {<a name="line.98"></a>
-<span class="sourceLineNo">099</span>                return dataSource;<a
name="line.99"></a>
-<span class="sourceLineNo">100</span>            }<a name="line.100"></a>
-<span class="sourceLineNo">101</span>        }<a name="line.101"></a>
-<span class="sourceLineNo">102</span><a name="line.102"></a>
-<span class="sourceLineNo">103</span>        if (isLenient)<a name="line.103"></a>
-<span class="sourceLineNo">104</span>        {<a name="line.104"></a>
-<span class="sourceLineNo">105</span>            return null;<a name="line.105"></a>
-<span class="sourceLineNo">106</span>        }<a name="line.106"></a>
-<span class="sourceLineNo">107</span>        else<a name="line.107"></a>
-<span class="sourceLineNo">108</span>        {<a name="line.108"></a>
-<span class="sourceLineNo">109</span>            throw new IOException("The following
resource was not found : " + resourceLocation);<a name="line.109"></a>
-<span class="sourceLineNo">110</span>        }<a name="line.110"></a>
-<span class="sourceLineNo">111</span>    }<a name="line.111"></a>
-<span class="sourceLineNo">112</span>}<a name="line.112"></a>
+<span class="sourceLineNo">082</span>        throw new IOException("The following
resource was not found : " + resourceLocation);<a name="line.82"></a>
+<span class="sourceLineNo">083</span><a name="line.83"></a>
+<span class="sourceLineNo">084</span>    }<a name="line.84"></a>
+<span class="sourceLineNo">085</span><a name="line.85"></a>
+<span class="sourceLineNo">086</span>    /** {@inheritDoc} */<a name="line.86"></a>
+<span class="sourceLineNo">087</span>    public DataSource resolve(final String
resourceLocation, final boolean isLenient) throws IOException<a name="line.87"></a>
+<span class="sourceLineNo">088</span>    {<a name="line.88"></a>
+<span class="sourceLineNo">089</span>        for (int i = 0; i &lt; getDataSourceResolvers().length;
i++)<a name="line.89"></a>
+<span class="sourceLineNo">090</span>        {<a name="line.90"></a>
+<span class="sourceLineNo">091</span>            final DataSourceResolver dataSourceResolver
= getDataSourceResolvers()[i];<a name="line.91"></a>
+<span class="sourceLineNo">092</span>            final DataSource dataSource
= dataSourceResolver.resolve(resourceLocation, isLenient);<a name="line.92"></a>
+<span class="sourceLineNo">093</span><a name="line.93"></a>
+<span class="sourceLineNo">094</span>            if (dataSource != null)<a
name="line.94"></a>
+<span class="sourceLineNo">095</span>            {<a name="line.95"></a>
+<span class="sourceLineNo">096</span>                return dataSource;<a
name="line.96"></a>
+<span class="sourceLineNo">097</span>            }<a name="line.97"></a>
+<span class="sourceLineNo">098</span>        }<a name="line.98"></a>
+<span class="sourceLineNo">099</span><a name="line.99"></a>
+<span class="sourceLineNo">100</span>        if (isLenient)<a name="line.100"></a>
+<span class="sourceLineNo">101</span>        {<a name="line.101"></a>
+<span class="sourceLineNo">102</span>            return null;<a name="line.102"></a>
+<span class="sourceLineNo">103</span>        }<a name="line.103"></a>
+<span class="sourceLineNo">104</span>        throw new IOException("The following
resource was not found : " + resourceLocation);<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    }<a name="line.105"></a>
+<span class="sourceLineNo">106</span>}<a name="line.106"></a>
 
 
 
@@ -181,4 +175,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceFileResolver.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceFileResolver.html
(original)
+++ websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceFileResolver.html
Sat May 23 06:50:57 2015
@@ -181,4 +181,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceUrlResolver.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceUrlResolver.html
(original)
+++ websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/resolver/DataSourceUrlResolver.html
Sat May 23 06:50:57 2015
@@ -34,7 +34,7 @@
 <span class="sourceLineNo">026</span> * Creates a &lt;code&gt;DataSource&lt;/code&gt;
based on an URL.<a name="line.26"></a>
 <span class="sourceLineNo">027</span> *<a name="line.27"></a>
 <span class="sourceLineNo">028</span> * @since 1.3<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * @version $Id: DataSourceUrlResolver.java
1606709 2014-06-30 12:26:06Z ggregory $<a name="line.29"></a>
+<span class="sourceLineNo">029</span> * @version $Id: DataSourceUrlResolver.java
1632035 2014-10-15 13:54:53Z ggregory $<a name="line.29"></a>
 <span class="sourceLineNo">030</span> */<a name="line.30"></a>
 <span class="sourceLineNo">031</span>public class DataSourceUrlResolver extends
DataSourceBaseResolver<a name="line.31"></a>
 <span class="sourceLineNo">032</span>{<a name="line.32"></a>
@@ -102,45 +102,42 @@
 <span class="sourceLineNo">094</span>            {<a name="line.94"></a>
 <span class="sourceLineNo">095</span>                return null;<a name="line.95"></a>
 <span class="sourceLineNo">096</span>            }<a name="line.96"></a>
-<span class="sourceLineNo">097</span>            else<a name="line.97"></a>
-<span class="sourceLineNo">098</span>            {<a name="line.98"></a>
-<span class="sourceLineNo">099</span>                throw e;<a name="line.99"></a>
-<span class="sourceLineNo">100</span>            }<a name="line.100"></a>
-<span class="sourceLineNo">101</span>        }<a name="line.101"></a>
-<span class="sourceLineNo">102</span>    }<a name="line.102"></a>
-<span class="sourceLineNo">103</span><a name="line.103"></a>
-<span class="sourceLineNo">104</span>    /**<a name="line.104"></a>
-<span class="sourceLineNo">105</span>     * Create an URL based on a base URL
and a resource location suitable for loading<a name="line.105"></a>
-<span class="sourceLineNo">106</span>     * the resource.<a name="line.106"></a>
-<span class="sourceLineNo">107</span>     *<a name="line.107"></a>
-<span class="sourceLineNo">108</span>     * @param resourceLocation a resource
location<a name="line.108"></a>
-<span class="sourceLineNo">109</span>     * @return the corresponding URL<a
name="line.109"></a>
-<span class="sourceLineNo">110</span>     * @throws java.net.MalformedURLException
creating the URL failed<a name="line.110"></a>
-<span class="sourceLineNo">111</span>     */<a name="line.111"></a>
-<span class="sourceLineNo">112</span>    protected URL createUrl(final String
resourceLocation) throws MalformedURLException<a name="line.112"></a>
-<span class="sourceLineNo">113</span>    {<a name="line.113"></a>
-<span class="sourceLineNo">114</span>        // if we get an non-existing base
url than the resource can<a name="line.114"></a>
-<span class="sourceLineNo">115</span>        // be directly used to create an
URL<a name="line.115"></a>
-<span class="sourceLineNo">116</span>        if (baseUrl == null)<a name="line.116"></a>
-<span class="sourceLineNo">117</span>        {<a name="line.117"></a>
-<span class="sourceLineNo">118</span>            return new URL(resourceLocation);<a
name="line.118"></a>
-<span class="sourceLineNo">119</span>        }<a name="line.119"></a>
-<span class="sourceLineNo">120</span><a name="line.120"></a>
-<span class="sourceLineNo">121</span>        // if we get an non-existing location
what we shall do?<a name="line.121"></a>
-<span class="sourceLineNo">122</span>        if (resourceLocation == null ||
resourceLocation.length() == 0)<a name="line.122"></a>
-<span class="sourceLineNo">123</span>        {<a name="line.123"></a>
-<span class="sourceLineNo">124</span>            throw new IllegalArgumentException("No
resource defined");<a name="line.124"></a>
-<span class="sourceLineNo">125</span>        }<a name="line.125"></a>
-<span class="sourceLineNo">126</span><a name="line.126"></a>
-<span class="sourceLineNo">127</span>        // if we get a stand-alone resource
than ignore the base url<a name="line.127"></a>
-<span class="sourceLineNo">128</span>        if (isFileUrl(resourceLocation)
|| isHttpUrl(resourceLocation))<a name="line.128"></a>
-<span class="sourceLineNo">129</span>        {<a name="line.129"></a>
-<span class="sourceLineNo">130</span>            return new URL(resourceLocation);<a
name="line.130"></a>
-<span class="sourceLineNo">131</span>        }<a name="line.131"></a>
-<span class="sourceLineNo">132</span><a name="line.132"></a>
-<span class="sourceLineNo">133</span>        return new URL(getBaseUrl(), resourceLocation.replaceAll("&amp;amp;",
"&amp;"));<a name="line.133"></a>
-<span class="sourceLineNo">134</span>    }<a name="line.134"></a>
-<span class="sourceLineNo">135</span>}<a name="line.135"></a>
+<span class="sourceLineNo">097</span>            throw e;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>        }<a name="line.98"></a>
+<span class="sourceLineNo">099</span>    }<a name="line.99"></a>
+<span class="sourceLineNo">100</span><a name="line.100"></a>
+<span class="sourceLineNo">101</span>    /**<a name="line.101"></a>
+<span class="sourceLineNo">102</span>     * Create an URL based on a base URL
and a resource location suitable for loading<a name="line.102"></a>
+<span class="sourceLineNo">103</span>     * the resource.<a name="line.103"></a>
+<span class="sourceLineNo">104</span>     *<a name="line.104"></a>
+<span class="sourceLineNo">105</span>     * @param resourceLocation a resource
location<a name="line.105"></a>
+<span class="sourceLineNo">106</span>     * @return the corresponding URL<a
name="line.106"></a>
+<span class="sourceLineNo">107</span>     * @throws java.net.MalformedURLException
creating the URL failed<a name="line.107"></a>
+<span class="sourceLineNo">108</span>     */<a name="line.108"></a>
+<span class="sourceLineNo">109</span>    protected URL createUrl(final String
resourceLocation) throws MalformedURLException<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    {<a name="line.110"></a>
+<span class="sourceLineNo">111</span>        // if we get an non-existing base
url than the resource can<a name="line.111"></a>
+<span class="sourceLineNo">112</span>        // be directly used to create an
URL<a name="line.112"></a>
+<span class="sourceLineNo">113</span>        if (baseUrl == null)<a name="line.113"></a>
+<span class="sourceLineNo">114</span>        {<a name="line.114"></a>
+<span class="sourceLineNo">115</span>            return new URL(resourceLocation);<a
name="line.115"></a>
+<span class="sourceLineNo">116</span>        }<a name="line.116"></a>
+<span class="sourceLineNo">117</span><a name="line.117"></a>
+<span class="sourceLineNo">118</span>        // if we get an non-existing location
what we shall do?<a name="line.118"></a>
+<span class="sourceLineNo">119</span>        if (resourceLocation == null ||
resourceLocation.length() == 0)<a name="line.119"></a>
+<span class="sourceLineNo">120</span>        {<a name="line.120"></a>
+<span class="sourceLineNo">121</span>            throw new IllegalArgumentException("No
resource defined");<a name="line.121"></a>
+<span class="sourceLineNo">122</span>        }<a name="line.122"></a>
+<span class="sourceLineNo">123</span><a name="line.123"></a>
+<span class="sourceLineNo">124</span>        // if we get a stand-alone resource
than ignore the base url<a name="line.124"></a>
+<span class="sourceLineNo">125</span>        if (isFileUrl(resourceLocation)
|| isHttpUrl(resourceLocation))<a name="line.125"></a>
+<span class="sourceLineNo">126</span>        {<a name="line.126"></a>
+<span class="sourceLineNo">127</span>            return new URL(resourceLocation);<a
name="line.127"></a>
+<span class="sourceLineNo">128</span>        }<a name="line.128"></a>
+<span class="sourceLineNo">129</span><a name="line.129"></a>
+<span class="sourceLineNo">130</span>        return new URL(getBaseUrl(), resourceLocation.replaceAll("&amp;amp;",
"&amp;"));<a name="line.130"></a>
+<span class="sourceLineNo">131</span>    }<a name="line.131"></a>
+<span class="sourceLineNo">132</span>}<a name="line.132"></a>
 
 
 
@@ -204,4 +201,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>



Mime
View raw message