Uses of Class
org.mockserver.model.BodyWithContentType

Packages that use BodyWithContentType
org.mockserver.client.serialization.model   
org.mockserver.model   
 

Uses of BodyWithContentType in org.mockserver.client.serialization.model
 

Methods in org.mockserver.client.serialization.model that return BodyWithContentType
abstract  BodyWithContentType BodyWithContentTypeDTO.buildObject()
           
 

Methods in org.mockserver.client.serialization.model with parameters of type BodyWithContentType
static BodyWithContentTypeDTO BodyWithContentTypeDTO.createDTO(BodyWithContentType body)
           
 

Uses of BodyWithContentType in org.mockserver.model
 

Subclasses of BodyWithContentType in org.mockserver.model
 class BinaryBody
           
 class JsonBody
           
 class ParameterBody
           
 class StringBody
           
 class XmlBody
           
 

Methods in org.mockserver.model that return BodyWithContentType
 BodyWithContentType HttpResponse.getBody()
           
 

Methods in org.mockserver.model with parameters of type BodyWithContentType
 HttpResponse HttpResponse.withBody(BodyWithContentType body)
          Set the body to return for example:

string body: - exact("

a simple string body
");

or

- new StringBody("

a simple string body
")

binary body: - binary(IOUtils.readFully(getClass().getClassLoader().getResourceAsStream("example.pdf"), 1024));

or

- new BinaryBody(IOUtils.readFully(getClass().getClassLoader().getResourceAsStream("example.pdf"), 1024));

 



Copyright © 2017. All rights reserved.