Interface HttpResponse

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

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