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
public class JsonHttpResponse extends HttpResponses.HttpResponseException
JSONObject
as a response.- Author:
- Carlos Sanchez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonHttpResponse(Throwable t, int status)
JsonHttpResponse(net.sf.json.JSONObject o)
JsonHttpResponse(net.sf.json.JSONObject o, int status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
JsonHttpResponse
public JsonHttpResponse(net.sf.json.JSONObject o)
-
JsonHttpResponse
public JsonHttpResponse(net.sf.json.JSONObject o, int status)
-
JsonHttpResponse
public JsonHttpResponse(Throwable t, int status)
-
-
Method Detail
-
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
-
-