+htc add japi.MediaType.toContentType helper

This commit is contained in:
Johannes Rudolph 2014-11-25 16:59:02 +01:00
parent 0859c5cadc
commit 80d8c9ad05

View file

@ -25,6 +25,11 @@ public abstract class MediaType {
return MediaRanges.create(this);
}
/**
* Creates a ContentType from this media-type
*/
public ContentType toContentType() { return ContentType.create(this); }
/**
* Creates a media-range from this media-type with a given qValue.
*/