|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sendmail.jilter.JilterProcessor
public class JilterProcessor
The guts of handling the filter side of the Milter protocol. If you have your own
way that you like to handle communicating with the MTA side of the Milter protocol,
you can feed an instance of this class the bytes from the MTA, and it will handle
calling methods in a JilterHandler
, as well as sending data back to the MTA
via an arbitrary WritableByteChannel
.
Constructor Summary | |
---|---|
JilterProcessor(JilterHandler handler)
Public constructor. |
Method Summary | |
---|---|
void |
close()
Closes this processor. |
boolean |
process(WritableByteChannel writeChannel,
ByteBuffer dataBuffer)
Process more data from the MTA. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JilterProcessor(JilterHandler handler)
handler
- the underlying handler that will receive calls based on the Milter conversation.Method Detail |
---|
public boolean process(WritableByteChannel writeChannel, ByteBuffer dataBuffer) throws IOException
writeChannel
- the data channel for communicating back to the MTA.dataBuffer
- the next chunk of data from the MTA.
false
if processing is completed.
IOException
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |