/** * Create the CommandSupport instance if required */ protected void createCommandSupport(){ __commandSupport = new ProtocolCommandSupport(this); }
/** * Overloaded constructor where the user may specify a default encoding. * @param encoding the encoing to use * @since 2.0 */ public SMTP(String encoding) { setDefaultPort(DEFAULT_PORT); _replyLines = new ArrayList<String>(); _newReplyString = false; _replyString = null; _commandSupport_ = new ProtocolCommandSupport(this); this.encoding = encoding; }
/*** * The default POP3Client constructor. Initializes the state * to <code>DISCONNECTED_STATE</code>. ***/ public POP3() { setDefaultPort(DEFAULT_PORT); __popState = DISCONNECTED_STATE; _reader = null; _writer = null; _replyLines = new ArrayList<String>(); _commandSupport_ = new ProtocolCommandSupport(this); }
/*** * The default NNTP constructor. Sets the default port to * <code>DEFAULT_PORT</code> and initializes internal data structures * for saving NNTP reply information. ***/ public NNTP() { setDefaultPort(DEFAULT_PORT); _replyString = null; _reader_ = null; _writer_ = null; _isAllowedToPost = false; _commandSupport_ = new ProtocolCommandSupport(this); }
/*** * The default FTP constructor. Sets the default port to * <code>DEFAULT_PORT</code> and initializes internal data structures * for saving FTP reply information. ***/ public FTP() { super(); setDefaultPort(DEFAULT_PORT); _replyLines = new ArrayList<String>(); _newReplyString = false; _replyString = null; _controlEncoding = DEFAULT_CONTROL_ENCODING; _commandSupport_ = new ProtocolCommandSupport(this); }
/*** * The default FTP constructor. Sets the default port to * <code>DEFAULT_PORT</code> and initializes internal data structures * for saving FTP reply information. ***/ public FTP() { setDefaultPort(DEFAULT_PORT); __commandBuffer = new StringBuffer(); _replyLines = new Vector(); _newReplyString = false; _replyString = null; _commandSupport_ = new ProtocolCommandSupport(this); _controlEncoding = DEFAULT_CONTROL_ENCODING; }
/*** * The default POP3Client constructor. Initializes the state * to <code>DISCONNECTED_STATE</code>. ***/ public POP3() { setDefaultPort(DEFAULT_PORT); __commandBuffer = new StringBuffer(); __popState = DISCONNECTED_STATE; _reader = null; __writer = null; _replyLines = new Vector(); _commandSupport_ = new ProtocolCommandSupport(this); }
/*** * The default SMTP constructor. Sets the default port to * <code>DEFAULT_PORT</code> and initializes internal data structures * for saving SMTP reply information. ***/ public SMTP() { setDefaultPort(DEFAULT_PORT); __commandBuffer = new StringBuffer(); _replyLines = new Vector(); _newReplyString = false; _replyString = null; _commandSupport_ = new ProtocolCommandSupport(this); }
/*** * The default SMTP constructor. Sets the default port to * <code>DEFAULT_PORT</code> and initializes internal data structures * for saving SMTP reply information. ***/ public SMTP() { setDefaultPort(DEFAULT_PORT); __commandBuffer = new StringBuffer(); _replyLines = new ArrayList<String>(); _newReplyString = false; _replyString = null; _commandSupport_ = new ProtocolCommandSupport(this); }
/*** * The default POP3Client constructor. Initializes the state * to <code>DISCONNECTED_STATE</code>. ***/ public POP3() { setDefaultPort(DEFAULT_PORT); __commandBuffer = new StringBuffer(); __popState = DISCONNECTED_STATE; _reader = null; __writer = null; _replyLines = new Vector<String>(); _commandSupport_ = new ProtocolCommandSupport(this); }
/*** * The default NNTP constructor. Sets the default port to * <code>DEFAULT_PORT</code> and initializes internal data structures * for saving NNTP reply information. ***/ public NNTP() { setDefaultPort(DEFAULT_PORT); __commandBuffer = new StringBuffer(); _replyString = null; _reader_ = null; _writer_ = null; _isAllowedToPost = false; _commandSupport_ = new ProtocolCommandSupport(this); }
/*** * The default FTP constructor. Sets the default port to * <code>DEFAULT_PORT</code> and initializes internal data structures * for saving FTP reply information. ***/ public FTP() { super(); setDefaultPort(DEFAULT_PORT); _replyLines = new ArrayList<String>(); _newReplyString = false; _replyString = null; _commandSupport_ = new ProtocolCommandSupport(this); _controlEncoding = DEFAULT_CONTROL_ENCODING; }
/*** * The default NNTP constructor. Sets the default port to * <code>DEFAULT_PORT</code> and initializes internal data structures * for saving NNTP reply information. ***/ public NNTP() { setDefaultPort(DEFAULT_PORT); __commandBuffer = new StringBuffer(); _replyString = null; _reader_ = null; _writer_ = null; _isAllowedToPost = false; _commandSupport_ = new ProtocolCommandSupport(this); }