Example usage for org.apache.commons.net.pop3 POP3Reply OK_INT

List of usage examples for org.apache.commons.net.pop3 POP3Reply OK_INT

Introduction

In this page you can find the example usage for org.apache.commons.net.pop3 POP3Reply OK_INT.

Prototype

int OK_INT

To view the source code for org.apache.commons.net.pop3 POP3Reply OK_INT.

Click Source Link

Document

The reply code indicating intermediate response to a command.

Usage

From source file:me.schiz.jmeter.protocol.pop3.sampler.POP3Sampler.java

private void setSuccessfulByResponseCode(SampleResult sr, int rc) {
    if (rc == POP3Reply.OK) {
        sr.setResponseCode(RC_200);/*from   ww w.  ja  v  a 2s. c  o m*/
        sr.setSuccessful(true);
    } else if (rc == POP3Reply.OK_INT) {
        sr.setResponseCode(RC_354);
        sr.setSuccessful(true);
    } else {
        sr.setResponseCode(RC_500);
        sr.setSuccessful(false);
    }
}