/** * Compares the optional 'type' attribute of two content types. * * <p>This method accepts atom content type without the 'type' attribute * but if the types are specified, they must match. */ private boolean matchAtom(ContentType acceptedContentType) { String atomType = getAttribute("type"); String acceptedAtomType = acceptedContentType.getAttribute("type"); return atomType == null || acceptedAtomType == null || atomType.equals(acceptedAtomType); }
/** * Compares the optional 'type' attribute of two content types. * * <p>This method accepts atom content type without the 'type' attribute * but if the types are specified, they must match. */ private boolean matchAtom(ContentType acceptedContentType) { String atomType = getAttribute("type"); String acceptedAtomType = acceptedContentType.getAttribute("type"); return atomType == null || acceptedAtomType == null || atomType.equals(acceptedAtomType); }
/** * Compares the optional 'type' attribute of two content types. * * <p>This method accepts atom content type without the 'type' attribute * but if the types are specified, they must match. */ private boolean matchAtom(ContentType acceptedContentType) { String atomType = getAttribute("type"); String acceptedAtomType = acceptedContentType.getAttribute("type"); return atomType == null || acceptedAtomType == null || atomType.equals(acceptedAtomType); }
String qAttr = acceptedContentType.getAttribute("q"); if (qAttr != null) { float qValue = Float.valueOf(qAttr);
String qAttr = acceptedContentType.getAttribute("q"); if (qAttr != null) { float qValue = Float.valueOf(qAttr);
String qAttr = acceptedContentType.getAttribute("q"); if (qAttr != null) { float qValue = Float.valueOf(qAttr);