108109110111112113114115116117118
return defaultMediaType ; AcceptList headerList = new AcceptList(headerString) ; if ( myPrefs == null ) return headerList.first() ; MediaType i = AcceptList.match(headerList, myPrefs) ; if ( i == null ) return defaultMediaType ; return i ;