public abstract class ServerEngine extends java.lang.Object implements SipProviderListener
For each incoming message, the ServerEngine fires one of the following abstract methods:
Modifier and Type | Field and Description |
---|---|
protected AuthenticationServer |
as
AuthenticationServer.
|
protected static java.lang.String[] |
AUTHENTICATION_SCHEMES
List of already supported authentication schemes
|
protected static java.lang.String[] |
AUTHENTICATION_SERVER_CLASSES
List of authentication server Classes (ordered as in AUTHENTICATION_SCHEMES)
|
protected AuthenticationService |
authentication_service
AuthenticationService (i.e. the repository with authentication credentials).
|
protected static java.lang.String[] |
AUTHENTICATION_SERVICE_CLASSES
List of authentication service Classes (ordered as in AUTHENTICATION_SERVICES)
|
protected static java.lang.String[] |
AUTHENTICATION_SERVICES
List of already supported authentication services
|
protected LocationService |
location_service
LocationService.
|
protected static java.lang.String[] |
LOCATION_SERVICE_CLASSES
List of location service Classes (ordered as in LOCATION_SERVICES)
|
protected static java.lang.String[] |
LOCATION_SERVICES
List of already supported location services
|
protected Logger |
logger
Logger
|
protected static java.lang.String |
Loop_Tag
Name of the Loop-Tag header field.
|
protected ServerProfile |
server_profile
ServerProfile of the server.
|
protected SipProvider |
sip_provider
SipProvider used by the server.
|
Modifier | Constructor and Description |
---|---|
protected |
ServerEngine()
Costructs a void ServerEngine
|
|
ServerEngine(SipProvider provider,
ServerProfile profile)
Costructs a new ServerEngine on SipProvider provider,
and adds it as SipProviderListener.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getLocalDomains()
Gets a String of the list of local domain names.
|
protected boolean |
isResponsibleFor(GenericURI uri)
Whether the server is responsible for the specified URI.
|
protected boolean |
isResponsibleFor(SipMessage req)
Whether the server is responsible for the request-uri of the request req.
|
protected boolean |
isResponsibleFor(java.lang.String domain,
int port)
Whether the server is responsible for the given domain
(i.e. the domain is included in the local domain names list)
and port (if >0) matches the local server port.
|
void |
onReceivedMessage(SipProvider provider,
SipMessage msg)
When a new message is received by the SipProvider.
|
abstract void |
processRequestToLocalServer(SipMessage req)
When a new request request is received for the local server
|
abstract void |
processRequestToLocalUser(SipMessage req)
When a new request message is received for a locally registered user
|
abstract void |
processRequestToRemoteUA(SipMessage req)
When a new request message is received for a remote UA
|
abstract void |
processResponse(SipMessage resp)
When a new response message is received
|
protected SipMessage |
validateRequest(SipMessage msg)
Validates the message.
|
protected static final java.lang.String Loop_Tag
protected Logger logger
protected ServerProfile server_profile
protected SipProvider sip_provider
protected LocationService location_service
protected AuthenticationService authentication_service
protected AuthenticationServer as
protected static final java.lang.String[] LOCATION_SERVICES
protected static final java.lang.String[] LOCATION_SERVICE_CLASSES
protected static final java.lang.String[] AUTHENTICATION_SERVICES
protected static final java.lang.String[] AUTHENTICATION_SERVICE_CLASSES
protected static final java.lang.String[] AUTHENTICATION_SCHEMES
protected static final java.lang.String[] AUTHENTICATION_SERVER_CLASSES
protected ServerEngine()
public ServerEngine(SipProvider provider, ServerProfile profile)
public abstract void processRequestToRemoteUA(SipMessage req)
public abstract void processRequestToLocalUser(SipMessage req)
public abstract void processRequestToLocalServer(SipMessage req)
public abstract void processResponse(SipMessage resp)
public void onReceivedMessage(SipProvider provider, SipMessage msg)
onReceivedMessage
in interface SipProviderListener
protected boolean isResponsibleFor(java.lang.String domain, int port)
protected boolean isResponsibleFor(SipMessage req)
protected boolean isResponsibleFor(GenericURI uri)
protected java.lang.String getLocalDomains()
protected SipMessage validateRequest(SipMessage msg)