public class SipRegistrarlessConnection extends SipRegistrarConnection
regTrans
Constructor and Description |
---|
SipRegistrarlessConnection(ProtocolProviderServiceSipImpl sipProviderCallback,
java.lang.String defaultTransport)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
javax.sip.SipProvider |
getJainSipProvider()
Returns the default jain-sip provider for our parent provider.
|
RegistrationState |
getRegistrationState()
Returns the state of this connection.
|
java.lang.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,
java.lang.String reason)
Sets our registration state to newState and dispatches an event
through the protocol provider service impl.
|
java.lang.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.
|
getAddressOfRecord, getRegistrarURI, isRequestFromSameConnection, isRouteHeaderEnabled, processIOException, processNotImplemented, processOK, processRequest, processResponse, processTimeout, setRegistrationState, setTransport, unregister
processDialogTerminated, processTransactionTerminated
public SipRegistrarlessConnection(ProtocolProviderServiceSipImpl sipProviderCallback, java.lang.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.void register() throws OperationFailedException
register
in class SipRegistrarConnection
OperationFailedException
- never thrownpublic void unregister() throws OperationFailedException
unregister
in class SipRegistrarConnection
OperationFailedException
- never thrown.public RegistrationState getRegistrationState()
getRegistrationState
in class SipRegistrarConnection
public void setRegistrationState(RegistrationState newState, int reasonCode, java.lang.String reason)
setRegistrationState
in class SipRegistrarConnection
newState
- 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 SipRegistrarConnection
public java.lang.String getTransport()
getTransport
in class SipRegistrarConnection
public java.lang.String toString()
toString
in class SipRegistrarConnection
public boolean isRegistrarless()
isRegistrarless
in class SipRegistrarConnection
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.