Permalink
Please sign in to comment.
Browse files
[SECURITY-595]
Co-Authored-By: Wadeck Follonier <wadeck.follonier@gmail.com>
- Loading branch information...
Showing
with
674 additions
and 72 deletions.
- +34 −0 core/src/main/java/org/kohsuke/stapler/DispatchersFilter.java
- +20 −0 core/src/main/java/org/kohsuke/stapler/ForwardingFunction.java
- +54 −1 core/src/main/java/org/kohsuke/stapler/Function.java
- +22 −2 core/src/main/java/org/kohsuke/stapler/FunctionList.java
- +230 −67 core/src/main/java/org/kohsuke/stapler/MetaClass.java
- +103 −0 core/src/main/java/org/kohsuke/stapler/WebApp.java
- +51 −0 core/src/main/java/org/kohsuke/stapler/event/FilteredDoActionTriggerListener.java
- +28 −0 core/src/main/java/org/kohsuke/stapler/event/FilteredFieldTriggerListener.java
- +53 −0 core/src/main/java/org/kohsuke/stapler/event/FilteredGetterTriggerListener.java
- +3 −0 core/src/main/java/org/kohsuke/stapler/json/JsonResponse.java
- +49 −0 core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java
- +5 −0 core/src/main/java/org/kohsuke/stapler/lang/util/FieldRefFilter.java
- +7 −0 core/src/test/java/org/kohsuke/stapler/DispatcherTest.java
- +10 −0 jelly/src/test/java/org/kohsuke/stapler/jelly/issue76/ProtectedClass.java
- +5 −2 jruby/src/test/java/org/kohsuke/stapler/jelly/jruby/erb/JRubyJellyERbScriptTest.java
@@ -0,0 +1,34 @@ | |||
/* | |||
* The MIT License | |||
* | |||
* Copyright (c) 2018, CloudBees, Inc. | |||
* | |||
* Permission is hereby granted, free of charge, to any person obtaining a copy | |||
* of this software and associated documentation files (the "Software"), to deal | |||
* in the Software without restriction, including without limitation the rights | |||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |||
* copies of the Software, and to permit persons to whom the Software is | |||
* furnished to do so, subject to the following conditions: | |||
* | |||
* The above copyright notice and this permission notice shall be included in | |||
* all copies or substantial portions of the Software. | |||
* | |||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |||
* THE SOFTWARE. | |||
*/ | |||
package org.kohsuke.stapler; | |||
|
|||
import java.util.List; | |||
|
|||
/** | |||
* Registered inside {@link WebApp#setDispatchersFilter(DispatchersFilter)} and then used after the creation of | |||
* the dispatchers for a {@link MetaClass} in order to add / remove / edit the dispatchers that are created. | |||
*/ | |||
public interface DispatchersFilter { | |||
void applyOn(MetaClass metaClass, FunctionList methods, List<Dispatcher> dispatcherList); | |||
} |

Oops, something went wrong.
0 comments on commit
28e8eba