Lines Matching defs:primary
68 * Constructor that builds a MimeType with the given primary and sub type
71 * @param primary the primary MIME type
73 * @exception MimeTypeParseException if the primary type or subtype
76 public MimeType(String primary, String sub) throws MimeTypeParseException {
77 // check to see if primary is valid
78 if (isValidToken(primary)) {
79 primaryType = primary.toLowerCase(Locale.ENGLISH);
109 // we have a primary and sub type but no parameter list
124 // have a primary type and a parameter list but no sub type
128 // now validate the primary and sub types
130 // check to see if primary is valid
140 * Retrieve the primary type of this object.
142 * @return the primary MIME type
149 * Set the primary type for this object to the given String.
151 * @param primary the primary MIME type
152 * @exception MimeTypeParseException if the primary type
155 public void setPrimaryType(String primary) throws MimeTypeParseException {
156 // check to see if primary is valid
159 primaryType = primary.toLowerCase(Locale.ENGLISH);
243 * Determine if the primary and sub type of this object is
257 * Determine if the primary and sub type of this object is