Package org.kohsuke.stapler.json
Class JsonHttpResponse
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kohsuke.stapler.HttpResponses.HttpResponseException
org.kohsuke.stapler.json.JsonHttpResponse
- All Implemented Interfaces:
Serializable
,HttpResponse
JSONObject
as a response.- Author:
- Carlos Sanchez
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJsonHttpResponse
(Throwable t, int status) JsonHttpResponse
(net.sf.json.JSONObject o) JsonHttpResponse
(net.sf.json.JSONObject o, int status) -
Method Summary
Modifier and TypeMethodDescriptionvoid
generateResponse
(StaplerRequest req, StaplerResponse rsp, Object node) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonHttpResponse
public JsonHttpResponse(net.sf.json.JSONObject o) -
JsonHttpResponse
public JsonHttpResponse(net.sf.json.JSONObject o, int status) -
JsonHttpResponse
-
-
Method Details
-
generateResponse
public void generateResponse(StaplerRequest req, StaplerResponse rsp, Object node) throws IOException, javax.servlet.ServletException node
- The object whose "doXyz" method created this object.- Throws:
IOException
javax.servlet.ServletException
-