View Javadoc
1 /* 2 * @(#)TestInterceptor.java 3 * 4 * JFoxMQ the open source JMS MOM. 5 * 6 * Corpyright 2002-2003 Huihoo Power, Inc. All Rights Reserved. This software 7 * is licensed under LGPL license. 8 * 9 * For more information, please visit: http://www.huihoo.org 10 */ 11 12 package org.huihoo.jfox.ms.crb; 13 14 import javax.jms.Destination; 15 import javax.jms.Message; 16 import javax.jms.Queue; 17 import javax.jms.TemporaryQueue; 18 import javax.jms.TemporaryTopic; 19 import javax.jms.Topic; 20 21 /*** 22 * only for test 23 */ 24 public class TestInterceptor implements Interceptor { 25 public String getID() throws Exception { 26 System.out.println("server return result of method getid"); 27 String s = "getid"; 28 return s; 29 } 30 31 /*** 32 * Gets the TemporaryTopic 33 * 34 * @param 35 * @return TemporaryTopic 36 * @exception Exception 37 */ 38 public TemporaryTopic createTemporaryTopic() throws Exception { 39 System.out.println(""); 40 return null; 41 } 42 43 /*** 44 * Gets the TemporaryQueue 45 * 46 * @param 47 * @return TemporaryQueue 48 * @exception Exception 49 */ 50 public TemporaryQueue createTemporaryQueue() throws Exception { 51 System.out.println(""); 52 return null; 53 } 54 55 /*** 56 * The client close the connection. 57 * 58 * @param 59 * @exception Exception 60 */ 61 public void closeConnection() throws Exception { 62 System.out.println(""); 63 } 64 65 /*** 66 * Check if clientID is a valid ID 67 * @param String ID 68 * @exception Exception 69 */ 70 public void checkID(String ID) throws Exception { 71 System.out.println(""); 72 } 73 74 /*** 75 * Send a message to the destination specifyed in the message. 76 * @param Message 77 * @exception Exception 78 */ 79 public void sendMessage(Message message) throws Exception { 80 System.out.println(""); 81 } 82 83 /*** 84 *Create a queue identity 85 * 86 * @param String destination 87 * @return Queue 88 * @exception Exception 89 */ 90 public Queue createQueue(String destination) throws Exception { 91 System.out.println(""); 92 return null; 93 } 94 95 /*** 96 *Create a topic identity 97 * 98 * @param destination 99 * @return Topic 100 * @exception Exception 101 */ 102 public Topic createTopic(String destination) throws Exception { 103 System.out.println(""); 104 return null; 105 } 106 107 /*** 108 *Delete a temporary destination from server 109 * 110 * @param Destination destination 111 * @exception Exception 112 */ 113 public void deleteTemporaryDestination(Destination destination) throws Exception { 114 System.out.println(""); 115 } 116 117 /*** 118 *Commit a transaction 119 * 120 * @param TransactionRequest t 121 * @exception Exception 122 */ 123 //public void CommitTransaction()//TransactionRequest t 124 // throws Exception; 125 126 /*** 127 * Send a acknowledge to server 128 * 129 * @param AcknowledgementRequest ack 130 * @exception Exception 131 */ 132 //public void sendAcknowledge(AcknowledgementRequest ack) 133 // throws Exception; 134 135 /*** 136 * Browse message on given destination 137 * 138 * @param Destination destination 139 * @param String selector 140 * @return Message[] 141 * @exception Exception 142 */ 143 public Message[] browse(Destination destination, String selector) throws Exception { 144 System.out.println(""); 145 return null; 146 } 147 148 /*** 149 * Receive a message synchronously. 150 * 151 * @param Destination destination 152 * @param long wait 153 * @return Message 154 * @exception Exception 155 */ 156 public Message receiveMessage(Destination destination, long wait) throws Exception { 157 System.out.println(""); 158 return null; 159 } 160 161 162 /*** 163 * Remove a subcriber. 164 * 165 * @param 166 * @exception Exception Description of Exception 167 */ 168 public void removeSubscriber() throws Exception { 169 System.out.println(""); 170 } 171 172 /*** 173 * Authenticate the user. 174 * 175 * @param String userName 176 * @param String password 177 * @return boolean 178 * @exception Exception 179 */ 180 public boolean authenticate(String userName, String password) throws Exception { 181 System.out.println(""); 182 return true; 183 } 184 185 /*** 186 * @param 187 * @exception java.lang.Exception The exception description. 188 */ 189 public void addSubscriber() throws java.lang.Exception { 190 System.out.println(""); 191 192 } 193 194 }

This page was automatically generated by Maven