CPD Results

The following document contains the results of PMD's CPD 3.7.

Duplications

FileLine
org/apache/geronimo/mail/SMTPTransportGBean.java164
org/apache/geronimo/mail/SMTPSTransportGBean.java163
        super(objectName, "smtps", properties, host, user);

        setPort(port);
        setConnectionTimeout(connectionTimeout);
        setTimeout(timeout);
        setFrom(from);
        setLocalhost(localhost);
        setLocaladdress(localaddress);
        setLocalport(localport);
        setEhlo(ehlo);
        setAuth(auth);
        setStartTLSEnable(startTLSEnable);
        setSubmitter(submitter);
        setDsnNotify(dsnNotify);
        setDsnRet(dsnRet);
        setAllow8bitmime(allow8bitmime);
        setSendPartial(sendPartial);
        setSaslRealm(saslRealm);
        setQuitWait(quitWait);
        setReportSuccess(reportSuccess);
        setSocketFactoryClass(socketFactoryClass);
        setSocketFactoryFallback(socketFactoryFallback);
        setSocketFactoryPort(socketFactoryPort);
        setMailExtension(mailExtension);
    }

    /**
     * Returns the SMTP server port to connect to, if the connect() method
     * doesn't explicitly specify one.
     */
    public Integer getPort() {
        return port;
    }

    /**
     * Sets the SMTP server port to connect to, if the connect() method
     * doesn't explicitly specify one.
     * <p/>
     * Defaults to 25.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param port the SMTP server port to connect to
     */
    public void setPort(Integer port) {
        this.port = port;
    }

    /**
     * Returns the socket connection timeout value in milliseconds.
     */
    public Integer getConnectionTimeout() {
        return connectionTimeout;
    }

    /**
     * Sets the socket connection timeout value in milliseconds.
     * <p/>
     * Default is infinite timeout.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param connectionTimeout the socket connection timeout value in milliseconds.
     */
    public void setConnectionTimeout(Integer connectionTimeout) {
        this.connectionTimeout = connectionTimeout;
    }

    /**
     * Returns the socket I/O timeout value in milliseconds.
     */
    public Integer getTimeout() {
        return timeout;
    }

    /**
     * Sets the socket I/O timeout value in milliseconds.
     * <p/>
     * Default is infinite timeout.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param timeout the socket I/O timeout value in milliseconds
     */
    public void setTimeout(Integer timeout) {
        this.timeout = timeout;
    }

    /**
     * Returns the email address to use for SMTP MAIL command.
     */
    public String getFrom() {
        return from;
    }

    /**
     * Sets the email address to use for SMTP MAIL command
     * <p/>
     * Email address to use for SMTP MAIL command. This sets the envelope
     * return address. Defaults to msg.getFrom() or InternetAddress.getLocalAddress().
     * NOTE: mail.smtp.user was previously used for this.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param from the email address to use for SMTP MAIL command
     */
    public void setFrom(String from) {
        this.from = from;
    }

    /**
     * Returns the local host name used in the SMTP HELO or EHLO command.
     */
    public String getLocalhost() {
        return localhost;
    }

    /**
     * Sets the local host name used in the SMTP HELO or EHLO command.
     * <p/>
     * Local host name used in the SMTP HELO or EHLO command. Defaults to
     * InetAddress.getLocalHost().getHostName(). Should not normally need to
     * be set if your JDK and your name service are configured properly.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param localhost the local host name used in the SMTP HELO or EHLO command
     */
    public void setLocalhost(String localhost) {
        this.localhost = localhost;
    }

    /**
     * Returns the local address (host name) to bind to when creating the SMTP socket.
     */
    public String getLocaladdress() {
        return localaddress;
    }

    /**
     * Sets the local address (host name) to bind to when creating the SMTP socket.
     * <p/>
     * Local address (host name) to bind to when creating the SMTP socket.
     * Defaults to the address picked by the Socket class. Should not normally
     * need to be set, but useful with multi-homed hosts where it's important
     * to pick a particular local address to bind to.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param localaddress the local address (host name) to bind to when creating the SMTP socket
     */
    public void setLocaladdress(String localaddress) {
        this.localaddress = localaddress;
    }

    /**
     * Returns the local port number to bind to when creating the SMTP socket.
     */
    public Integer getLocalport() {
        return localport;
    }

    /**
     * Sets the local port number to bind to when creating the SMTP socket.
     * <p/>
     * Local port number to bind to when creating the SMTP socket. Defaults to
     * the port number picked by the Socket class.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param localport the local port number to bind to when creating the SMTP socket
     */
    public void setLocalport(Integer localport) {
        this.localport = localport;
    }

    /**
     * Returns whether an attempt will be made to sign on with the EHLO command.
     * <p/>
     * If false, do not attempt to sign on with the EHLO command. Normally
     * failure of the EHLO command will fallback to the HELO command; this
     * property exists only for servers that don't fail EHLO properly or don't
     * implement EHLO properly.
     */
    public Boolean getEhlo() {
        return ehlo;
    }

    /**
     * Set whether an attempt will be made to sign on with the EHLO command.
     * <p/>
     * If false, do not attempt to sign on with the EHLO command. Normally
     * failure of the EHLO command will fallback to the HELO command; this
     * property exists only for servers that don't fail EHLO properly or don't
     * implement EHLO properly.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param ehlo whether an attempt will be made to sign on with the EHLO command
     */
    public void setEhlo(Boolean ehlo) {
        this.ehlo = ehlo;
    }

    /**
     * Returns whether an attempt will be made to authenticate the user using
     * the AUTH command.
     * <p/>
     * Defaults to false.
     */
    public Boolean getAuth() {
        return auth;
    }

    /**
     * Sets whether an attempt will be made to authenticate the user using
     * the AUTH command.
     * <p/>
     * Defaults to false.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param auth whether an attempt will be made to authenticate the user using
     *             the AUTH command.
     */
    public void setAuth(Boolean auth) {
        this.auth = auth;
    }

    /**
     * Returns the flag that enables the use of the STARTTLS command (if
     * supported by the server) to switch the connection to a TLS-protected
     * connection before issuing any login commands.
     * <p/>
     * If true, enables the use of the STARTTLS command (if supported by the
     * server) to switch the connection to a TLS-protected connection before
     * issuing any login commands. Note that an appropriate trust store must
     * configured so that the client will trust the server's certificate.
     * This feature only works on J2SE 1.4 and newer systems. Default is false.
     */
    public Boolean getStartTLSEnable() {
        return startTLSEnable;
    }

    /**
     * Sets the flag that enables the use of the STARTTLS command (if
     * supported by the server) to switch the connection to a TLS-protected
     * connection before issuing any login commands.
     * <p/>
     * If true, enables the use of the STARTTLS command (if supported by the
     * server) to switch the connection to a TLS-protected connection before
     * issuing any login commands. Note that an appropriate trust store must
     * configured so that the client will trust the server's certificate.
     * This feature only works on J2SE 1.4 and newer systems. Default is false.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param startTLSEnable the flag that enables the use of the STARTTLS command (if
     *                       supported by the server) to switch the connection to a TLS-protected
     *                       connection before issuing any login commands
     */
    public void setStartTLSEnable(Boolean startTLSEnable) {
        this.startTLSEnable = startTLSEnable;
    }

    /**
     * Returns the submitter to use in the AUTH tag in the MAIL FROM command.
     * <p/>
     * Typically used by a mail relay to pass along information about the
     * original submitter of the message. See also the setSubmitter method of
     * SMTPMessage. Mail clients typically do not use this.
     */
    public String getSubmitter() {
        return submitter;
    }

    /**
     * Sets the submitter to use in the AUTH tag in the MAIL FROM command.
     * <p/>
     * Typically used by a mail relay to pass along information about the
     * original submitter of the message. See also the setSubmitter method of
     * SMTPMessage. Mail clients typically do not use this.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param submitter the submitter to use in the AUTH tag in the MAIL FROM command
     */
    public void setSubmitter(String submitter) {
        this.submitter = submitter;
    }

    /**
     * Returns the NOTIFY option to the RCPT command.
     * <p/>
     * Either NEVER, or some combination of SUCCESS, FAILURE, and DELAY
     * (separated by commas).
     */
    public String getDsnNotify() {
        return dsnNotify;
    }

    /**
     * Sets the NOTIFY option to the RCPT command
     * <p/>
     * Either NEVER, or some combination of SUCCESS, FAILURE, and DELAY
     * (separated by commas).
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param dsnNotify the NOTIFY option to the RCPT command
     */
    public void setDsnNotify(String dsnNotify) {
        this.dsnNotify = dsnNotify;
    }

    /**
     * Returns the RET option to the MAIL command.
     * <p/>
     * Either FULL or HDRS.
     */
    public String getDsnRet() {
        return dsnRet;
    }

    /**
     * Sets the RET option to the MAIL command
     * <p/>
     * Either FULL or HDRS.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param dsnRet the RET option to the MAIL command
     */
    public void setDsnRet(String dsnRet) {
        this.dsnRet = dsnRet;
    }

    /**
     * Returns whether encodings are converted to use "8bit" under certain
     * conditions.
     * <p/>
     * If set to true, and the server supports the 8BITMIME extension, text
     * parts of messages that use the "quoted-printable" or "base64" encodings
     * are converted to use "8bit" encoding if they follow the RFC2045 rules
     * for 8bit text.
     */
    public Boolean getAllow8bitmime() {
        return allow8bitmime;
    }

    /**
     * Sets whether encodings are converted to use "8bit" under certain
     * conditions.
     * <p/>
     * If set to true, and the server supports the 8BITMIME extension, text
     * parts of messages that use the "quoted-printable" or "base64" encodings
     * are converted to use "8bit" encoding if they follow the RFC2045 rules
     * for 8bit text.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param allow8bitmime whether encodings are converted to use "8bit" under certain
     *                      conditions
     */
    public void setAllow8bitmime(Boolean allow8bitmime) {
        this.allow8bitmime = allow8bitmime;
    }

    /**
     * Returns whether to send email to valid addresses when others are invalid.
     * <p/>
     * If set to true, and a message has some valid and some invalid addresses,
     * send the message anyway, reporting the partial failure with a
     * SendFailedException. If set to false (the default), the message is not
     * sent to any of the recipients if there is an invalid recipient address.
     */
    public Boolean getSendPartial() {
        return sendPartial;
    }

    /**
     * Sets whether to send email to valid addresses when others are invalid.
     * <p/>
     * If set to true, and a message has some valid and some invalid addresses,
     * send the message anyway, reporting the partial failure with a
     * SendFailedException. If set to false (the default), the message is not
     * sent to any of the recipients if there is an invalid recipient address.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param sendPartial whether to send email to valid addresses when others are invalid
     */
    public void setSendPartial(Boolean sendPartial) {
        this.sendPartial = sendPartial;
    }

    /**
     * Returns the realm to use with DIGEST-MD5 authentication.
     */
    public String getSaslRealm() {
        return saslRealm;
    }

    /**
     * Sets the realm to use with DIGEST-MD5 authentication.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param saslRealm the realm to use with DIGEST-MD5 authentication
     */
    public void setSaslRealm(String saslRealm) {
        this.saslRealm = saslRealm;
    }

    /**
     * Returns whether the transport will wait for the response to the QUIT command.
     * <p/>
     * If set to true, causes the transport to wait for the response to the QUIT
     * command. If set to false (the default), the QUIT command is sent and the
     * connection is immediately closed.
     */
    public Boolean getQuitWait() {
        return quitWait;
    }

    /**
     * Sets whether the transport will wait for the response to the QUIT command
     * <p/>
     * If set to true, causes the transport to wait for the response to the QUIT
     * command. If set to false (the default), the QUIT command is sent and the
     * connection is immediately closed.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param quitWait whether the transport will wait for the response to the QUIT command
     */
    public void setQuitWait(Boolean quitWait) {
        this.quitWait = quitWait;
    }

    /**
     * Returns whether the transport will include an SMTPAddressSucceededException
     * for each address that is successful.
     * <p/>
     * Note also that this will cause a SendFailedException to be thrown from
     * the sendMessage method of SMTPTransport even if all addresses were
     * correct and the message was sent successfully.
     */
    public Boolean getReportSuccess() {
        return reportSuccess;
    }

    /**
     * Sets whether the transport will include an SMTPAddressSucceededException
     * for each address that is successful.
     * <p/>
     * Note also that this will cause a SendFailedException to be thrown from
     * the sendMessage method of SMTPTransport even if all addresses were
     * correct and the message was sent successfully.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param reportSuccess whether the transport will include an SMTPAddressSucceededException
     *                      for each address that is successful
     */
    public void setReportSuccess(Boolean reportSuccess) {
        this.reportSuccess = reportSuccess;
    }

    /**
     * Returns the class that will be used to create SMTP sockets.
     * <p/>
     * If set, specifies the name of a class that implements the
     * javax.net.SocketFactory interface. This class will be used to create SMTP
     * sockets.
     */
    public String getSocketFactoryClass() {
        return socketFactoryClass;
    }

    /**
     * Sets the class that will be used to create SMTP sockets.
     * <p/>
     * If set, specifies the name of a class that implements the
     * javax.net.SocketFactory interface. This class will be used to create SMTP
     * sockets.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param socketFactoryClass the class that will be used to create SMTP sockets
     */
    public void setSocketFactoryClass(String socketFactoryClass) {
        this.socketFactoryClass = socketFactoryClass;
    }

    /**
     * Returns whether java.net.Socket class will be created if the specified
     * socket factory class cannot be created.
     * <p/>
     * If set to true, failure to create a socket using the specified socket
     * factory class will cause the socket to be created using the
     * java.net.Socket class. Defaults to true.
     */
    public Boolean getSocketFactoryFallback() {
        return socketFactoryFallback;
    }

    /**
     * Sets whether java.net.Socket class will be created if the specified
     * socket factory class cannot be created.
     * <p/>
     * If set to true, failure to create a socket using the specified socket
     * factory class will cause the socket to be created using the
     * java.net.Socket class. Defaults to true.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param socketFactoryFallback whether java.net.Socket class will be created if the specified
     *                              socket factory class cannot be created
     */
    public void setSocketFactoryFallback(Boolean socketFactoryFallback) {
        this.socketFactoryFallback = socketFactoryFallback;
    }

    /**
     * Returns the port to connect to when using the specified socket factory.
     * <p/>
     * Specifies the port to connect to when using the specified socket
     * factory. If not set, the default port will be used.
     */
    public Integer getSocketFactoryPort() {
        return socketFactoryPort;
    }

    /**
     * Sets the port to connect to when using the specified socket factory.
     * <p/>
     * Specifies the port to connect to when using the specified socket
     * factory. If not set, the default port will be used.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param socketFactoryPort the port to connect to when using the specified socket factory
     */
    public void setSocketFactoryPort(Integer socketFactoryPort) {
        this.socketFactoryPort = socketFactoryPort;
    }

    /**
     * Returns the extension string to append to the MAIL command.
     * <p/>
     * Extension string to append to the MAIL command. The extension string
     * can be used to specify standard SMTP service extensions as well as
     * vendor-specific extensions. Typically the application should use the
     * SMTPTransport method supportsExtension to verify that the server
     * supports the desired service extension. See RFC 1869 and other RFCs
     * that define specific extensions.
     */
    public String getMailExtension() {
        return mailExtension;
    }

    /**
     * Sets the extension string to append to the MAIL command.
     * <p/>
     * Extension string to append to the MAIL command. The extension string
     * can be used to specify standard SMTP service extensions as well as
     * vendor-specific extensions. Typically the application should use the
     * SMTPTransport method supportsExtension to verify that the server
     * supports the desired service extension. See RFC 1869 and other RFCs
     * that define specific extensions.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param mailExtension the extension string to append to the MAIL command
     */
    public void setMailExtension(String mailExtension) {
        this.mailExtension = mailExtension;
    }

    /**
     * Add the overrides from the member variables to the properties file.
     */
    public void addOverrides(Properties props) {
        super.addOverrides(props);

        if (port != null) props.setProperty(SMTPS_PORT, port.toString());

FileLine
org/apache/geronimo/mail/SMTPTransportGBean.java811
org/apache/geronimo/mail/SMTPSTransportGBean.java810
        GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic(SMTPSTransportGBean.class);

        infoFactory.addAttribute(GBEAN_PORT, Integer.class, true);
        infoFactory.addAttribute(GBEAN_CONNECTION_TIMEOUT, Integer.class, true);
        infoFactory.addAttribute(GBEAN_TIMEOUT, Integer.class, true);
        infoFactory.addAttribute(GBEAN_AUTH, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_STARTTLS_ENABLE, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_EHLO, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_FROM, String.class, true);
        infoFactory.addAttribute(GBEAN_LOCALHOST, String.class, true);
        infoFactory.addAttribute(GBEAN_LOCALADDRESS, String.class, true);
        infoFactory.addAttribute(GBEAN_LOCALPORT, Integer.class, true);
        infoFactory.addAttribute(GBEAN_REALM, String.class, true);
        infoFactory.addAttribute(GBEAN_QUITWAIT, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_FACTORY_CLASS, String.class, true);
        infoFactory.addAttribute(GBEAN_FACTORY_FALLBACK, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_FACTORY_PORT, Integer.class, true);

        infoFactory.addAttribute(GBEAN_SUBMITTER, String.class, true);
        infoFactory.addAttribute(GBEAN_DSN_NOTIFY, String.class, true);
        infoFactory.addAttribute(GBEAN_DSN_RET, String.class, true);
        infoFactory.addAttribute(GBEAN_8BITMIME, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_SEND_PARTIAL, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_REPORT_SUCCESS, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_MAIL_EXTENSION, String.class, true);

        infoFactory.addAttribute(GBEAN_OBJECTNAME, String.class, false);
        infoFactory.addAttribute(GBEAN_PROTOCOL, String.class, true);
        infoFactory.addAttribute(GBEAN_PROPERTIES, Properties.class, true);
        infoFactory.addAttribute(GBEAN_HOST, String.class, true);
        infoFactory.addAttribute(GBEAN_USER, String.class, true);
        infoFactory.addOperation(GBEAN_ADD_OVERRIDES, new Class[]{Properties.class});

        infoFactory.setConstructor(new String[]{GBEAN_OBJECTNAME, GBEAN_PROPERTIES, GBEAN_HOST, GBEAN_USER,
                                                GBEAN_PORT,
                                                GBEAN_CONNECTION_TIMEOUT,
                                                GBEAN_TIMEOUT,
                                                GBEAN_FROM,
                                                GBEAN_LOCALHOST,
                                                GBEAN_LOCALADDRESS,
                                                GBEAN_LOCALPORT,
                                                GBEAN_EHLO,
                                                GBEAN_AUTH,
                                                GBEAN_STARTTLS_ENABLE,
                                                GBEAN_SUBMITTER,
                                                GBEAN_DSN_NOTIFY,
                                                GBEAN_DSN_RET,
                                                GBEAN_8BITMIME,
                                                GBEAN_SEND_PARTIAL,
                                                GBEAN_REALM,
                                                GBEAN_QUITWAIT,
                                                GBEAN_REPORT_SUCCESS,
                                                GBEAN_FACTORY_CLASS,
                                                GBEAN_FACTORY_FALLBACK,
                                                GBEAN_FACTORY_PORT,
                                                GBEAN_MAIL_EXTENSION});

        GBEAN_INFO = infoFactory.getBeanInfo();
    }

    public static GBeanInfo getGBeanInfo() {
        return GBEAN_INFO;
    }
}

