Package io.jenkins.blueocean.rest.model
Class CreateResponse
java.lang.Object
io.jenkins.blueocean.rest.model.CreateResponse
- All Implemented Interfaces:
org.kohsuke.stapler.HttpResponse
Create response that sets Location header of the created entity and generates a tree response.
- Author:
- Vivek Pandey
-
Constructor Summary
ConstructorDescriptionCreateResponse
(Reachable payload) Constructor that takes a reachable exported bean. -
Method Summary
Modifier and TypeMethodDescriptionvoid
generateResponse
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, Object node)
-
Constructor Details
-
CreateResponse
Constructor that takes a reachable exported bean.- Parameters:
payload
- must be aReachable
and anExportedBean
-
-
Method Details
-
generateResponse
public void generateResponse(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, Object node) throws IOException, javax.servlet.ServletException - Specified by:
generateResponse
in interfaceorg.kohsuke.stapler.HttpResponse
- Throws:
IOException
javax.servlet.ServletException
-