+htc add japi.MediaType.toContentType helper
This commit is contained in:
parent
0859c5cadc
commit
80d8c9ad05
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue