T - the source type to resolve into a urlpublic abstract class AbstractUrlResolver<T> extends java.lang.Object implements UrlResolver<T>
| Constructor and Description |
|---|
AbstractUrlResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getKey(T source)
Get the cache key for the source instance.
|
protected ThreadContextService |
getThreadContextService() |
java.lang.String |
resolve(T source)
Resolve the url path for the source type.
|
protected abstract java.lang.String |
resolveInternal(T source)
Resolve the url path for the source type.
|
void |
setThreadContextService(ThreadContextService threadContextService) |
protected java.lang.String |
urlEncode(java.lang.String source)
Url encodes a string
|
protected java.lang.String |
urlSafe(java.lang.String text)
Encode string with UTF8 encoding and then convert a string into a URL safe version of the string.
|
protected ThreadContextService getThreadContextService()
public void setThreadContextService(ThreadContextService threadContextService)
protected java.lang.String urlSafe(java.lang.String text)
text - the text to sanitizeprotected java.lang.String urlEncode(java.lang.String source)
source - A string to encodeprotected java.lang.String getKey(T source)
source - the source instancepublic java.lang.String resolve(T source)
UrlResolverresolve in interface UrlResolver<T>source - the source type.protected abstract java.lang.String resolveInternal(T source)
source - the source type.Copyright © 2018 SAP SE. All Rights Reserved.