@Override public int compareTo(AbstractMediaTypeExpression other) { return MediaType.SPECIFICITY_COMPARATOR.compare(this.getMediaType(), other.getMediaType()); }
public final boolean match(ServerWebExchange exchange) { try { boolean match = matchMediaType(exchange); return (!this.isNegated == match); } catch (NotAcceptableStatusException | UnsupportedMediaTypeStatusException ex) { return false; } }
@Override public int compareTo(AbstractMediaTypeExpression other) { return MediaType.SPECIFICITY_COMPARATOR.compare(this.getMediaType(), other.getMediaType()); }
public final boolean match(ServerWebExchange exchange) { try { boolean match = matchMediaType(exchange); return (!this.isNegated == match); } catch (NotAcceptableStatusException ex) { return false; } catch (UnsupportedMediaTypeStatusException ex) { return false; } }