public class DefaultURICleaner extends Object implements URICleaner
URICleaner
implementation.
This simply finds any strings given by setSearchList(String[])
from a URI string and replace each string in the URI string
by the corresponding strings given by setReplacementList(String[])
.
By default, it replaces a space (" ") by "%20".
Constructor and Description |
---|
DefaultURICleaner()
Zero-argument default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
clean(String uri)
Inspects the specified uri and returns a cleaned uri.
|
void |
setReplacementList(String[] replacementList)
Sets the replace string array to replace URI strings with.
|
void |
setSearchList(String[] searchList)
Sets the search string array to find from URI strings.
|
public void setSearchList(String[] searchList)
searchList
- public void setReplacementList(String[] replacementList)
replacementList
- public String clean(String uri)
clean
in interface URICleaner
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.