Package org.kohsuke.stapler
Interface StaplerProxy
-
public interface StaplerProxy
If an object delegates all its UI processing to another object, it can implement this interface and return the designated object from thegetTarget()
method.Compared to
StaplerFallback
, stapler handles this interface at the very beginning, whereasStaplerFallback
is handled at the very end.By returning
this
from thegetTarget()
method,StaplerProxy
can be also used just as an interception hook (for example to perform authorization.)- Author:
- Kohsuke Kawaguchi
- See Also:
StaplerFallback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getTarget()
Returns the object that is responsible for processing web requests.
-
-
-
Method Detail
-
getTarget
Object getTarget()
Returns the object that is responsible for processing web requests.- Returns:
- If null is returned, it generates 404.
If
this
object is returned, no furtherStaplerProxy
look-up is done andthis
object processes the request.
-
-