KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > james > imapserver > ImapConstants


1 /***********************************************************************
2  * Copyright (c) 2000-2004 The Apache Software Foundation. *
3  * All rights reserved. *
4  * ------------------------------------------------------------------- *
5  * Licensed under the Apache License, Version 2.0 (the "License"); you *
6  * may not use this file except in compliance with the License. You *
7  * may obtain a copy of the License at: *
8  * *
9  * http://www.apache.org/licenses/LICENSE-2.0 *
10  * *
11  * Unless required by applicable law or agreed to in writing, software *
12  * distributed under the License is distributed on an "AS IS" BASIS, *
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
14  * implied. See the License for the specific language governing *
15  * permissions and limitations under the License. *
16  ***********************************************************************/

17
18 package org.apache.james.imapserver;
19
20 public interface ImapConstants
21 {
22     // Basic response types
23
String JavaDoc OK = "OK";
24     String JavaDoc NO = "NO";
25     String JavaDoc BAD = "BAD";
26     String JavaDoc UNTAGGED = "*";
27
28     String JavaDoc SP = " ";
29     String JavaDoc VERSION = "IMAP4rev1";
30
31     String JavaDoc AUTH_FAIL_MSG
32             = "NO Command not authorized on this mailbox";
33     String JavaDoc BAD_LISTRIGHTS_MSG
34             = "BAD Command should be <tag> <LISTRIGHTS> <mailbox> <identifier>";
35     String JavaDoc NO_NOTLOCAL_MSG
36             = "NO Mailbox does not exist on this server";
37
38     //mainly to switch on stack traces and catch responses;
39
boolean DEEP_DEBUG = true;
40
41     // Connection termination options
42
int NORMAL_CLOSE = 0;
43     int OK_BYE = 1;
44     int UNTAGGED_BYE = 2;
45     int TAGGED_NO = 3;
46     int NO_BYE = 4;
47
48     String JavaDoc LIST_WILD = "*";
49     String JavaDoc LIST_WILD_FLAT = "%";
50     char[] CTL = {};
51     String JavaDoc[] ATOM_SPECIALS
52             = {"(", ")", "{", " ", LIST_WILD, LIST_WILD_FLAT, };
53
54     
55 }
56
Popular Tags