public abstract class DisplayURLDecorator extends Object implements ExtensionPoint
DisplayURLProvider. Use cases include
decorating URLs with utm_source etc tracking parameters in order to measure the usage rate of different URLs
generated by Jenkins.ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
DisplayURLDecorator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decorate(DisplayURLContext context,
String url)
Decorates the URL for the provided context.
|
protected abstract Map<String,String> |
parameters(DisplayURLContext context)
Returns a map of query parameters to decorate the URL with.
|
@NonNull protected abstract Map<String,String> parameters(@NonNull DisplayURLContext context)
null value will translate as a query parameter without a value.context - the context within which the URL is being generated.@NonNull public static String decorate(@NonNull DisplayURLContext context, @NonNull String url)
context - the context.url - the URL to decorate.Copyright © 2016–2019. All rights reserved.