@@ -64,6 +64,30 @@ public Response(
6464 this .postServeAction = postServeAction ;
6565 }
6666
67+ public Response (
68+ Integer status ,
69+ String body ,
70+ boolean encodedBody ,
71+ boolean templated ,
72+ Map <String , List <String >> headers ,
73+ Map <String , String > transitionsState ,
74+ List <String > removesState ,
75+ Integer fixedDelay ,
76+ LogNormalDelay logNormalDelay ,
77+ String postServeAction ) {
78+ this .status = status ;
79+ this .body = body ;
80+ this .bodyFile = null ;
81+ this .encodedBody = encodedBody ;
82+ this .templated = templated ;
83+ this .headers = headers ;
84+ this .transitionsState = transitionsState ;
85+ this .removesState = removesState ;
86+ this .fixedDelay = fixedDelay ;
87+ this .logNormalDelay = logNormalDelay ;
88+ this .postServeAction = postServeAction ;
89+ }
90+
6791 public Integer getStatus () {
6892 return status ;
6993 }
@@ -111,7 +135,6 @@ public String getPostServeAction() {
111135 static class Builder {
112136 private Integer status ;
113137 private String body ;
114- private String bodyFile ;
115138 private boolean encodedBody ;
116139 private boolean templated ;
117140 private Map <String , List <String >> headers ;
@@ -131,11 +154,6 @@ Builder body(String body) {
131154 return this ;
132155 }
133156
134- Builder bodyFile (String bodyFile ) {
135- this .bodyFile = bodyFile ;
136- return this ;
137- }
138-
139157 Builder encodedBody (boolean encodedBody ) {
140158 this .encodedBody = encodedBody ;
141159 return this ;
@@ -177,7 +195,7 @@ Builder postServeAction(String postServeAction) {
177195 }
178196
179197 Response build () {
180- return new Response (status , body , bodyFile , encodedBody , templated , headers , transitionsState , removesState , fixedDelay , logNormalDelay , postServeAction );
198+ return new Response (status , body , encodedBody , templated , headers , transitionsState , removesState , fixedDelay , logNormalDelay , postServeAction );
181199 }
182200 }
183201
0 commit comments