MsrpMessage.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 MsrpMessage {
  10. private long swigCPtr;
  11. protected boolean swigCMemOwn;
  12. protected MsrpMessage(long cPtr, boolean cMemoryOwn) {
  13. swigCMemOwn = cMemoryOwn;
  14. swigCPtr = cPtr;
  15. }
  16. protected static long getCPtr(MsrpMessage 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_MsrpMessage(swigCPtr);
  27. }
  28. swigCPtr = 0;
  29. }
  30. }
  31. public MsrpMessage() {
  32. this(tinyWRAPJNI.new_MsrpMessage(), true);
  33. }
  34. public boolean isRequest() {
  35. return tinyWRAPJNI.MsrpMessage_isRequest(swigCPtr, this);
  36. }
  37. public short getCode() {
  38. return tinyWRAPJNI.MsrpMessage_getCode(swigCPtr, this);
  39. }
  40. public String getPhrase() {
  41. return tinyWRAPJNI.MsrpMessage_getPhrase(swigCPtr, this);
  42. }
  43. public tmsrp_request_type_t getRequestType() {
  44. return tmsrp_request_type_t.swigToEnum(tinyWRAPJNI.MsrpMessage_getRequestType(swigCPtr, this));
  45. }
  46. public void getByteRange(long[] arg0, long[] arg1, long[] arg2) {
  47. tinyWRAPJNI.MsrpMessage_getByteRange(swigCPtr, this, arg0, arg1, arg2);
  48. }
  49. public boolean isLastChunck() {
  50. return tinyWRAPJNI.MsrpMessage_isLastChunck(swigCPtr, this);
  51. }
  52. public boolean isFirstChunck() {
  53. return tinyWRAPJNI.MsrpMessage_isFirstChunck(swigCPtr, this);
  54. }
  55. public boolean isSuccessReport() {
  56. return tinyWRAPJNI.MsrpMessage_isSuccessReport(swigCPtr, this);
  57. }
  58. public String getMsrpHeaderValue(String name) {
  59. return tinyWRAPJNI.MsrpMessage_getMsrpHeaderValue(swigCPtr, this, name);
  60. }
  61. public String getMsrpHeaderParamValue(String name, String param) {
  62. return tinyWRAPJNI.MsrpMessage_getMsrpHeaderParamValue(swigCPtr, this, name, param);
  63. }
  64. public long getMsrpContentLength() {
  65. return tinyWRAPJNI.MsrpMessage_getMsrpContentLength(swigCPtr, this);
  66. }
  67. public long getMsrpContent(java.nio.ByteBuffer output, long maxsize) {
  68. return tinyWRAPJNI.MsrpMessage_getMsrpContent(swigCPtr, this, output, maxsize);
  69. }
  70. }