1 package org.apache.webdav.lib; 3 4 9 public class Subscription 10 { 11 public static final String UPDATE_NOTIFICATION = "update"; 12 public static final String NEW_MEMBER_NOTIFICATION = "update/newmember"; 13 public static final String DELETE_NOTIFICATION = "delete"; 14 public static final String MOVE_NOTIFICATION = "move"; 15 16 private int id; 17 private long lifetime; 18 private String callback; 19 private String contentLocation; 20 private String notificationType; 21 private String path; 22 23 public Subscription(String path, int id, String callback, long lifetime, 24 String contentLocation, String notificationType) 25 { 26 this.path = path; 27 this.id = id; 28 this.callback = callback; 29 this.lifetime = lifetime; 30 this.contentLocation = contentLocation; 31 this.notificationType = notificationType; 32 } 33 34 public String getCallback() 35 { 36 return callback; 37 } 38 public String getContentLocation() 39 { 40 return contentLocation; 41 } 42 public int getId() 43 { 44 return id; 45 } 46 public long getLifetime() 47 { 48 return lifetime; 49 } 50 public String getNotificationType() 51 { 52 return notificationType; 53 } 54 public String getPath() 55 { 56 return path; 57 } 58 } 59 | Popular Tags |