org.kohsuke.stapler
Class ForwardToView
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kohsuke.stapler.ForwardToView
- All Implemented Interfaces:
- Serializable, HttpResponse
public class ForwardToView
- extends RuntimeException
- implements HttpResponse
HttpResponse
that forwards to a RequestDispatcher
, such as a view.
Extends from RuntimeException
so that you can throw it.
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ForwardToView
public ForwardToView(javax.servlet.RequestDispatcher dispatcher)
ForwardToView
public ForwardToView(Object it,
String view)
ForwardToView
public ForwardToView(Class c,
String view)
generateResponse
public void generateResponse(StaplerRequest req,
StaplerResponse rsp,
Object node)
throws IOException,
javax.servlet.ServletException
- Specified by:
generateResponse
in interface HttpResponse
node
- The object whose "doXyz" method created this object.
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2011. All Rights Reserved.