MsrpSession.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.tinyWRAP;
  9. public class MsrpSession extends InviteSession {
  10. private long swigCPtr;
  11. protected MsrpSession(long cPtr, boolean cMemoryOwn) {
  12. super(tinyWRAPJNI.MsrpSession_SWIGUpcast(cPtr), cMemoryOwn);
  13. swigCPtr = cPtr;
  14. }
  15. protected static long getCPtr(MsrpSession obj) {
  16. return (obj == null) ? 0 : obj.swigCPtr;
  17. }
  18. protected void finalize() {
  19. delete();
  20. }
  21. public synchronized void delete() {
  22. if (swigCPtr != 0) {
  23. if (swigCMemOwn) {
  24. swigCMemOwn = false;
  25. tinyWRAPJNI.delete_MsrpSession(swigCPtr);
  26. }
  27. swigCPtr = 0;
  28. }
  29. super.delete();
  30. }
  31. public MsrpSession(SipStack pStack, MsrpCallback pCallback) {
  32. this(tinyWRAPJNI.new_MsrpSession(SipStack.getCPtr(pStack), pStack, MsrpCallback.getCPtr(pCallback), pCallback), true);
  33. }
  34. public boolean setCallback(MsrpCallback pCallback) {
  35. return tinyWRAPJNI.MsrpSession_setCallback(swigCPtr, this, MsrpCallback.getCPtr(pCallback), pCallback);
  36. }
  37. public boolean callMsrp(String remoteUriString, ActionConfig config) {
  38. return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config);
  39. }
  40. public boolean callMsrp(String remoteUriString) {
  41. return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_1(swigCPtr, this, remoteUriString);
  42. }
  43. public boolean callMsrp(SipUri remoteUri, ActionConfig config) {
  44. return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config);
  45. }
  46. public boolean callMsrp(SipUri remoteUri) {
  47. return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri);
  48. }
  49. public boolean sendMessage(java.nio.ByteBuffer payload, long len, ActionConfig config) {
  50. return tinyWRAPJNI.MsrpSession_sendMessage__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config);
  51. }
  52. public boolean sendMessage(java.nio.ByteBuffer payload, long len) {
  53. return tinyWRAPJNI.MsrpSession_sendMessage__SWIG_1(swigCPtr, this, payload, len);
  54. }
  55. public boolean sendFile(ActionConfig config) {
  56. return tinyWRAPJNI.MsrpSession_sendFile__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
  57. }
  58. public boolean sendFile() {
  59. return tinyWRAPJNI.MsrpSession_sendFile__SWIG_1(swigCPtr, this);
  60. }
  61. }