|
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.sip.MethodProcessorAdapter
net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection
net.java.sip.communicator.impl.protocol.sip.SipRegistrarlessConnection
public class SipRegistrarlessConnection
Allows SIP communicator to create SIP accounts without a registrar. We use this class as a replacement of the SipRegistrarConnection for accounts that do not have a configured registrar.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection |
|---|
regTrans |
| Constructor Summary | |
|---|---|
SipRegistrarlessConnection(ProtocolProviderServiceSipImpl sipProviderCallback,
String defaultTransport)
Creates a new instance of this class. |
|
| Method Summary | |
|---|---|
javax.sip.SipProvider |
getJainSipProvider()
Returns the default jain-sip provider for our parent provider. |
RegistrationState |
getRegistrationState()
Returns the state of this connection. |
String |
getTransport()
Returns the default transport for our parent provider. |
boolean |
isRegistrarless()
Returns true if this is a fake connection that is not actually using a registrar. |
(package private) void |
register()
Simply sets the state of the connection to REGISTERED without doing anything else. |
void |
setRegistrationState(RegistrationState newState,
int reasonCode,
String reason)
Sets our registration state to newState and dispatches an event through the protocol provider service impl. |
String |
toString()
Returns a string representation of this connection instance instance including information that would permit to distinguish it among other sip listeners when reading a log file. |
void |
unregister()
Simply sets the state of the connection to UNREGISTERED without doing anything else. |
| Methods inherited from class net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection |
|---|
getAddressOfRecord, getRegistrarURI, isRequestFromSameConnection, isRouteHeaderEnabled, processIOException, processNotImplemented, processOK, processRequest, processResponse, processTimeout, setTransport |
| Methods inherited from class net.java.sip.communicator.impl.protocol.sip.MethodProcessorAdapter |
|---|
processDialogTerminated, processTransactionTerminated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SipRegistrarlessConnection(ProtocolProviderServiceSipImpl sipProviderCallback,
String defaultTransport)
sipProviderCallback - a reference to the
ProtocolProviderServiceSipImpl instance that created us.defaultTransport - the transport that we should fake to be using
in case some of the other components in the sip package wants to use it
as a default.| Method Detail |
|---|
void register()
throws OperationFailedException
register in class SipRegistrarConnectionOperationFailedException - never thrown
public void unregister()
throws OperationFailedException
unregister in class SipRegistrarConnectionOperationFailedException - never thrown.public RegistrationState getRegistrationState()
getRegistrationState in class SipRegistrarConnection
public void setRegistrationState(RegistrationState newState,
int reasonCode,
String reason)
setRegistrationState in class SipRegistrarConnectionnewState - a reference to the RegistrationState that we're currently
detaining.reasonCode - one of the REASON_XXX error codes specified in
RegistrationStateChangeEvent.reason - a reason String further explaining the reasonCode.public javax.sip.SipProvider getJainSipProvider()
getJainSipProvider in class SipRegistrarConnectionpublic String getTransport()
getTransport in class SipRegistrarConnectionpublic String toString()
toString in class SipRegistrarConnectionpublic boolean isRegistrarless()
isRegistrarless in class SipRegistrarConnection
|
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 | |||||||||