public class ForwardToView extends java.lang.RuntimeException implements HttpResponse
HttpResponse that forwards to a RequestDispatcher, such as a view.
Extends from RuntimeException so that you can throw it.| Constructor and Description |
|---|
ForwardToView(java.lang.Class c,
java.lang.String view) |
ForwardToView(java.lang.Object it,
java.lang.String view) |
ForwardToView(javax.servlet.RequestDispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateResponse(StaplerRequest req,
StaplerResponse rsp,
java.lang.Object node) |
ForwardToView |
optional()
Make this forwarding optional.
|
ForwardToView |
with(java.util.Map<java.lang.String,?> attributes) |
ForwardToView |
with(java.lang.String varName,
java.lang.Object value)
Forwards to the view with specified attributes exposed as a variable binding.
|
public ForwardToView(javax.servlet.RequestDispatcher dispatcher)
public ForwardToView(java.lang.Object it,
java.lang.String view)
public ForwardToView(java.lang.Class c,
java.lang.String view)
public ForwardToView with(java.lang.String varName, java.lang.Object value)
public ForwardToView with(java.util.Map<java.lang.String,?> attributes)
public ForwardToView optional()
public void generateResponse(StaplerRequest req, StaplerResponse rsp, java.lang.Object node) throws java.io.IOException, javax.servlet.ServletException
generateResponse in interface HttpResponsenode - The object whose "doXyz" method created this object.java.io.IOExceptionjavax.servlet.ServletExceptionCopyright © 2013. All Rights Reserved.