org.kohsuke.stapler
Interface HttpResponse

All Known Implementing Classes:
Bound, ForwardToView, HttpRedirect, HttpResponses.HttpResponseException

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 or throw an exception of this type, and if it does so, the object is 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

Method Summary
 void generateResponse(StaplerRequest req, StaplerResponse rsp, java.lang.Object node)
           
 

Method Detail

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 © 2012. All Rights Reserved.