Example usage for org.apache.commons.net.smtp SMTPReply isPositivePreliminary

List of usage examples for org.apache.commons.net.smtp SMTPReply isPositivePreliminary

Introduction

In this page you can find the example usage for org.apache.commons.net.smtp SMTPReply isPositivePreliminary.

Prototype

public static boolean isPositivePreliminary(int reply) 

Source Link

Document

Determine if a reply code is a positive preliminary response.

Usage

From source file:me.schiz.jmeter.protocol.smtp.sampler.SMTPSampler.java

private void setSuccessfulByResponseCode(SampleResult sr, int replyCode) {
    if (SMTPReply.isPositiveCompletion(replyCode) || SMTPReply.isPositiveIntermediate(replyCode)
            || SMTPReply.isPositivePreliminary(replyCode)) {
        sr.setSuccessful(true);//from   w  ww .j av  a  2 s . co  m
    } else
        sr.setSuccessful(false);
}