@Override public boolean matches(final MediaType type) { return MediaType.css.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.css.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.js.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.js.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.js.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.js.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.js.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.css.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.css.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.js.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.css.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.js.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.js.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.css.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.css.matches(type); }
@Override public boolean matches(final MediaType type) { return MediaType.js.matches(type); }
/** * @return True, if this type is a well-known text type. */ public boolean isText() { if (this.wildcardType) { return false; } if (this == text || text.matches(this)) { return true; } if (this == js || js.matches(this)) { return true; } if (jsonLike.matches(this)) { return true; } if (xmlLike.matches(this)) { return true; } if (this.type.equals("application") && this.subtype.equals("hocon")) { return true; } return false; }
if (accept.matches(candidate)) { result.add(candidate);
@Override public Object parse(final TypeLiteral<?> type, final Context ctx) throws Throwable { MediaType ctype = ctx.type(); if (ctype.isAny()) { // */* return ctx.next(); } if (ctype.matches(this.type)) { return ctx .ifbody(body -> gson.fromJson(body.text(), type.getType())) .ifparam(values -> gson.fromJson(values.first(), type.getType())); } return ctx.next(); }
@Override public Object parse(final TypeLiteral<?> type, final Context ctx) throws Throwable { MediaType ctype = ctx.type(); if (ctype.isAny()) { // */* return ctx.next(); } if (ctype.matches(this.type)) { return ctx .ifbody(body -> jsonb.fromJson(body.text(), type.getType())) .ifparam(values -> jsonb.fromJson(values.first(), type.getType())); } return ctx.next(); }