2011-03-25 09:38:07 +00:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
2014-11-18 21:05:40 +00:00
|
|
|
* Version 2.0.9
|
2011-03-25 09:38:07 +00:00
|
|
|
*
|
|
|
|
* Do not make changes to this file unless you know what you are doing--modify
|
|
|
|
* the SWIG interface file instead.
|
|
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
package org.doubango.tinyWRAP;
|
|
|
|
|
|
|
|
public class MsrpSession extends InviteSession {
|
|
|
|
private long swigCPtr;
|
|
|
|
|
2012-11-02 16:24:29 +00:00
|
|
|
protected MsrpSession(long cPtr, boolean cMemoryOwn) {
|
2014-11-18 21:05:40 +00:00
|
|
|
super(tinyWRAPJNI.MsrpSession_SWIGUpcast(cPtr), cMemoryOwn);
|
2011-03-25 09:38:07 +00:00
|
|
|
swigCPtr = cPtr;
|
|
|
|
}
|
|
|
|
|
2012-11-02 16:24:29 +00:00
|
|
|
protected static long getCPtr(MsrpSession obj) {
|
2011-03-25 09:38:07 +00:00
|
|
|
return (obj == null) ? 0 : obj.swigCPtr;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected void finalize() {
|
|
|
|
delete();
|
|
|
|
}
|
|
|
|
|
|
|
|
public synchronized void delete() {
|
2012-05-02 10:42:55 +00:00
|
|
|
if (swigCPtr != 0) {
|
|
|
|
if (swigCMemOwn) {
|
|
|
|
swigCMemOwn = false;
|
|
|
|
tinyWRAPJNI.delete_MsrpSession(swigCPtr);
|
|
|
|
}
|
|
|
|
swigCPtr = 0;
|
2011-03-25 09:38:07 +00:00
|
|
|
}
|
|
|
|
super.delete();
|
|
|
|
}
|
|
|
|
|
2011-04-24 02:14:39 +00:00
|
|
|
public MsrpSession(SipStack pStack, MsrpCallback pCallback) {
|
|
|
|
this(tinyWRAPJNI.new_MsrpSession(SipStack.getCPtr(pStack), pStack, MsrpCallback.getCPtr(pCallback), pCallback), true);
|
2011-03-25 09:38:07 +00:00
|
|
|
}
|
|
|
|
|
2011-04-24 02:14:39 +00:00
|
|
|
public boolean setCallback(MsrpCallback pCallback) {
|
|
|
|
return tinyWRAPJNI.MsrpSession_setCallback(swigCPtr, this, MsrpCallback.getCPtr(pCallback), pCallback);
|
2011-03-25 09:38:07 +00:00
|
|
|
}
|
|
|
|
|
2011-04-24 02:14:39 +00:00
|
|
|
public boolean callMsrp(String remoteUriString, ActionConfig config) {
|
|
|
|
return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config);
|
2011-03-25 09:38:07 +00:00
|
|
|
}
|
|
|
|
|
2011-04-24 02:14:39 +00:00
|
|
|
public boolean callMsrp(String remoteUriString) {
|
|
|
|
return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_1(swigCPtr, this, remoteUriString);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean callMsrp(SipUri remoteUri, ActionConfig config) {
|
|
|
|
return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean callMsrp(SipUri remoteUri) {
|
|
|
|
return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri);
|
2011-03-25 09:38:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean sendMessage(java.nio.ByteBuffer payload, long len, ActionConfig config) {
|
|
|
|
return tinyWRAPJNI.MsrpSession_sendMessage__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean sendMessage(java.nio.ByteBuffer payload, long len) {
|
|
|
|
return tinyWRAPJNI.MsrpSession_sendMessage__SWIG_1(swigCPtr, this, payload, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean sendFile(ActionConfig config) {
|
|
|
|
return tinyWRAPJNI.MsrpSession_sendFile__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean sendFile() {
|
|
|
|
return tinyWRAPJNI.MsrpSession_sendFile__SWIG_1(swigCPtr, this);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|