RepresentationContract.withContentType(String contentType) Method

Definition

Set specifies a registered or custom content type for this representation, e.g. application/xml.

public RepresentationContract withContentType(String contentType)

Parameters

contentType
java.lang.String

the contentType value to set

Returns

the RepresentationContract object itself.

Applies to