public class Publisher extends Dialog
_session, INITIAL_REQUEST_ATTRIBUTE| Constructor and Description |
|---|
Publisher(javax.servlet.sip.Address aor) |
| Modifier and Type | Method and Description |
|---|---|
String |
getEtag() |
javax.servlet.sip.SipServletRequest |
newPublish(byte[] body,
int expires) |
javax.servlet.sip.SipServletRequest |
newPublish(InputStream body,
int expires) |
javax.servlet.sip.SipServletRequest |
newUnPublish() |
void |
start(javax.servlet.sip.SipServletRequest request)
Starts this dialog.
|
javax.servlet.sip.SipServletResponse |
waitForFinalResponse() |
javax.servlet.sip.SipServletResponse |
waitForResponse() |
accept, createInitialRequest, createInitialRequest, createRequest, getCredentials, getFactory, getOutboundProxy, getSession, getSessionHandler, getTimeout, setCredentials, setFactory, setOutboundProxy, setTimeout, terminate, updateDialog, waitForRequestpublic javax.servlet.sip.SipServletRequest newUnPublish()
throws IOException
IOExceptionpublic javax.servlet.sip.SipServletRequest newPublish(InputStream body, int expires) throws IOException
IOExceptionpublic javax.servlet.sip.SipServletRequest newPublish(byte[] body,
int expires)
public javax.servlet.sip.SipServletResponse waitForResponse()
waitForResponse in class Dialogpublic javax.servlet.sip.SipServletResponse waitForFinalResponse()
waitForFinalResponse in class Dialogpublic String getEtag()
public void start(javax.servlet.sip.SipServletRequest request)
throws IOException,
javax.servlet.ServletException
Dialog
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.
start in class Dialogrequest - 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.ServletExceptionCopyright © 2014. All Rights Reserved.