| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.sip.SipSession |
_session |
static String |
INITIAL_REQUEST_ATTRIBUTE |
| Constructor and Description |
|---|
Dialog() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(javax.servlet.sip.SipServletRequest request)
Opens a dialog with an incoming request.
|
javax.servlet.sip.SipServletRequest |
createInitialRequest(String method,
javax.servlet.sip.Address local,
javax.servlet.sip.Address remote) |
javax.servlet.sip.SipServletRequest |
createInitialRequest(String method,
javax.servlet.sip.URI local,
javax.servlet.sip.URI remote)
Creates the request that should initiate the dialog.
|
javax.servlet.sip.SipServletRequest |
createRequest(String method) |
List<Credentials> |
getCredentials() |
javax.servlet.sip.SipFactory |
getFactory() |
javax.servlet.sip.Address |
getOutboundProxy() |
javax.servlet.sip.SipSession |
getSession() |
SessionHandler |
getSessionHandler() |
long |
getTimeout() |
void |
setCredentials(List<Credentials> credentials) |
void |
setFactory(javax.servlet.sip.SipFactory factory) |
void |
setOutboundProxy(javax.servlet.sip.Address outboundProxy) |
void |
setTimeout(long timeout) |
void |
start(javax.servlet.sip.SipServletRequest request)
Starts this dialog.
|
void |
terminate(javax.servlet.sip.SipServletRequest request)
Synchronously ends this dialog.
|
void |
updateDialog(javax.servlet.sip.SipServletResponse response)
Update the dialog with the response.
|
javax.servlet.sip.SipServletResponse |
waitForFinalResponse() |
javax.servlet.sip.SipServletRequest |
waitForRequest() |
javax.servlet.sip.SipServletResponse |
waitForResponse() |
public static final String INITIAL_REQUEST_ATTRIBUTE
protected javax.servlet.sip.SipSession _session
public javax.servlet.sip.SipFactory getFactory()
public void setFactory(javax.servlet.sip.SipFactory factory)
public List<Credentials> getCredentials()
public void setCredentials(List<Credentials> credentials)
public long getTimeout()
public void setTimeout(long timeout)
public javax.servlet.sip.SipSession getSession()
public void accept(javax.servlet.sip.SipServletRequest request)
throws javax.servlet.ServletException
The dialog is configured with the given request. The method returns immediately and the caller should then prepare and send its response. so as to finish the dialog establishment.
request - The request that was received and which opens this dialog.javax.servlet.ServletExceptionpublic void start(javax.servlet.sip.SipServletRequest request)
throws IOException,
javax.servlet.ServletException
The dialog is configured and the given request is sent. The method
returns immediately after the request is sent. The caller then should
Call waitForResponse or waitForFinalResponse on
this dialog and react accordingly so as to finish the dialog
establishment.
request - The request that will be sent to open this dialog. Ideally,
this request was created with
createInitialRequest, or with a specialized
method in child classes and eventually tweaked as desired
afterwards.IOExceptionjavax.servlet.ServletExceptionpublic void terminate(javax.servlet.sip.SipServletRequest request)
throws IOException
request - IOExceptionpublic javax.servlet.sip.SipServletRequest createInitialRequest(String method, javax.servlet.sip.URI local, javax.servlet.sip.URI remote)
The initial request being dependent on the kind of dialog, this method is
to be implemented by the dialog specialization classes. The caller is
authorized to complete it before providing it to start.
local - the URI of the local user agent, the one which is creating
this dialog.remote - the URI of the remote agent in the dialog.public javax.servlet.sip.SipServletRequest createInitialRequest(String method, javax.servlet.sip.Address local, javax.servlet.sip.Address remote)
public javax.servlet.sip.SipServletRequest createRequest(String method)
public javax.servlet.sip.SipServletRequest waitForRequest()
public javax.servlet.sip.SipServletResponse waitForResponse()
public javax.servlet.sip.SipServletResponse waitForFinalResponse()
public SessionHandler getSessionHandler()
public javax.servlet.sip.Address getOutboundProxy()
public void setOutboundProxy(javax.servlet.sip.Address outboundProxy)
public void updateDialog(javax.servlet.sip.SipServletResponse response)
Copyright © 2014. All Rights Reserved.