| java.lang.Object java.util.TimerTask gov.nist.microedition.sip.RefreshTask
RefreshTask | public RefreshTask(String id, Request rq, SipConnectionNotifier scn, SipRefreshListener listener, SipClientConnection scc)(Code) | | Creates a new instance of RefreshTask
Parameters: id - the task identifier Parameters: rq - the request to resend Parameters: scn - the connection used to send the request Parameters: listener - the callback interface used listening forrefresh event on this task Parameters: scc - the connection to update |
getNewCallId | public CallIdHeader getNewCallId()(Code) | | Gets the new caller identifier.
the caller identifier |
getRequest | public synchronized Request getRequest()(Code) | | Returns the request to refresh
the request to refresh |
getSipClientConnection | public SipClientConnection getSipClientConnection()(Code) | | Return the sipClientconnection on which is enabled the listener
the sipClientconnection on which is enabled the listener |
getSipConnectionNotifier | public SipConnectionNotifier getSipConnectionNotifier()(Code) | | Return the callback interface listening for events on this task
the callback interface listening for events on this task |
getSipRefreshListener | public SipRefreshListener getSipRefreshListener()(Code) | | Return the callback interface listening for events on this task
the callback interface listening for events on this task |
getTaskId | public String getTaskId()(Code) | | Returns the task identifier
the task identifier |
setRequestHeaders | public synchronized void setRequestHeaders(Request clonedRequest)(Code) | | Sets appropriate CSeq and Via headers in the given request
preparing it for sending.
Parameters: clonedRequest - the request to modify |
updateAndSendRequest | public synchronized void updateAndSendRequest(Request updatedRequest) throws IOException, InterruptedIOException, SipException(Code) | | Updates the request in the sipClientConnection and sends it.
Parameters: updatedRequest - the updated request throws: IOException - if the message could not be sent or becauseof network failure throws: InterruptedIOException - if a timeout occurs whileeither trying to send the message or if this Connection objectis closed during this send operation throws: SipException - INVALID_STATE if the message cannot be sentin this state. INVALID_MESSAGE there was an errorin message format |
updateRequestAndOpenOutputStream | public synchronized OutputStream updateRequestAndOpenOutputStream(Request updatedRequest) throws IOException, SipException(Code) | | Updates the request in the sipClientConnection and calls
SipClientConnection.openContentOutputStream() to fill
the new message body content.
Parameters: updatedRequest - the updated request OutputStream to write body content throws: IOException - if the OutputStream can not be opened,because of an I/O error occurred. throws: SipException - INVALID_STATE the OutputStream can not be openedin this state (e.g. no message initialized).UNKNOWN_LENGTH Content-Length header not set.UNKNOWN_TYPE Content-Type header not set. |
|
|