Class ParsedMessage.ImagePart

java.lang.Object
org.mockserver.llm.ParsedMessage.ImagePart
Enclosing class:
ParsedMessage

public static final class ParsedMessage.ImagePart extends Object
A multimodal image content part recognised in a decoded request message.

Request-side only: the codecs parse the presence (and, where available, the media type) of an image so conversation matchers can assert "this message contains an image". MockServer does not store the image bytes.

  • Constructor Details

    • ImagePart

      public ImagePart(String mediaType)
  • Method Details

    • getMediaType

      public String getMediaType()
      The image media type (e.g. image/png), or null if not declared by the provider shape.