|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.midlet.MIDlet
example.sip.BaseUAC
public abstract class BaseUAC
Application demonstrates sip clients talking via sip server and registrar. Both clients register to sip registrar. Send connection informations in INVITE message to each other and start to communicate via sockets. Application demonstrates REGISTER, INVITE, BYE requests and OK, RINGING responses.
Nested Class Summary | |
---|---|
(package private) class |
BaseUAC.Status
Help to keep status of application. |
Field Summary | |
---|---|
protected javax.microedition.lcdui.Form |
byeFrm
|
protected javax.microedition.lcdui.Form |
failFrm
|
java.lang.String |
friendDomain
second client's domain |
java.lang.String |
friendName
user name of second client |
int |
friendSipPort
sip port of second client we need this because running both clients on the same machine. |
int |
friendSocket
socket used by second client |
protected javax.microedition.lcdui.Form |
inviteFrm
|
java.lang.String |
myDisplayName
display name of the client |
java.lang.String |
myName
user name if the client |
int |
mySipPort
sip port the client is listening on |
int |
mySocket
socket used by this client |
protected javax.microedition.lcdui.Form |
proxyFrm
forms used in ui |
protected javax.microedition.lcdui.Form |
registerFrm
|
protected javax.microedition.lcdui.Form |
ringingFrm
|
protected javax.microedition.lcdui.Form |
sendFrm
|
protected javax.microedition.lcdui.Form |
talkFrm
|
protected javax.microedition.lcdui.Form |
waitScreen
|
Constructor Summary | |
---|---|
BaseUAC()
|
Method Summary | |
---|---|
void |
commandAction(javax.microedition.lcdui.Command command,
javax.microedition.lcdui.Displayable displayable)
|
void |
destroyApp(boolean unconditional)
|
java.io.InputStream |
getSocketIStream()
|
java.io.OutputStream |
getSocketOStream()
|
void |
notifyRequest(javax.microedition.sip.SipConnectionNotifier sipConnectionNotifier)
|
void |
notifyResponse(javax.microedition.sip.SipClientConnection sipClientConnection)
|
void |
pauseApp()
|
void |
setFriendIdentity(java.lang.String name,
java.lang.String domain,
int port)
Setup all params of 2nd client. |
void |
setProxyAddress(java.lang.String address)
|
void |
setSocket(int socket)
|
void |
setUserIdentity(java.lang.String name,
java.lang.String displayName,
int port)
Setup all params of the client. |
void |
start()
|
Methods inherited from class javax.microedition.midlet.MIDlet |
---|
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest, startApp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String myName
public java.lang.String myDisplayName
public int mySocket
public int mySipPort
public java.lang.String friendName
public int friendSocket
public int friendSipPort
public java.lang.String friendDomain
protected javax.microedition.lcdui.Form proxyFrm
protected javax.microedition.lcdui.Form registerFrm
protected javax.microedition.lcdui.Form waitScreen
protected javax.microedition.lcdui.Form inviteFrm
protected javax.microedition.lcdui.Form talkFrm
protected javax.microedition.lcdui.Form sendFrm
protected javax.microedition.lcdui.Form failFrm
protected javax.microedition.lcdui.Form ringingFrm
protected javax.microedition.lcdui.Form byeFrm
Constructor Detail |
---|
public BaseUAC()
Method Detail |
---|
public void start()
public void pauseApp()
pauseApp
in class javax.microedition.midlet.MIDlet
public void destroyApp(boolean unconditional)
destroyApp
in class javax.microedition.midlet.MIDlet
public void setProxyAddress(java.lang.String address)
public void setSocket(int socket)
public void setUserIdentity(java.lang.String name, java.lang.String displayName, int port)
name
- username of the client.displayName
- the display name of the user.port
- sip listener portpublic void setFriendIdentity(java.lang.String name, java.lang.String domain, int port)
name
- the username of 2nd clientdomain
- the domain of 2nd clientport
- the listener sip port of 2nd clientpublic void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable)
commandAction
in interface javax.microedition.lcdui.CommandListener
public void notifyResponse(javax.microedition.sip.SipClientConnection sipClientConnection)
notifyResponse
in interface javax.microedition.sip.SipClientConnectionListener
public void notifyRequest(javax.microedition.sip.SipConnectionNotifier sipConnectionNotifier)
notifyRequest
in interface javax.microedition.sip.SipServerConnectionListener
public java.io.InputStream getSocketIStream()
public java.io.OutputStream getSocketOStream()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |