Skip to content

Commit 9cf783f

Browse files
committed
Merge remote-tracking branch 'origin/metafacture-fix-273-addPercentEncodeToUrlEncode'
Complemnets b39a2e8.
2 parents b39a2e8 + f974041 commit 9cf783f

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

metamorph/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ dependencies {
2727
implementation project(':metafacture-javaintegration')
2828
implementation "com.google.guava:guava:${versions.guava}"
2929
implementation "org.slf4j:slf4j-api:${versions.slf4j}"
30-
implementation "org.slf4j:slf4j-api:${versions.slf4j}"
3130
testRuntimeOnly "org.slf4j:slf4j-simple:${versions.slf4j}"
3231
testImplementation "junit:junit:${versions.junit}"
3332
testImplementation "org.mockito:mockito-core:${versions.mockito}"

metamorph/src/main/java/org/metafacture/metamorph/functions/URLEncode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public String process(final String value) {
5050
* Sets a URI escaper with the specified safe characters. The ranges 0..9, a..z and A..Z are always safe
5151
* and should not be specified.
5252
*
53-
* @param safeChars
53+
* @param safeChars the chars which will not be escaped
5454
*/
5555
public void setSafeChars(final String safeChars) {
5656
this.safeChars = safeChars;

metamorph/src/main/resources/schemata/metamorph.xsd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,21 @@
977977
</documentation>
978978
</annotation>
979979
<complexType>
980+
<attribute name="safechars" type="string" use="optional">
981+
<annotation>
982+
<documentation>Chars which will not be escaped. The ranges
983+
0..9, a..z and A..Z are always safe and should not be
984+
specified.
985+
</documentation>
986+
</annotation>
987+
</attribute>
988+
<attribute name="plusforspace" type="boolean" use="optional" default="true">
989+
<annotation>
990+
<documentation>Sets if a space should be converted into a
991+
plus sign "+" or percent escaped as "%20".
992+
</documentation>
993+
</annotation>
994+
</attribute>
980995
</complexType>
981996
</element>
982997

metamorph/src/test/java/org/metafacture/metamorph/functions/URLEncodeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.junit.Test;
2121

2222
/**
23-
* tests {@link ISBN}
23+
* Tests {@link URLEncode}
2424
*
2525
* @author Pascal Christoph (dr0i)
2626
*/

0 commit comments

Comments
 (0)