int function ( Option < FormatOption > arg0 , MediaType arg1 ) { if ( ! arg0 . isDefined ( ) ) { return DEFAULT_SCORE ; } if ( arg0 . get ( ) . mediaType ( ) . matches ( arg1 ) ) { return MAXIMUM_FORMAT_SCORE ; } return DEFAULT_SCORE ; }
computes a score by checking the value of the ' $ format ' parameter if present against a required media type . concode_field_sep int CONTENT_TYPE_HEADER concode_elem_sep String ODATA_VERSION_HEADER concode_elem_sep Logger LOG concode_elem_sep int WILDCARD_MATCH_SCORE concode_elem_sep int DELETE_LINK_SCORE concode_elem_sep int ERROR_EXTRA_SCORE concode_elem_sep int MAXIMUM_FORMAT_SCORE concode_elem_sep int MAXIMUM_HEADER_SCORE concode_elem_sep int PRIORITY_SCORE concode_elem_sep int DEFAULT_SCORE concode_field_sep Type getTargetTypeOrNull concode_elem_sep boolean checkForContentType concode_elem_sep boolean isGetRequest concode_elem_sep boolean isNonEntityQuery concode_elem_sep boolean isRequestedContentTypeSupported concode_elem_sep boolean isCollection concode_elem_sep int scoreByMediaType concode_elem_sep String buildContextURL concode_elem_sep void checkContextURL concode_elem_sep boolean isEntityQuery concode_elem_sep int scoreByContentType concode_elem_sep String getRenderedData