com.sendmail.jilter.internal
Class JilterServerPacketUtil
java.lang.Object
com.sendmail.jilter.internal.JilterServerPacketUtil
public class JilterServerPacketUtil
- extends java.lang.Object
Method Summary |
static java.lang.String |
getZeroTerminatedString(java.nio.ByteBuffer dataBuffer)
|
static java.lang.String[] |
getZeroTerminatedStringArray(java.nio.ByteBuffer dataBuffer)
|
static void |
sendAddHeaderPacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String header,
java.lang.String value)
|
static void |
sendAddRcptPacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String recipient)
|
static void |
sendChgHeaderPacket(java.nio.channels.WritableByteChannel writeChannel,
int index,
java.lang.String header,
java.lang.String value)
|
static void |
sendDelRcptPacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String recipient)
|
static void |
sendPacket(java.nio.channels.WritableByteChannel writeChannel,
int command,
java.nio.ByteBuffer dataBuffer)
|
static void |
sendProgressPacket(java.nio.channels.WritableByteChannel writeChannel)
|
static void |
sendReplBodyPacket(java.nio.channels.WritableByteChannel writeChannel,
java.nio.ByteBuffer dataBuffer)
|
static void |
sendReplyCodePacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String reply)
|
static void |
writeZeroTerminatedString(java.nio.ByteBuffer dataBuffer,
java.lang.String string)
|
static int |
zeroTerminatedStringLength(java.lang.String string)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sendPacket
public static void sendPacket(java.nio.channels.WritableByteChannel writeChannel,
int command,
java.nio.ByteBuffer dataBuffer)
throws java.io.IOException
- Throws:
java.io.IOException
zeroTerminatedStringLength
public static int zeroTerminatedStringLength(java.lang.String string)
writeZeroTerminatedString
public static void writeZeroTerminatedString(java.nio.ByteBuffer dataBuffer,
java.lang.String string)
throws java.io.IOException
- Throws:
java.io.IOException
sendAddRcptPacket
public static void sendAddRcptPacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String recipient)
throws java.io.IOException
- Throws:
java.io.IOException
sendDelRcptPacket
public static void sendDelRcptPacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String recipient)
throws java.io.IOException
- Throws:
java.io.IOException
sendAddHeaderPacket
public static void sendAddHeaderPacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String header,
java.lang.String value)
throws java.io.IOException
- Throws:
java.io.IOException
sendChgHeaderPacket
public static void sendChgHeaderPacket(java.nio.channels.WritableByteChannel writeChannel,
int index,
java.lang.String header,
java.lang.String value)
throws java.io.IOException
- Throws:
java.io.IOException
sendReplBodyPacket
public static void sendReplBodyPacket(java.nio.channels.WritableByteChannel writeChannel,
java.nio.ByteBuffer dataBuffer)
throws java.io.IOException
- Throws:
java.io.IOException
sendProgressPacket
public static void sendProgressPacket(java.nio.channels.WritableByteChannel writeChannel)
throws java.io.IOException
- Throws:
java.io.IOException
sendReplyCodePacket
public static void sendReplyCodePacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String reply)
throws java.io.IOException
- Throws:
java.io.IOException
getZeroTerminatedString
public static java.lang.String getZeroTerminatedString(java.nio.ByteBuffer dataBuffer)
getZeroTerminatedStringArray
public static java.lang.String[] getZeroTerminatedStringArray(java.nio.ByteBuffer dataBuffer)
Copyright ? 2001-2004, Sendmail, Inc. All Rights Reserved.