Package com.sendmail.jilter.internal
Class JilterServerPacketUtil
- java.lang.Object
-
- com.sendmail.jilter.internal.JilterServerPacketUtil
-
public class JilterServerPacketUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetZeroTerminatedString(java.nio.ByteBuffer dataBuffer)static java.lang.String[]getZeroTerminatedStringArray(java.nio.ByteBuffer dataBuffer)static voidsendAddHeaderPacket(java.nio.channels.WritableByteChannel writeChannel, java.lang.String header, java.lang.String value)static voidsendAddRcptPacket(java.nio.channels.WritableByteChannel writeChannel, java.lang.String recipient)static voidsendChgHeaderPacket(java.nio.channels.WritableByteChannel writeChannel, int index, java.lang.String header, java.lang.String value)static voidsendDelRcptPacket(java.nio.channels.WritableByteChannel writeChannel, java.lang.String recipient)static voidsendPacket(java.nio.channels.WritableByteChannel writeChannel, int command, java.nio.ByteBuffer dataBuffer)static voidsendProgressPacket(java.nio.channels.WritableByteChannel writeChannel)static voidsendReplBodyPacket(java.nio.channels.WritableByteChannel writeChannel, java.nio.ByteBuffer dataBuffer)static voidsendReplyCodePacket(java.nio.channels.WritableByteChannel writeChannel, java.lang.String reply)static voidwriteZeroTerminatedString(java.nio.ByteBuffer dataBuffer, java.lang.String string)static intzeroTerminatedStringLength(java.lang.String string)
-
-
-
Method Detail
-
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)
-
-