KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > communication > sms > mock > MockResponse


1 /**
2  * Copyright 2001-2004 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  **/

5 package org.exoplatform.services.communication.sms.mock;
6
7
8 /**
9  * @author Ove Ranheim (oranheim@yahoo.no)
10  * @since Jun 20, 2004 11:18:17 AM
11  */

12 public class MockResponse {
13     
14     public static String JavaDoc RESPONSE_FAIL = "<?xml version=\"1.0\"?>" +
15         "<SESSION>"+
16         "<LOGON>FAIL</LOGON>"+
17         "<REASON>Username/password is incorrect.</REASON>"+
18         "</SESSION>";
19     
20
21     public static String JavaDoc RESPONSE = "<?xml version=\"1.0\"?>" +
22         "<SESSION>" +
23         "<LOGON>OK</LOGON>" +
24         "<REASON></REASON>" +
25         "<MSGLST>" +
26         "<MSG>" +
27         "<ID>1</ID>" +
28         "<STATUS>OK</STATUS>" +
29         "<INFO></INFO>" +
30         "</MSG>" +
31         "<MSG>" +
32         "<ID>2</ID>" +
33         "<STATUS>OK</STATUS>" +
34         "<INFO></INFO>" +
35         "</MSG>" +
36         "<MSG>" +
37         "<ID>3</ID>" +
38         "<STATUS>FAIL</STATUS>" +
39         "<INFO>Receiver address (2002) must be at least 9 digits including country-code.</INFO>" +
40         "</MSG>" +
41         "</MSGLST>" +
42         "</SESSION>\n";
43     
44 }
45
Popular Tags