1 17 18 package org.apache.james.imapserver; 19 20 import java.util.StringTokenizer ; 21 22 28 public class ImapRequestImpl implements ImapRequest 29 { 30 31 private String _command; 32 private StringTokenizer commandLine; 33 private boolean useUIDs; 34 private ACLMailbox currentMailbox; 35 private String commandRaw; 36 private String tag; 37 private SingleThreadedConnectionHandler caller; 38 private String currentFolder; 39 40 public ImapRequestImpl(SingleThreadedConnectionHandler handler, 41 String command ) { 42 caller = handler; 43 _command = command; 44 } 45 46 public String getCommand() 47 { 48 return _command; 49 } 50 51 public void setCommand( String command ) 52 { 53 _command = command; 54 } 55 56 public SingleThreadedConnectionHandler getCaller() { 57 return caller; 58 } 59 60 public void setCommandLine(StringTokenizer st) { 61 commandLine = st; 62 } 63 64 public StringTokenizer getCommandLine() { 65 return commandLine; 67 } 68 69 public int arguments() 70 { 71 return commandLine.countTokens(); 72 } 73 74 public void setUseUIDs(boolean state) { 75 useUIDs = state; 76 } 77 78 public boolean useUIDs() { 79 return useUIDs; 80 } 81 82 public void setCurrentMailbox(ACLMailbox mbox) { 83 currentMailbox = mbox; 84 } 85 86 public ACLMailbox getCurrentMailbox() { 87 return currentMailbox; 88 } 89 90 public void setCommandRaw(String raw) { 91 commandRaw = raw; 92 } 93 94 public String getCommandRaw() { 95 return commandRaw; 96 } 97 98 public void setTag(String t) { 99 tag = t; 100 } 101 102 public String getTag() { 103 return tag; 104 } 105 106 public void setCurrentFolder(String f) { 107 currentFolder = f; 108 } 109 110 public String getCurrentFolder() { 111 return currentFolder; 112 } 113 } 114 | Popular Tags |