Class TestMediaManager
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.media.JingleMediaManager
-
- org.jivesoftware.smackx.jingleold.mediaimpl.test.TestMediaManager
-
public class TestMediaManager extends JingleMediaManager
Implements a MediaManager for test purposes.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MEDIA_NAME
-
Constructor Summary
Constructors Constructor Description TestMediaManager(JingleTransportManager transportManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JingleMediaSession
createMediaSession(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, JingleSession jingleSession)
Returns a new JingleMediaSession.java.lang.String
getName()
java.util.List<PayloadType>
getPayloads()
Return all supported Payloads for this Manager.PayloadType
getPreferredPayloadType()
Returns the Preferred PayloadType of the Media Manager.void
setPayloads(java.util.List<PayloadType> payloads)
void
setPreferredPayloadType(PayloadType preferredPayloadType)
-
Methods inherited from class org.jivesoftware.smackx.jingleold.media.JingleMediaManager
getTransportManager
-
-
-
-
Field Detail
-
MEDIA_NAME
public static final java.lang.String MEDIA_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TestMediaManager
public TestMediaManager(JingleTransportManager transportManager)
-
-
Method Detail
-
getPayloads
public java.util.List<PayloadType> getPayloads()
Return all supported Payloads for this Manager.- Specified by:
getPayloads
in classJingleMediaManager
- Returns:
- The Payload List
-
setPayloads
public void setPayloads(java.util.List<PayloadType> payloads)
-
createMediaSession
public JingleMediaSession createMediaSession(PayloadType payloadType, TransportCandidate remote, TransportCandidate local, JingleSession jingleSession)
Returns a new JingleMediaSession.- Specified by:
createMediaSession
in classJingleMediaManager
- Parameters:
payloadType
- payloadTyperemote
- remote Candidatelocal
- local CandidatejingleSession
- the jingle session.- Returns:
- JingleMediaSession JingleMediaSession
-
getPreferredPayloadType
public PayloadType getPreferredPayloadType()
Description copied from class:JingleMediaManager
Returns the Preferred PayloadType of the Media Manager.- Overrides:
getPreferredPayloadType
in classJingleMediaManager
- Returns:
- The PayloadType
-
setPreferredPayloadType
public void setPreferredPayloadType(PayloadType preferredPayloadType)
-
getName
public java.lang.String getName()
- Overrides:
getName
in classJingleMediaManager
-
-