org.lastbamboo.common.sip.proxy.stateless
Class StatelessSipProxy

java.lang.Object
  extended by org.lastbamboo.common.sip.proxy.stateless.StatelessSipProxy
All Implemented Interfaces:
SipRequestAndResponseForwarder, SipRequestForwarder

public class StatelessSipProxy
extends Object
implements SipRequestAndResponseForwarder

Creates a new stateless SIP proxy.


Constructor Summary
StatelessSipProxy(org.lastbamboo.common.sip.stack.transport.SipTcpTransportLayer transportLayer, SipRegistrar registrar, SipRequestForwarder unregisteredUriForwarder, SipRequestForwarder externalDomainForwarder, org.lastbamboo.common.sip.stack.util.UriUtils uriUtils, org.lastbamboo.common.sip.stack.message.SipMessageFactory messageFactory)
          Creates a new stateless SIP proxy.
 
Method Summary
 void forwardSipRequest(org.lastbamboo.common.sip.stack.message.Invite request)
          Forwards the SIP request to the appropriate target.
 void forwardSipResponse(org.lastbamboo.common.sip.stack.message.SipResponse originalResponse)
          Forwards the SIP response to the appropriate target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatelessSipProxy

public StatelessSipProxy(org.lastbamboo.common.sip.stack.transport.SipTcpTransportLayer transportLayer,
                         SipRegistrar registrar,
                         SipRequestForwarder unregisteredUriForwarder,
                         SipRequestForwarder externalDomainForwarder,
                         org.lastbamboo.common.sip.stack.util.UriUtils uriUtils,
                         org.lastbamboo.common.sip.stack.message.SipMessageFactory messageFactory)
Creates a new stateless SIP proxy.

Parameters:
transportLayer - The class for sending messages.
registrar - The registrar the proxy uses to lookup client connections.
unregisteredUriForwarder - The class for forwarding messages when we do not have registration data for the URI.
externalDomainForwarder - The class for forwarding messages to domains we are not responsible for, such as 'vonage.com'.
uriUtils - Class for handling SIP uris.
messageFactory - The class for creating SIP messages.
Method Detail

forwardSipRequest

public void forwardSipRequest(org.lastbamboo.common.sip.stack.message.Invite request)
Description copied from interface: SipRequestForwarder
Forwards the SIP request to the appropriate target.

Specified by:
forwardSipRequest in interface SipRequestForwarder
Parameters:
request - The request to forward.

forwardSipResponse

public void forwardSipResponse(org.lastbamboo.common.sip.stack.message.SipResponse originalResponse)
                        throws IOException
Description copied from interface: SipRequestAndResponseForwarder
Forwards the SIP response to the appropriate target.

Specified by:
forwardSipResponse in interface SipRequestAndResponseForwarder
Parameters:
originalResponse - The response to forward.
Throws:
IOException - If the response could not be forwarded as expected.


Copyright © 2013 LittleShoot. All Rights Reserved.