public class LogRecorderManager extends AbstractModelObject implements ModelObjectWithChildren, org.kohsuke.stapler.StaplerProxy
LogRecorder
s, bound to "/log".Modifier and Type | Field and Description |
---|---|
Map<String,LogRecorder> |
logRecorders
LogRecorder s keyed by their name. |
static boolean |
SKIP_PERMISSION_CHECK
Escape hatch for StaplerProxy-based access control
|
Constructor and Description |
---|
LogRecorderManager() |
Modifier and Type | Method and Description |
---|---|
ModelObjectWithContextMenu.ContextMenu |
doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates the context menu to list up all the children.
|
org.kohsuke.stapler.HttpResponse |
doConfigLogger(String name,
String level)
Configure the logging level.
|
org.kohsuke.stapler.HttpResponse |
doNewLogRecorder(String name)
Creates a new log recorder.
|
void |
doRss(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
RSS feed for log entries.
|
String |
getDisplayName() |
LogRecorder |
getDynamic(String token) |
LogRecorder |
getLogRecorder(String token) |
String |
getSearchUrl()
Returns the URL of this item relative to the parent
SearchItem . |
Object |
getTarget() |
static void |
init(Jenkins h) |
void |
load()
Loads the configuration from disk.
|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
public final transient Map<String,LogRecorder> logRecorders
LogRecorder
s keyed by their name.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean SKIP_PERMISSION_CHECK
public String getDisplayName()
getDisplayName
in interface ModelObject
public String getSearchUrl()
SearchItem
SearchItem
.getSearchUrl
in interface SearchItem
public LogRecorder getDynamic(String token)
public LogRecorder getLogRecorder(String token)
public void load() throws IOException
IOException
public org.kohsuke.stapler.HttpResponse doNewLogRecorder(@QueryParameter String name)
public ModelObjectWithContextMenu.ContextMenu doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
ModelObjectWithChildren
doChildrenContextMenu
in interface ModelObjectWithChildren
Exception
public org.kohsuke.stapler.HttpResponse doConfigLogger(@QueryParameter String name, @QueryParameter String level)
public void doRss(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
@Initializer(before=PLUGINS_PREPARED) public static void init(Jenkins h) throws IOException
IOException
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Object getTarget()
getTarget
in interface org.kohsuke.stapler.StaplerProxy
Copyright © 2004–2021. All rights reserved.