public static final class Media.Location
extends java.lang.Object
Specifies the out-of-band location of the media data.
This class is immutable.
Constructor and Description |
---|
Location(java.lang.String type,
java.net.URI uri)
Creates a media location.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getType()
Gets the MIME type of the media.
|
java.net.URI |
getUri()
Gets the URI.
|
public Location(java.lang.String type, java.net.URI uri)
Creates a media location.
type
- The MIME type, see also getType()
uri
- The location of the media.public final java.net.URI getUri()
Gets the URI.
public final java.lang.String getType()
Gets the MIME type of the media.
The value of the ‘type’ attribute MUST match the syntax specified in RFC 2045 [5]. That is, the value MUST include a top-level media type, the “/” character, and a subtype; in addition, it MAY include one or more optional parameters (e.g., the “audio/ogg” MIME type in the example shown below includes a “codecs” parameter as specified in RFC 4281 [6]). The “type/subtype” string SHOULD be registered in the IANA MIME Media Types Registry [7], but MAY be an unregistered or yet-to-be-registered value.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.