Class HttpResponseDTO
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.serialization.model.HttpResponseDTO
-
- All Implemented Interfaces:
DTO<HttpResponse>
public class HttpResponseDTO extends ObjectWithReflectiveEqualsHashCodeToString implements DTO<HttpResponse>
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description HttpResponseDTO()
HttpResponseDTO(HttpResponse httpResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse
buildObject()
BodyWithContentTypeDTO
getBody()
ConnectionOptionsDTO
getConnectionOptions()
Cookies
getCookies()
DelayDTO
getDelay()
Headers
getHeaders()
String
getReasonPhrase()
Integer
getStatusCode()
HttpResponseDTO
setBody(BodyWithContentTypeDTO body)
HttpResponseDTO
setConnectionOptions(ConnectionOptionsDTO connectionOptions)
HttpResponseDTO
setCookies(Cookies cookies)
HttpResponseDTO
setDelay(DelayDTO delay)
HttpResponseDTO
setHeaders(Headers headers)
HttpResponseDTO
setReasonPhrase(String reasonPhrase)
HttpResponseDTO
setStatusCode(Integer statusCode)
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key, toString
-
-
-
-
Constructor Detail
-
HttpResponseDTO
public HttpResponseDTO()
-
HttpResponseDTO
public HttpResponseDTO(HttpResponse httpResponse)
-
-
Method Detail
-
buildObject
public HttpResponse buildObject()
- Specified by:
buildObject
in interfaceDTO<HttpResponse>
-
getStatusCode
public Integer getStatusCode()
-
setStatusCode
public HttpResponseDTO setStatusCode(Integer statusCode)
-
getReasonPhrase
public String getReasonPhrase()
-
setReasonPhrase
public HttpResponseDTO setReasonPhrase(String reasonPhrase)
-
getBody
public BodyWithContentTypeDTO getBody()
-
setBody
public HttpResponseDTO setBody(BodyWithContentTypeDTO body)
-
getHeaders
public Headers getHeaders()
-
setHeaders
public HttpResponseDTO setHeaders(Headers headers)
-
getCookies
public Cookies getCookies()
-
setCookies
public HttpResponseDTO setCookies(Cookies cookies)
-
getDelay
public DelayDTO getDelay()
-
setDelay
public HttpResponseDTO setDelay(DelayDTO delay)
-
getConnectionOptions
public ConnectionOptionsDTO getConnectionOptions()
-
setConnectionOptions
public HttpResponseDTO setConnectionOptions(ConnectionOptionsDTO connectionOptions)
-
-