Split project to modules
This commit is contained in:
parent
1bbaf72084
commit
73b3630e2f
26 changed files with 145 additions and 34 deletions
|
@ -0,0 +1,42 @@
|
|||
package pl.touk.mockserver.client
|
||||
|
||||
import groovy.transform.CompileStatic
|
||||
import groovy.transform.TypeChecked
|
||||
import org.apache.commons.lang3.StringEscapeUtils
|
||||
|
||||
@CompileStatic
|
||||
@TypeChecked
|
||||
class AddMockRequestData {
|
||||
String name
|
||||
String path
|
||||
Integer port
|
||||
String predicate
|
||||
String response
|
||||
Boolean soap
|
||||
Integer statusCode
|
||||
Method method
|
||||
String responseHeaders
|
||||
|
||||
void setPredicate(String predicate) {
|
||||
this.predicate = StringEscapeUtils.escapeXml11(predicate)
|
||||
}
|
||||
|
||||
void setResponse(String response) {
|
||||
this.response = StringEscapeUtils.escapeXml11(response)
|
||||
}
|
||||
|
||||
void setResponseHeaders(String responseHeaders) {
|
||||
this.responseHeaders = StringEscapeUtils.escapeXml11(responseHeaders)
|
||||
}
|
||||
|
||||
enum Method {
|
||||
POST,
|
||||
GET,
|
||||
DELETE,
|
||||
PUT,
|
||||
TRACE,
|
||||
HEAD,
|
||||
OPTIONS,
|
||||
PATCH
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue