/** * Creates a content type from type and subtype * @param type * @param subtype * @return a new <code>ContentType</code> object */ public static ContentType create(final String type, final String subtype) { return new ContentType(type, subtype, mapToODataFormat(type, subtype), null); }
/** * * @param type * @param subtype * @param parameters * @return a new <code>ContentType</code> object */ public static ContentType create(final String type, final String subtype, final Map<String, String> parameters) { return new ContentType(type, subtype, mapToODataFormat(type, subtype), parameters); }
/** * Creates a content type from type and subtype * @param type * @param subtype * @return a new <code>ContentType</code> object */ public static ContentType create(final String type, final String subtype) { return new ContentType(type, subtype, mapToODataFormat(type, subtype), null); }
/** * Creates a content type from type and subtype * @param type * @param subtype * @return a new <code>ContentType</code> object */ public static ContentType create(final String type, final String subtype) { return new ContentType(type, subtype, mapToODataFormat(type, subtype), null); }
/** * * @param type * @param subtype * @param parameters * @return a new <code>ContentType</code> object */ public static ContentType create(final String type, final String subtype, final Map<String, String> parameters) { return new ContentType(type, subtype, mapToODataFormat(type, subtype), parameters); }
/** * * @param type * @param subtype * @param parameters * @return a new <code>ContentType</code> object */ public static ContentType create(final String type, final String subtype, final Map<String, String> parameters) { return new ContentType(type, subtype, mapToODataFormat(type, subtype), parameters); }