Package org.kohsuke.stapler
Class HttpResponseRenderer.Default
java.lang.Object
org.kohsuke.stapler.HttpResponseRenderer
org.kohsuke.stapler.HttpResponseRenderer.Default
- Enclosing class:
- HttpResponseRenderer
Default
HttpResponseRenderer
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.kohsuke.stapler.HttpResponseRenderer
HttpResponseRenderer.Default
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
generateResponse
(StaplerRequest2 req, StaplerResponse2 rsp, Object node, Object response) protected boolean
handleHttpResponse
(StaplerRequest2 req, StaplerResponse2 rsp, Object node, Object response) protected boolean
handleJavaScriptProxyMethodCall
(StaplerRequest2 req, StaplerResponse2 rsp, Object response) protected boolean
handleJSON
(StaplerResponse2 rsp, Object response) protected boolean
handlePrimitive
(StaplerResponse2 rsp, Object response)
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
generateResponse
public boolean generateResponse(StaplerRequest2 req, StaplerResponse2 rsp, Object node, Object response) throws IOException, jakarta.servlet.ServletException - Specified by:
generateResponse
in classHttpResponseRenderer
node
- Object that handled the request.response
- The return value or the exception from the method.- Returns:
- true if the response object was understood and rendered by this method.
false otherwise, in which case the next
HttpResponseRenderer
will be consulted. - Throws:
IOException
jakarta.servlet.ServletException
-
handleJavaScriptProxyMethodCall
protected boolean handleJavaScriptProxyMethodCall(StaplerRequest2 req, StaplerResponse2 rsp, Object response) throws IOException - Throws:
IOException
-
handlePrimitive
- Throws:
IOException
-
handleHttpResponse
protected boolean handleHttpResponse(StaplerRequest2 req, StaplerResponse2 rsp, Object node, Object response) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-
handleJSON
- Throws:
IOException
-