T
- the type of object to return (eg ExtendedURL
, URL
)@Role
public interface URLNormalizer<T>
URL
object. Another implementation may simply prefix the passed
relative URL with a Servlet Container's webapp name (aka application context name). Note that in general the
implementations will depends on the Container in which XWiki is executing (eg Servlet Container).
It's also important that Normalizers should be independent of URL Scheme formats since they should be usable
for all URL Schemes. Note that Normalizers should not replace ResourceReferenceSerializer
implementations.
Modifier and Type | Method and Description |
---|---|
T |
normalize(ExtendedURL partialURL) |
T normalize(ExtendedURL partialURL)
partialURL
- the partial URL to normalizeCopyright © 2004–2020 XWiki. All rights reserved.