org.mockserver.client.serialization.model
Class BodyWithContentTypeDTO

java.lang.Object
  extended by org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
      extended by org.mockserver.model.ObjectWithJsonToString
          extended by org.mockserver.client.serialization.model.NotDTO
              extended by org.mockserver.client.serialization.model.BodyDTO
                  extended by org.mockserver.client.serialization.model.BodyWithContentTypeDTO
Direct Known Subclasses:
BinaryBodyDTO, JsonBodyDTO, ParameterBodyDTO, StringBodyDTO, XmlBodyDTO

public abstract class BodyWithContentTypeDTO
extends BodyDTO

Author:
jamesdbloom

Field Summary
protected  String contentType
           
 
Fields inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
logger
 
Constructor Summary
BodyWithContentTypeDTO()
           
BodyWithContentTypeDTO(Body.Type type, Boolean not, String contentType)
           
 
Method Summary
abstract  BodyWithContentType buildObject()
           
static BodyWithContentTypeDTO createDTO(BodyWithContentType body)
           
 String getContentType()
           
 
Methods inherited from class org.mockserver.client.serialization.model.BodyDTO
createDTO, getType
 
Methods inherited from class org.mockserver.client.serialization.model.NotDTO
getNot, setNot
 
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
 
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
addFieldsExcludedFromEqualsAndHashCode, equals, fieldsExcludedFromEqualsAndHashCode, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

contentType

protected String contentType
Constructor Detail

BodyWithContentTypeDTO

public BodyWithContentTypeDTO(Body.Type type,
                              Boolean not,
                              String contentType)

BodyWithContentTypeDTO

public BodyWithContentTypeDTO()
Method Detail

createDTO

public static BodyWithContentTypeDTO createDTO(BodyWithContentType body)

getContentType

public String getContentType()

buildObject

public abstract BodyWithContentType buildObject()
Specified by:
buildObject in class BodyDTO


Copyright © 2017. All rights reserved.