SipUri.java 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 SipUri {
  10. private long swigCPtr;
  11. protected boolean swigCMemOwn;
  12. protected SipUri(long cPtr, boolean cMemoryOwn) {
  13. swigCMemOwn = cMemoryOwn;
  14. swigCPtr = cPtr;
  15. }
  16. protected static long getCPtr(SipUri obj) {
  17. return (obj == null) ? 0 : obj.swigCPtr;
  18. }
  19. protected void finalize() {
  20. delete();
  21. }
  22. public synchronized void delete() {
  23. if (swigCPtr != 0) {
  24. if (swigCMemOwn) {
  25. swigCMemOwn = false;
  26. tinyWRAPJNI.delete_SipUri(swigCPtr);
  27. }
  28. swigCPtr = 0;
  29. }
  30. }
  31. public SipUri(String uriString, String displayName) {
  32. this(tinyWRAPJNI.new_SipUri__SWIG_0(uriString, displayName), true);
  33. }
  34. public SipUri(String uriString) {
  35. this(tinyWRAPJNI.new_SipUri__SWIG_1(uriString), true);
  36. }
  37. public static boolean isValid(String arg0) {
  38. return tinyWRAPJNI.SipUri_isValid__SWIG_0(arg0);
  39. }
  40. public boolean isValid() {
  41. return tinyWRAPJNI.SipUri_isValid__SWIG_1(swigCPtr, this);
  42. }
  43. public String getScheme() {
  44. return tinyWRAPJNI.SipUri_getScheme(swigCPtr, this);
  45. }
  46. public String getHost() {
  47. return tinyWRAPJNI.SipUri_getHost(swigCPtr, this);
  48. }
  49. public int getPort() {
  50. return tinyWRAPJNI.SipUri_getPort(swigCPtr, this);
  51. }
  52. public String getUserName() {
  53. return tinyWRAPJNI.SipUri_getUserName(swigCPtr, this);
  54. }
  55. public String getPassword() {
  56. return tinyWRAPJNI.SipUri_getPassword(swigCPtr, this);
  57. }
  58. public String getDisplayName() {
  59. return tinyWRAPJNI.SipUri_getDisplayName(swigCPtr, this);
  60. }
  61. public String getParamValue(String pname) {
  62. return tinyWRAPJNI.SipUri_getParamValue(swigCPtr, this, pname);
  63. }
  64. public void setDisplayName(String displayName) {
  65. tinyWRAPJNI.SipUri_setDisplayName(swigCPtr, this, displayName);
  66. }
  67. }