private boolean isIEEE754Compatible() { final String parameter = contentType.getParameters().get(ContentType.PARAMETER_IEEE754_COMPATIBLE); return parameter == null ? false : "true".equalsIgnoreCase(parameter); }
private boolean isIEEE754Compatible() { final String parameter = contentType.getParameters().get(ContentType.PARAMETER_IEEE754_COMPATIBLE); return parameter == null ? false : "true".equalsIgnoreCase(parameter); }
return false; Map<String, String> compareParameters = contentType.getParameters(); for (final Map.Entry<String, String> entry : parameters.entrySet()) { if (entry.getKey().equalsIgnoreCase(ContentType.PARAMETER_CHARSET) &&
/** * Creates a list of {@link AcceptType} objects based on given content type. * @param contentType the content type * @return an immutable one-element list of <code>AcceptType</code> objects that matches only the given content type */ public static List<AcceptType> fromContentType(final ContentType contentType) { return Collections.singletonList(new AcceptType( contentType.getType(), contentType.getSubtype(), contentType.getParameters(), 1F)); }
return false; Map<String, String> compareParameters = contentType.getParameters(); for (final Map.Entry<String, String> entry : parameters.entrySet()) { if (entry.getKey().equalsIgnoreCase(ContentType.PARAMETER_CHARSET) &&
/** * Creates a list of {@link AcceptType} objects based on given content type. * @param contentType the content type * @return an immutable one-element list of <code>AcceptType</code> objects that matches only the given content type */ public static List<AcceptType> fromContentType(final ContentType contentType) { return Collections.singletonList(new AcceptType( contentType.getType(), contentType.getSubtype(), contentType.getParameters(), 1F)); }