|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.sip.proxy.SipProxyImpl
public class SipProxyImpl
Implementation of a SIP proxy.
| Constructor Summary | |
|---|---|
SipProxyImpl(SipRequestAndResponseForwarder forwarder,
SipRegistrar registrar,
org.lastbamboo.common.sip.stack.message.header.SipHeaderFactory sipHeaderFactory,
org.lastbamboo.common.sip.stack.message.SipMessageFactory sipMessageFactory,
org.lastbamboo.common.sip.stack.transport.SipTcpTransportLayer transportLayer)
Creates a new SIP server. |
|
| Method Summary | |
|---|---|
int |
getSipPort()
Accessor for the port SIP is running on. |
void |
serviceActivated(org.littleshoot.mina.common.IoService service,
SocketAddress serviceAddress,
org.littleshoot.mina.common.IoHandler handler,
org.littleshoot.mina.common.IoServiceConfig config)
|
void |
serviceDeactivated(org.littleshoot.mina.common.IoService service,
SocketAddress serviceAddress,
org.littleshoot.mina.common.IoHandler handler,
org.littleshoot.mina.common.IoServiceConfig config)
|
void |
sessionCreated(org.littleshoot.mina.common.IoSession session)
|
void |
sessionDestroyed(org.littleshoot.mina.common.IoSession session)
|
void |
start()
Starts the proxy. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SipProxyImpl(SipRequestAndResponseForwarder forwarder,
SipRegistrar registrar,
org.lastbamboo.common.sip.stack.message.header.SipHeaderFactory sipHeaderFactory,
org.lastbamboo.common.sip.stack.message.SipMessageFactory sipMessageFactory,
org.lastbamboo.common.sip.stack.transport.SipTcpTransportLayer transportLayer)
forwarder - The class that forwards messages.registrar - The class that tracks registered clients.sipHeaderFactory - The class for creating SIP headers.sipMessageFactory - The class for creating SIP messages.transportLayer - The class that writes messages to the network,
modifying them as appropriate prior to transport.| Method Detail |
|---|
public void start()
throws IOException
SipProxy
start in interface SipProxyIOException - If there's an error binding to the port.public void sessionCreated(org.littleshoot.mina.common.IoSession session)
sessionCreated in interface org.littleshoot.mina.common.IoServiceListenerpublic void sessionDestroyed(org.littleshoot.mina.common.IoSession session)
sessionDestroyed in interface org.littleshoot.mina.common.IoServiceListener
public void serviceActivated(org.littleshoot.mina.common.IoService service,
SocketAddress serviceAddress,
org.littleshoot.mina.common.IoHandler handler,
org.littleshoot.mina.common.IoServiceConfig config)
serviceActivated in interface org.littleshoot.mina.common.IoServiceListener
public void serviceDeactivated(org.littleshoot.mina.common.IoService service,
SocketAddress serviceAddress,
org.littleshoot.mina.common.IoHandler handler,
org.littleshoot.mina.common.IoServiceConfig config)
serviceDeactivated in interface org.littleshoot.mina.common.IoServiceListenerpublic int getSipPort()
SipProxyImplMBean
getSipPort in interface SipProxyImplMBeanpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||