C# Class SmtpServer.Protocol.SmtpCommandFactory

Afficher le fichier Open project: cosullivan/SmtpServer Class Usage Examples

Méthodes publiques

Méthode Description
SmtpCommandFactory ( ISmtpServerOptions options, SmtpParser parser ) : System

Constructor.

TryMakeAuth ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an AUTH command from the given enumerator.

TryMakeData ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a DATA command from the given enumerator.

TryMakeDbug ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an DBUG command from the given enumerator.

TryMakeEhlo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an EHLO command from the given enumerator.

TryMakeHelo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a HELO command from the given enumerator.

TryMakeMail ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a MAIL command from the given enumerator.

TryMakeNoop ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an NOOP command from the given enumerator.

TryMakeQuit ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a QUIT command.

TryMakeRcpt ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make a RCTP command from the given enumerator.

TryMakeRset ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an RSET command from the given enumerator.

TryMakeStartTls ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Make an STARTTLS command from the given enumerator.

Method Details

SmtpCommandFactory() public méthode

Constructor.
public SmtpCommandFactory ( ISmtpServerOptions options, SmtpParser parser ) : System
options ISmtpServerOptions The SMTP server options.
parser SmtpParser The ABNF SMTP argument parser.
Résultat System

TryMakeAuth() public méthode

Make an AUTH command from the given enumerator.
public TryMakeAuth ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The AUTH command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Résultat bool

TryMakeData() public méthode

Make a DATA command from the given enumerator.
public TryMakeData ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The DATA command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Résultat bool

TryMakeDbug() public méthode

Make an DBUG command from the given enumerator.
public TryMakeDbug ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The DBUG command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Résultat bool

TryMakeEhlo() public méthode

Make an EHLO command from the given enumerator.
public TryMakeEhlo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The EHLO command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Résultat bool

TryMakeHelo() public méthode

Make a HELO command from the given enumerator.
public TryMakeHelo ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The HELO command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Résultat bool

TryMakeMail() public méthode

Make a MAIL command from the given enumerator.
public TryMakeMail ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The MAIL command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Résultat bool

TryMakeNoop() public méthode

Make an NOOP command from the given enumerator.
public TryMakeNoop ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The NOOP command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Résultat bool

TryMakeQuit() public méthode

Make a QUIT command.
public TryMakeQuit ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The QUIT command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Résultat bool

TryMakeRcpt() public méthode

Make a RCTP command from the given enumerator.
public TryMakeRcpt ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The RCTP command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Résultat bool

TryMakeRset() public méthode

Make an RSET command from the given enumerator.
public TryMakeRset ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The RSET command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Résultat bool

TryMakeStartTls() public méthode

Make an STARTTLS command from the given enumerator.
public TryMakeStartTls ( TokenEnumerator enumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
enumerator SmtpServer.Protocol.Text.TokenEnumerator The enumerator to create the command from.
command SmtpCommand The STARTTLS command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
Résultat bool