Package org.mockserver.model
Class StringBody
- Author:
- jamesdbloom
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class org.mockserver.model.BodyWithContentType
contentType -
Constructor Summary
ConstructorsConstructorDescriptionStringBody(String value) StringBody(String value, byte[] rawBytes, boolean subString, MediaType contentType) StringBody(String value, Charset charset) StringBody(String value, MediaType contentType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic StringBodystatic StringBodystatic StringBodybyte[]getValue()inthashCode()booleanstatic StringBodystatic StringBodystatic StringBodytoString()Methods inherited from class org.mockserver.model.BodyWithContentType
getCharset, getContentTypeMethods inherited from class org.mockserver.model.Body
getOptional, getType, withOptionalMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Field Details
-
DEFAULT_CONTENT_TYPE
-
-
Constructor Details
-
StringBody
-
StringBody
-
StringBody
-
StringBody
-
-
Method Details
-
exact
-
exact
-
exact
-
subString
-
subString
-
subString
-
getValue
-
getRawBytes
public byte[] getRawBytes()- Overrides:
getRawBytesin classBody<String>
-
isSubString
public boolean isSubString() -
toString
- Overrides:
toStringin classObjectWithJsonToString
-
equals
- Overrides:
equalsin classBodyWithContentType<String>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBodyWithContentType<String>
-