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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangenerateResponse(StaplerRequest2 req, StaplerResponse2 rsp, Object node, Object response) protected booleanhandleHttpResponse(StaplerRequest2 req, StaplerResponse2 rsp, Object node, Object response) protected booleanhandleJavaScriptProxyMethodCall(StaplerRequest2 req, StaplerResponse2 rsp, Object response) protected booleanhandleJSON(StaplerResponse2 rsp, Object response) protected booleanhandlePrimitive(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:
generateResponsein classHttpResponseRenderernode- 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
HttpResponseRendererwill be consulted. - Throws:
IOExceptionjakarta.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:
IOExceptionjakarta.servlet.ServletException
-
handleJSON
- Throws:
IOException
-