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
(StaplerRequest2 req, StaplerResponse2 rsp, Object node) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.kohsuke.stapler.HttpResponse
generateResponse
-
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(StaplerRequest2 req, StaplerResponse2 rsp, Object node) throws IOException, jakarta.servlet.ServletException node
- The object whose "doXyz" method created this object.- Throws:
IOException
jakarta.servlet.ServletException
-