Interface UrlPrefixer
-
- All Known Implementing Classes:
UrlHandler
public interface UrlPrefixerPrefix urls - or not depending on internal state- Author:
- douglm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringprefix(String val)Return an appropriately prefixed url.
-
-
-
Method Detail
-
prefix
String prefix(String val)
Return an appropriately prefixed url. The parameter url will be absolute or relative. If relative it may be prefixed with the context path which we need to remove.We're doing this because some clients don't handle absolute urls (a violation of the spec)
- Parameters:
val- to prefix- Returns:
- String
- Throws:
RuntimeException- on error
-
-