FileLine
org/apache/geronimo/mail/NNTPTransportGBean.java381
org/apache/geronimo/mail/NNTPStoreGBean.java354
        infoFactory.addAttribute(GBEAN_AUTH, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_REALM, String.class, true);
        infoFactory.addAttribute(GBEAN_QUITWAIT, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_FACTORY_CLASS, String.class, true);
        infoFactory.addAttribute(GBEAN_FACTORY_FALLBACK, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_FACTORY_PORT, Integer.class, true);

        infoFactory.addAttribute(GBEAN_OBJECTNAME, String.class, false);
        infoFactory.addAttribute(GBEAN_PROTOCOL, String.class, true);
        infoFactory.addAttribute(GBEAN_PROPERTIES, Properties.class, true);
        infoFactory.addAttribute(GBEAN_HOST, String.class, true);
        infoFactory.addAttribute(GBEAN_USER, String.class, true);
        infoFactory.addOperation(GBEAN_ADD_OVERRIDES, new Class[]{Properties.class});

        infoFactory.setConstructor(new String[]{GBEAN_OBJECTNAME, GBEAN_PROPERTIES, GBEAN_HOST, GBEAN_USER,
                                                GBEAN_PORT,
                                                GBEAN_CONNECTION_TIMEOUT,
                                                GBEAN_TIMEOUT,

FileLine
org/apache/geronimo/mail/NNTPTransportGBean.java189
org/apache/geronimo/mail/NNTPStoreGBean.java163
    }


    /**
     * Returns whether an attempt will be made to authenticate the user.
     * <p/>
     * Defaults to false.
     */
    public Boolean getAuth() {
        return auth;
    }

    /**
     * Sets whether an attempt will be made to authenticate the user.
     * <p/>
     * Defaults to false.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param auth whether an attempt will be made to authenticate the user.
     */
    public void setAuth(Boolean auth) {
        this.auth = auth;
    }

    /**
     * Returns the realm to use with DIGEST-MD5 authentication.
     */
    public String getSaslRealm() {
        return saslRealm;
    }

    /**
     * Sets the realm to use with DIGEST-MD5 authentication.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param saslRealm the realm to use with DIGEST-MD5 authentication
     */
    public void setSaslRealm(String saslRealm) {
        this.saslRealm = saslRealm;
    }

    /**
     * Returns whether the transport will wait for the response to the QUIT command.
     * <p/>
     * If set to true, causes the transport to wait for the response to the QUIT
     * command. If set to false (the default), the QUIT command is sent and the
     * connection is immediately closed.
     */
    public Boolean getQuitWait() {
        return quitWait;
    }

    /**
     * Sets whether the transport will wait for the response to the QUIT command
     * <p/>
     * If set to true, causes the transport to wait for the response to the QUIT
     * command. If set to false (the default), the QUIT command is sent and the
     * connection is immediately closed.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param quitWait whether the transport will wait for the response to the QUIT command
     */
    public void setQuitWait(Boolean quitWait) {
        this.quitWait = quitWait;
    }

    /**
     * Returns the class that will be used to create NNTP sockets.
     * <p/>
     * If set, specifies the name of a class that implements the
     * javax.net.SocketFactory interface. This class will be used to create NNTP
     * sockets.
     */
    public String getSocketFactoryClass() {
        return socketFactoryClass;
    }

    /**
     * Sets the class that will be used to create NNTP sockets.
     * <p/>
     * If set, specifies the name of a class that implements the
     * javax.net.SocketFactory interface. This class will be used to create NNTP
     * sockets.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param socketFactoryClass the class that will be used to create NNTP sockets
     */
    public void setSocketFactoryClass(String socketFactoryClass) {
        this.socketFactoryClass = socketFactoryClass;
    }

    /**
     * Returns whether java.net.Socket class will be created if the specified
     * socket factory class cannot be created.
     * <p/>
     * If set to true, failure to create a socket using the specified socket
     * factory class will cause the socket to be created using the
     * java.net.Socket class. Defaults to true.
     */
    public Boolean getSocketFactoryFallback() {
        return socketFactoryFallback;
    }

    /**
     * Sets whether java.net.Socket class will be created if the specified
     * socket factory class cannot be created.
     * <p/>
     * If set to true, failure to create a socket using the specified socket
     * factory class will cause the socket to be created using the
     * java.net.Socket class. Defaults to true.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param socketFactoryFallback whether java.net.Socket class will be created if the specified
     *                              socket factory class cannot be created
     */
    public void setSocketFactoryFallback(Boolean socketFactoryFallback) {
        this.socketFactoryFallback = socketFactoryFallback;
    }

    /**
     * Returns the port to connect to when using the specified socket factory.
     * <p/>
     * Specifies the port to connect to when using the specified socket
     * factory. If not set, the default port will be used.
     */
    public Integer getSocketFactoryPort() {
        return socketFactoryPort;
    }

    /**
     * Sets the port to connect to when using the specified socket factory.
     * <p/>
     * Specifies the port to connect to when using the specified socket
     * factory. If not set, the default port will be used.
     * <p/>
     * Values that are set here will override any of the corresponding value
     * that has been set in the properties.
     *
     * @param socketFactoryPort the port to connect to when using the specified socket factory
     */
    public void setSocketFactoryPort(Integer socketFactoryPort) {
        this.socketFactoryPort = socketFactoryPort;
    }

    /**
     * Add the overrides from the member variables to the properties file.
     */
    public void addOverrides(Properties props) {
        super.addOverrides(props);

        if (port != null) props.setProperty(NNTPS_PORT, port.toString());

FileLine
org/apache/geronimo/mail/POP3StoreGBean.java457
org/apache/geronimo/mail/NNTPTransportGBean.java383
        infoFactory.addAttribute(GBEAN_QUITWAIT, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_FACTORY_CLASS, String.class, true);
        infoFactory.addAttribute(GBEAN_FACTORY_FALLBACK, Boolean.class, true);
        infoFactory.addAttribute(GBEAN_FACTORY_PORT, Integer.class, true);

        infoFactory.addAttribute(GBEAN_OBJECTNAME, String.class, false);
        infoFactory.addAttribute(GBEAN_PROTOCOL, String.class, true);
        infoFactory.addAttribute(GBEAN_PROPERTIES, Properties.class, true);
        infoFactory.addAttribute(GBEAN_HOST, String.class, true);
        infoFactory.addAttribute(GBEAN_USER, String.class, true);
        infoFactory.addOperation(GBEAN_ADD_OVERRIDES, new Class[]{Properties.class});

        infoFactory.setConstructor(new String[]{GBEAN_OBJECTNAME, GBEAN_PROPERTIES, GBEAN_HOST, GBEAN_USER,
                                                GBEAN_PORT,
                                                GBEAN_CONNECTION_TIMEOUT,
                                                GBEAN_TIMEOUT,

FileLine
org/apache/geronimo/mail/NNTPTransportGBean.java386
org/apache/geronimo/mail/SMTPSTransportGBean.java834
        infoFactory.addAttribute(GBEAN_MAIL_EXTENSION, String.class, true);

        infoFactory.addAttribute(GBEAN_OBJECTNAME, String.class, false);
        infoFactory.addAttribute(GBEAN_PROTOCOL, String.class, true);
        infoFactory.addAttribute(GBEAN_PROPERTIES, Properties.class, true);
        infoFactory.addAttribute(GBEAN_HOST, String.class, true);
        infoFactory.addAttribute(GBEAN_USER, String.class, true);
        infoFactory.addOperation(GBEAN_ADD_OVERRIDES, new Class[]{Properties.class});

        infoFactory.setConstructor(new String[]{GBEAN_OBJECTNAME, GBEAN_PROPERTIES, GBEAN_HOST, GBEAN_USER,
                                                GBEAN_PORT,
                                                GBEAN_CONNECTION_TIMEOUT,
                                                GBEAN_TIMEOUT,
                                                GBEAN_FROM,

FileLine
org/apache/geronimo/mail/POP3StoreGBean.java460
org/apache/geronimo/mail/SMTPTransportGBean.java835
        infoFactory.addAttribute(GBEAN_MAIL_EXTENSION, String.class, true);

        infoFactory.addAttribute(GBEAN_OBJECTNAME, String.class, false);
        infoFactory.addAttribute(GBEAN_PROTOCOL, String.class, true);
        infoFactory.addAttribute(GBEAN_PROPERTIES, Properties.class, true);
        infoFactory.addAttribute(GBEAN_HOST, String.class, true);
        infoFactory.addAttribute(GBEAN_USER, String.class, true);
        infoFactory.addOperation(GBEAN_ADD_OVERRIDES, new Class[]{Properties.class});

        infoFactory.setConstructor(new String[]{GBEAN_OBJECTNAME, GBEAN_PROPERTIES, GBEAN_HOST, GBEAN_USER,
                                                GBEAN_PORT,
                                                GBEAN_CONNECTION_TIMEOUT,
                                                GBEAN_TIMEOUT,

FileLine
org/apache/geronimo/mail/SMTPTransportGBean.java835
org/apache/geronimo/mail/IMAPStoreGBean.java832
        infoFactory.addAttribute(GBEAN_SASL_AUTHORIZATIONID, String.class, true);

        infoFactory.addAttribute(GBEAN_OBJECTNAME, String.class, false);
        infoFactory.addAttribute(GBEAN_PROTOCOL, String.class, true);
        infoFactory.addAttribute(GBEAN_PROPERTIES, Properties.class, true);
        infoFactory.addAttribute(GBEAN_HOST, String.class, true);
        infoFactory.addAttribute(GBEAN_USER, String.class, true);
        infoFactory.addOperation(GBEAN_ADD_OVERRIDES, new Class[]{Properties.class});

        infoFactory.setConstructor(new String[]{GBEAN_OBJECTNAME, GBEAN_PROPERTIES, GBEAN_HOST, GBEAN_USER,
                                                GBEAN_PORT,

FileLine
org/apache/geronimo/mail/POP3StoreGBean.java460
org/apache/geronimo/mail/IMAPStoreGBean.java832
        infoFactory.addAttribute(GBEAN_SASL_AUTHORIZATIONID, String.class, true);

        infoFactory.addAttribute(GBEAN_OBJECTNAME, String.class, false);
        infoFactory.addAttribute(GBEAN_PROTOCOL, String.class, true);
        infoFactory.addAttribute(GBEAN_PROPERTIES, Properties.class, true);
        infoFactory.addAttribute(GBEAN_HOST, String.class, true);
        infoFactory.addAttribute(GBEAN_USER, String.class, true);
        infoFactory.addOperation(GBEAN_ADD_OVERRIDES, new Class[]{Properties.class});

        infoFactory.setConstructor(new String[]{GBEAN_OBJECTNAME, GBEAN_PROPERTIES, GBEAN_HOST, GBEAN_USER,
                                                GBEAN_PORT,