Package jenkins.console
Class DefaultConsoleUrlProvider
java.lang.Object
jenkins.console.DefaultConsoleUrlProvider
- All Implemented Interfaces:
- Describable<ConsoleUrlProvider>,- ConsoleUrlProvider
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class DefaultConsoleUrlProvider
extends Object
implements ConsoleUrlProvider
Default implementation of 
ConsoleUrlProvider that uses the standard Jenkins console view.
 Exists so that users have a way to override ConsoleUrlProviderGlobalConfiguration and specify the default
 console view if desired via ConsoleUrlProviderUserProperty.
- Since:
- 2.433
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from interface jenkins.console.ConsoleUrlProviderLOGGER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetConsoleUrl(Run<?, ?> run) Get a URL relative to the context path of Jenkins which should be used to link to the console for the specified build.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jenkins.console.ConsoleUrlProvidergetDescriptor
- 
Constructor Details- 
DefaultConsoleUrlProvider@DataBoundConstructor public DefaultConsoleUrlProvider()
 
- 
- 
Method Details- 
getConsoleUrlDescription copied from interface:ConsoleUrlProviderGet a URL relative to the context path of Jenkins which should be used to link to the console for the specified build.Should only be used in the context of serving an HTTP request. - Specified by:
- getConsoleUrlin interface- ConsoleUrlProvider
- Parameters:
- run- the build
- Returns:
- the URL for the console for the specified build, relative to the context of Jenkins (should not start with /), ornullif this implementation does not want to serve a special console view for this build.
 
 
-