
Package ca.uhn.fhir.util
Class UrlPathTokenizer
- java.lang.Object
-
- ca.uhn.fhir.util.UrlPathTokenizer
-
public class UrlPathTokenizer extends Object
-
-
Constructor Summary
Constructors Constructor Description UrlPathTokenizer(String theRequestPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreTokens()
String
nextTokenUnescapedAndSanitized()
Returns the next portion.
-
-
-
Constructor Detail
-
UrlPathTokenizer
public UrlPathTokenizer(String theRequestPath)
-
-
Method Detail
-
hasMoreTokens
public boolean hasMoreTokens()
-
nextTokenUnescapedAndSanitized
public String nextTokenUnescapedAndSanitized()
Returns the next portion. Any URL-encoding is undone, but we will HTML encode the < and " marks since they are both not useful un URL paths in FHIR and potentially represent injection attacks.- See Also:
UrlUtil#sanitizeUrlPart(String)
,UrlUtil.unescape(String)
-
-