Class HttpRequestDTO
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.serialization.model.NotDTO
-
- org.mockserver.serialization.model.HttpRequestDTO
-
- All Implemented Interfaces:
DTO<HttpRequest>
public class HttpRequestDTO extends NotDTO implements DTO<HttpRequest>
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description HttpRequestDTO()
HttpRequestDTO(HttpRequest httpRequest)
HttpRequestDTO(HttpRequest httpRequest, Boolean not)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest
buildObject()
BodyDTO
getBody()
Cookies
getCookies()
Headers
getHeaders()
Boolean
getKeepAlive()
NottableString
getMethod()
NottableString
getPath()
Parameters
getQueryStringParameters()
Boolean
getSecure()
HttpRequestDTO
setBody(BodyDTO body)
HttpRequestDTO
setCookies(Cookies cookies)
HttpRequestDTO
setHeaders(Headers headers)
HttpRequestDTO
setKeepAlive(Boolean keepAlive)
HttpRequestDTO
setMethod(NottableString method)
HttpRequestDTO
setPath(NottableString path)
HttpRequestDTO
setQueryStringParameters(Parameters queryStringParameters)
HttpRequestDTO
setSecure(Boolean secure)
-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
-
-
-
-
Constructor Detail
-
HttpRequestDTO
public HttpRequestDTO(HttpRequest httpRequest)
-
HttpRequestDTO
public HttpRequestDTO()
-
HttpRequestDTO
public HttpRequestDTO(HttpRequest httpRequest, Boolean not)
-
-
Method Detail
-
buildObject
public HttpRequest buildObject()
- Specified by:
buildObject
in interfaceDTO<HttpRequest>
-
getMethod
public NottableString getMethod()
-
setMethod
public HttpRequestDTO setMethod(NottableString method)
-
getPath
public NottableString getPath()
-
setPath
public HttpRequestDTO setPath(NottableString path)
-
getQueryStringParameters
public Parameters getQueryStringParameters()
-
setQueryStringParameters
public HttpRequestDTO setQueryStringParameters(Parameters queryStringParameters)
-
getBody
public BodyDTO getBody()
-
setBody
public HttpRequestDTO setBody(BodyDTO body)
-
getHeaders
public Headers getHeaders()
-
setHeaders
public HttpRequestDTO setHeaders(Headers headers)
-
getCookies
public Cookies getCookies()
-
setCookies
public HttpRequestDTO setCookies(Cookies cookies)
-
getKeepAlive
public Boolean getKeepAlive()
-
setKeepAlive
public HttpRequestDTO setKeepAlive(Boolean keepAlive)
-
getSecure
public Boolean getSecure()
-
setSecure
public HttpRequestDTO setSecure(Boolean secure)
-
-