|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pkrete.jsip2.variables.MediaTypeFactory
public class MediaTypeFactory
This class generates MediaType objects based on the media code. This class implements the Singleton design pattern, which means that only one instance is created at run time.
| Method Summary | |
|---|---|
static MediaTypeFactory |
getInstance()
Returns a reference to the singleton object. |
MediaType |
getMediaType(String code)
Returns the media type that matches the given code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MediaTypeFactory getInstance()
public MediaType getMediaType(String code)
throws InvalidSIP2ResponseValueException
code - media type code
InvalidSIP2ResponseValueException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||