|
Java example source code file (SmtpCommand.java)
The SmtpCommand.java Java example source code/* * Copyright 2016 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package io.netty.handler.codec.smtp; import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBufUtil; import io.netty.util.AsciiString; import io.netty.util.internal.ObjectUtil; import io.netty.util.internal.UnstableApi; import java.util.HashMap; import java.util.Map; /** * The command part of a {@link SmtpRequest}. */ @UnstableApi public final class SmtpCommand { public static final SmtpCommand EHLO = new SmtpCommand(new AsciiString("EHLO"), false); public static final SmtpCommand HELO = new SmtpCommand(new AsciiString("HELO"), false); public static final SmtpCommand MAIL = new SmtpCommand(new AsciiString("MAIL"), false); public static final SmtpCommand RCPT = new SmtpCommand(new AsciiString("RCPT"), false); public static final SmtpCommand DATA = new SmtpCommand(new AsciiString("DATA"), true); public static final SmtpCommand NOOP = new SmtpCommand(new AsciiString("NOOP"), false); public static final SmtpCommand RSET = new SmtpCommand(new AsciiString("RSET"), false); public static final SmtpCommand EXPN = new SmtpCommand(new AsciiString("EXPN"), false); public static final SmtpCommand VRFY = new SmtpCommand(new AsciiString("VRFY"), false); public static final SmtpCommand HELP = new SmtpCommand(new AsciiString("HELP"), false); public static final SmtpCommand QUIT = new SmtpCommand(new AsciiString("QUIT"), false); private static final CharSequence DATA_CMD = new AsciiString("DATA"); private static final Map<CharSequence, SmtpCommand> COMMANDS = new HashMap Other Java examples (source code examples)Here is a short list of links related to this Java SmtpCommand.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.