1 package SnowMailClient.model; 2 3 import SnowMailClient.utils.*; 4 5 public final class HeaderEntry 6 { 7 String key; 8 String value; 9 10 public HeaderEntry(String key, String value) 11 { 12 this.key = key; 13 this.value = value; 14 } 16 public String getKey() { return key; } 17 public String getValue() { return value; } 18 19 21 public boolean isEquals(String _key) 22 { 23 return _key.equalsIgnoreCase(key); 24 } 25 26 public void setValue(String val) 27 { 28 this.value = val; 29 } 30 31 public String toString() 32 { 33 return key+": "+value; 34 } 35 36 public String to_ASCII_String() 37 { 38 if(key.equalsIgnoreCase("subject")) 39 { 40 return key+": "+MailMessageUtils.encodeLine_QuotedPrintable(value); 42 } 43 return key+": "+value; 44 } 45 46 47 } | Popular Tags |