Package org.kohsuke.stapler
Class HttpResponseRenderer.Default
- java.lang.Object
-
- org.kohsuke.stapler.HttpResponseRenderer
-
- org.kohsuke.stapler.HttpResponseRenderer.Default
-
- Enclosing class:
- HttpResponseRenderer
public static class HttpResponseRenderer.Default extends HttpResponseRenderer
DefaultHttpResponseRenderer
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kohsuke.stapler.HttpResponseRenderer
HttpResponseRenderer.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
generateResponse(StaplerRequest req, StaplerResponse rsp, Object node, Object response)
protected boolean
handleHttpResponse(StaplerRequest req, StaplerResponse rsp, Object node, Object response)
protected boolean
handleJavaScriptProxyMethodCall(StaplerRequest req, StaplerResponse rsp, Object response)
protected boolean
handleJSON(StaplerResponse rsp, Object response)
protected boolean
handlePrimitive(StaplerResponse rsp, Object response)
-
-
-
Method Detail
-
generateResponse
public boolean generateResponse(StaplerRequest req, StaplerResponse rsp, Object node, Object response) throws IOException, javax.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
javax.servlet.ServletException
-
handleJavaScriptProxyMethodCall
protected boolean handleJavaScriptProxyMethodCall(StaplerRequest req, StaplerResponse rsp, Object response) throws IOException
- Throws:
IOException
-
handlePrimitive
protected boolean handlePrimitive(StaplerResponse rsp, Object response) throws IOException
- Throws:
IOException
-
handleHttpResponse
protected boolean handleHttpResponse(StaplerRequest req, StaplerResponse rsp, Object node, Object response) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
handleJSON
protected boolean handleJSON(StaplerResponse rsp, Object response) throws IOException
- Throws:
IOException
-
-