Package org.apache.cxf.common.util
Class UrlUtils
java.lang.Object
org.apache.cxf.common.util.UrlUtils
Utility class for decoding and encoding URLs
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringReturn everything in the path up to the last slash in a URI.Create a map from String to String that represents the contents of the query portion of a URL.static StringpathDecode(String value) URL path segments may contain '+' symbols which should not be decoded into ' ' This method replaces '+' with %2B and delegates to URLDecoderstatic Stringstatic StringDecodes using URLDecoder - use when queries or form post values are decodedstatic Stringstatic String
- 
Method Details- 
urlEncode
- 
urlEncode
- 
urlDecodeDecodes using URLDecoder - use when queries or form post values are decoded- Parameters:
- value- value to decode
- enc- encoding
 
- 
urlDecode
- 
pathDecodeURL path segments may contain '+' symbols which should not be decoded into ' ' This method replaces '+' with %2B and delegates to URLDecoder- Parameters:
- value- value to decode
 
- 
parseQueryStringCreate a map from String to String that represents the contents of the query portion of a URL. For each x=y, x is the key and y is the value.- Parameters:
- s- the query part of the URI.
- Returns:
- the map.
 
- 
getStemReturn everything in the path up to the last slash in a URI.- Parameters:
- baseURI-
- Returns:
- the trailing
 
 
-