org.kohsuke.stapler
Interface HttpResponse
public interface HttpResponse
Object that represents the HTTP response, which is defined as a capability to produce the response.
doXyz(...) method could return an object of this type, and if it does so,
it's asked to produce HTTP response.
This is useful to make doXyz look like a real function, and decouple it further from HTTP.
- Author:
- Kohsuke Kawaguchi
generateResponse
void generateResponse(StaplerRequest req,
StaplerResponse rsp,
java.lang.Object node)
throws java.io.IOException,
javax.servlet.ServletException
- Parameters:
node
- The object whose "doXyz" method created this object.
- Throws:
java.io.IOException
javax.servlet.ServletException
Copyright © 2009. All Rights Reserved.