| java.lang.Object javax.microedition.sip.SipRefreshHelper
SipRefreshHelper | public class SipRefreshHelper (Code) | | This class implements the functionality that facilitates the handling of
refreshing requests on behalf of the application.
See Also: JSR180 See Also: spec, v 1.0.1, p 58-61 |
Method Summary | |
public static javax.microedition.sip.SipRefreshHelper | getInstance() | public void | stop(int refreshID) Stops refreshing a specific request related to refeshID. | public java.io.OutputStream | update(int refreshID, java.lang.String[] contact, java.lang.String type, int length, int expires) Updates one refreshed request with new values.
See Also: JSR180 See Also: spec, v 1.0.1, p 60 Parameters: type - value of Content-Type (null or empty, no content) Parameters: length - value of Content-Length (<=0, no content) Parameters: expires - value of Expires (-1, no Expires header),(0, stop the refresh) Returns the OutputStream to fill the content. |
stop | public void stop(int refreshID)(Code) | | Stops refreshing a specific request related to refeshID.
See Also: JSR180 See Also: spec, v 1.0.1, p 60 Parameters: refreshID - the ID of the refresh to be stopped. If the IDdoes not match any refresh task the method does nothing. |
update | public java.io.OutputStream update(int refreshID, java.lang.String[] contact, java.lang.String type, int length, int expires)(Code) | | Updates one refreshed request with new values.
See Also: JSR180 See Also: spec, v 1.0.1, p 60 Parameters: type - value of Content-Type (null or empty, no content) Parameters: length - value of Content-Length (<=0, no content) Parameters: expires - value of Expires (-1, no Expires header),(0, stop the refresh) Returns the OutputStream to fill the content. If the update doesnot have new content (type = null and/or length = 0) method returns nulland the message is sent automatically. throws: java.lang.IllegalArgumentException - if some input parameteris invalid |
|
|