|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.mock.MockProvider
public class MockProvider
A mock protocol provider implementation that comes with a single operation set (OperationSetPersistentPresence) for use by the MetaContactListSlcik.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.ProtocolProviderService |
|---|
BIND_RETRIES_DEFAULT_VALUE, BIND_RETRIES_PROPERTY_NAME |
| Constructor Summary | |
|---|---|
MockProvider(String userName)
Creates an instance of this mockprovider with a supportedOperationSet-s map set to contain a single persistent presence operation set. |
|
| Method Summary | ||
|---|---|---|
void |
addRegistrationStateChangeListener(RegistrationStateChangeListener listener)
Mock implementation of the corresponding ProtocolProviderService method. |
|
AccountID |
getAccountID()
Returns the AccountID that uniquely identifies the account represented by this instance of the ProtocolProviderService. |
|
|
getOperationSet(Class<T> opsetClass)
Returns the operation set corresponding to the specified class or null if this operation set is not supported by the provider implementation. |
|
String |
getProtocolDisplayName()
Mock implementation of the corresponding ProtocolProviderService method. |
|
ProtocolIcon |
getProtocolIcon()
Mock implementation of the corresponding ProtocolProviderService method. |
|
String |
getProtocolName()
Mock implementation of the corresponding ProtocolProviderService method. |
|
RegistrationState |
getRegistrationState()
Mock implementation of the corresponding ProtocolProviderService method. |
|
Map<String,OperationSet> |
getSupportedOperationSets()
Returns an array containing all operation sets supported by the current implementation. |
|
boolean |
isRegistered()
Mock implementation of the corresponding ProtocolProviderService method. |
|
boolean |
isSignalingTransportSecure()
Indicate if the signaling transport of this protocol instance uses a secure (e.g. |
|
void |
register(SecurityAuthority authority)
Mock implementation of the corresponding ProtocolProviderService method. |
|
void |
removeRegistrationStateChangeListener(RegistrationStateChangeListener listener)
Mock implementation of the corresponding ProtocolProviderService method. |
|
void |
shutdown()
Mock implementation of the corresponding ProtocolProviderService method. |
|
void |
unregister()
Mock implementation of the corresponding ProtocolProviderService method. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.protocol.ProtocolProviderService |
|---|
hashCode |
| Constructor Detail |
|---|
public MockProvider(String userName)
userName - an almost ignorable string (any value is accepted) that
should be used when constructing account id's| Method Detail |
|---|
public void addRegistrationStateChangeListener(RegistrationStateChangeListener listener)
addRegistrationStateChangeListener in interface ProtocolProviderServicelistener - a param.public String getProtocolName()
getProtocolName in interface ProtocolProviderServicepublic String getProtocolDisplayName()
getProtocolDisplayName in interface ProtocolProviderServicepublic RegistrationState getRegistrationState()
getRegistrationState in interface ProtocolProviderServicepublic Map<String,OperationSet> getSupportedOperationSets()
getSupportedOperationSets in interface ProtocolProviderServicepublic <T extends OperationSet> T getOperationSet(Class<T> opsetClass)
getOperationSet in interface ProtocolProviderServiceT - the type which extends OperationSet and which is to
be retrievedopsetClass - the Class of the operation set that we're
looking for.
public boolean isRegistered()
isRegistered in interface ProtocolProviderServicepublic void register(SecurityAuthority authority)
register in interface ProtocolProviderServiceauthority - a dummy parampublic void removeRegistrationStateChangeListener(RegistrationStateChangeListener listener)
removeRegistrationStateChangeListener in interface ProtocolProviderServicelistener - a dummy param.public void shutdown()
shutdown in interface ProtocolProviderServicepublic void unregister()
unregister in interface ProtocolProviderServicepublic boolean isSignalingTransportSecure()
ProtocolProviderService
isSignalingTransportSecure in interface ProtocolProviderServicepublic AccountID getAccountID()
getAccountID in interface ProtocolProviderServicepublic ProtocolIcon getProtocolIcon()
getProtocolIcon in interface ProtocolProviderService
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||