1 24 30 31 package org.datashare.objects; 32 33 43 public class TokenRequestObject implements java.io.Serializable 44 { 45 49 static final long serialVersionUID = 9058094854095490536L; 50 51 54 public static final int REQUEST = 0; 55 56 59 public static final int CANCEL = 1; 60 61 64 public static final int GRANT = 2; 65 66 69 public static final int REVOKE = 3; 70 71 74 public static final String typeOfRequestStrings[] = 75 {"Request", "Cancel", "Grant", "Revoke"}; 76 77 81 public int typeOfRequest = CANCEL; 83 86 public String tokenKey; 87 88 91 public String sessionName = ""; 92 93 96 public String channelName = ""; 97 98 101 public TokenRequestObject() 102 { 103 } 104 105 110 public TokenRequestObject(int typeOfRequest, String tokenKey) 111 { 112 this.typeOfRequest = typeOfRequest; 113 this.tokenKey = tokenKey; 114 } 115 116 125 public TokenRequestObject(int typeOfRequest, String sessionName, String channelName, String tokenKey) 126 { 127 this(typeOfRequest, tokenKey); 128 this.sessionName = sessionName; 129 this.channelName = channelName; 130 } 131 } 132 | Popular Tags |