setAccept method

void setAccept(
  1. List<MediaType> acceptableMediaTypes
)
  • Set the list of acceptable MediaType,
    • as specified by the Accept Header.

Implementation

void setAccept(List<MediaType> acceptableMediaTypes) {
  this.set(HttpHeaders.ACCEPT, MediaType.toStringify(acceptableMediaTypes));
	}