Author: andreas
Date: Fri Oct 26 07:49:04 2007
New Revision: 588670
URL: http://svn.apache.org/viewvc?rev=588670&view=rev
Log:
[refactoring] extracted constant
Modified:
lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/cocoon/transformation/ProxyTransformer.java
Modified: lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/cocoon/transformation/ProxyTransformer.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/cocoon/transformation/ProxyTransformer.java?rev=588670&r1=588669&r2=588670&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/cocoon/transformation/ProxyTransformer.java (original)
+++ lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/cocoon/transformation/ProxyTransformer.java Fri Oct 26 07:49:04 2007
@@ -57,6 +57,7 @@
*/
public class ProxyTransformer extends AbstractLinkTransformer {
+ protected static final String ATTRIBUTE_TYPE = "type";
protected static final String URL_TYPE_ABSOLUTE = "absolute";
protected static final String URL_TYPE_RELATIVE = "relative";
protected static final String PARAMETER_URLS = "urls";
@@ -85,7 +86,7 @@
super.configure(config);
Configuration urlConfig = config.getChild(PARAMETER_URLS, false);
if (urlConfig != null) {
- String value = urlConfig.getAttribute("type");
+ String value = urlConfig.getAttribute(ATTRIBUTE_TYPE);
setUrlType(value);
}
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.