Package jenkins.security.csp.impl
Class ReportingAction
java.lang.Object
hudson.model.InvisibleAction
jenkins.security.csp.impl.ReportingAction
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction,UnprotectedRootAction
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Extension
public class ReportingAction
extends InvisibleAction
implements UnprotectedRootAction
This action receives reports of Content-Security-Policy violations.
It needs to be an
UnprotectedRootAction because these requests do not have cookies.
If we wanted to restrict submissions by unprivileged users, we'd not generate the Content-Security-Policy header
for them, or removed the report-uri / report-to directives.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoDynamic(org.kohsuke.stapler.StaplerRequest2 req) Gets the URL path name.Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDisplayName, getIconFileNameMethods inherited from interface hudson.model.RootAction
getBadge, isPrimaryAction
-
Field Details
-
URL
- See Also:
-
-
Constructor Details
-
ReportingAction
public ReportingAction()
-
-
Method Details
-
getUrlName
Description copied from interface:ActionGets the URL path name.For example, if this method returns "xyz", and if the parent object (that this action is associated with) is bound to /foo/bar/zot, then this action object will be exposed to /foo/bar/zot/xyz.
This method should return a string that's unique among other
Actions.The returned string can be an absolute URL, like "http://www.sun.com/", which is useful for directly connecting to external systems.
If the returned string starts with '/', like '/foo', then it's assumed to be relative to the context path of the Jenkins webapp.
- Specified by:
getUrlNamein interfaceAction- Overrides:
getUrlNamein classInvisibleAction- Returns:
- null if this action object doesn't need to be bound to web
(when you do that, be sure to also return null from
Action.getIconFileName(). - See Also:
-
doDynamic
@POST public org.kohsuke.stapler.HttpResponse doDynamic(org.kohsuke.stapler.StaplerRequest2 req)
-