/[classpath]/inetlib/source/gnu/inet/imap/IMAPResponse.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/imap/IMAPResponse.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dog, Sun Oct 19 08:51:37 2003 UTC revision 1.2 by dog, Sun Oct 19 16:16:50 2003 UTC
# Line 52  public class IMAPResponse Line 52  public class IMAPResponse
52     * The tag for this response.     * The tag for this response.
53     */     */
54    protected String tag = null;    protected String tag = null;
55      
56    /**    /**
57     * The response ID.     * The response ID.
58     */     */
# Line 85  public class IMAPResponse Line 85  public class IMAPResponse
85    
86    public boolean isTagged()    public boolean isTagged()
87    {    {
88      return (tag!=UNTAGGED && tag!=CONTINUATION);      return (tag != UNTAGGED && tag != CONTINUATION);
89    }    }
90    
91    public boolean isUntagged()    public boolean isUntagged()
92    {    {
93      return (tag==UNTAGGED);      return (tag == UNTAGGED);
94    }    }
95    
96    public boolean isContinuation()    public boolean isContinuation()
97    {    {
98      return (tag==CONTINUATION);      return (tag == CONTINUATION);
99    }    }
100    
101    public String getID()    public String getID()
# Line 125  public class IMAPResponse Line 125  public class IMAPResponse
125    {    {
126      StringBuffer buffer = new StringBuffer();      StringBuffer buffer = new StringBuffer();
127      buffer.append(tag);      buffer.append(tag);
128      if (count!=-1)      if (count != -1)
129      {      {
130        buffer.append(" \u001b[00;31m");        buffer.append(" \u001b[00;31m");
131        buffer.append(count);        buffer.append(count);
# Line 137  public class IMAPResponse Line 137  public class IMAPResponse
137        buffer.append(id);        buffer.append(id);
138        buffer.append("\u001b[00m");        buffer.append("\u001b[00m");
139      }      }
140      if (mailbox!=null)      if (mailbox != null)
141      {      {
142        buffer.append(" \u001b[00;35m");        buffer.append(" \u001b[00;35m");
143        buffer.append(mailbox);        buffer.append(mailbox);
144        buffer.append("\u001b[00m");        buffer.append("\u001b[00m");
145      }      }
146      if (code!=null)      if (code != null)
147      {      {
148        buffer.append(" \u001b[00;36m");        buffer.append(" \u001b[00;36m");
149        buffer.append(code);        buffer.append(code);
150        buffer.append("\u001b[00m");        buffer.append("\u001b[00m");
151      }      }
152      if (text!=null)      if (text != null)
153      {      {
154        buffer.append(" \u001b[00;33m");        buffer.append(" \u001b[00;33m");
155        buffer.append(text);        buffer.append(text);
# Line 162  public class IMAPResponse Line 162  public class IMAPResponse
162    {    {
163      StringBuffer buffer = new StringBuffer();      StringBuffer buffer = new StringBuffer();
164      buffer.append(tag);      buffer.append(tag);
165      if (count!=-1)      if (count != -1)
166      {      {
167        buffer.append(' ');        buffer.append(' ');
168        buffer.append(count);        buffer.append(count);
# Line 172  public class IMAPResponse Line 172  public class IMAPResponse
172        buffer.append(' ');        buffer.append(' ');
173        buffer.append(id);        buffer.append(id);
174      }      }
175      if (mailbox!=null)      if (mailbox != null)
176      {      {
177        buffer.append(' ');        buffer.append(' ');
178        buffer.append(mailbox);        buffer.append(mailbox);
179      }      }
180      if (code!=null)      if (code != null)
181      {      {
182        buffer.append(' ');        buffer.append(' ');
183        buffer.append(code);        buffer.append(code);
184      }      }
185      if (text!=null)      if (text != null)
186      {      {
187        buffer.append(' ');        buffer.append(' ');
188        buffer.append(text);        buffer.append(text);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26