Package com.sendmail.jilter

Examples of com.sendmail.jilter.JilterProcessor


      }
      return;
    }
 
    ByteBuffer dataBuffer = ByteBuffer.allocateDirect(4096);
    JilterProcessor processor = new JilterProcessor(this);
        try {
            while (processor.process(socket, (ByteBuffer) dataBuffer.flip())) {
                dataBuffer.compact();
                if (this.socket.read(dataBuffer) == -1) {
                    logger.debug("socket reports EOF, exiting read loop");
                    break;
                }
            }
        }
        catch (IOException e) {
            logger.debug("Unexpected exception, connection will be closed", e);
        } finally {
            logger.debug("closing processor");
            processor.close();
            logger.debug("processor closed");
            try {
                logger.debug("closing socket");
                this.socket.close();
                logger.debug("socket closed");
View Full Code Here


      }
      return;
    }
 
    ByteBuffer dataBuffer = ByteBuffer.allocateDirect(4096);
    JilterProcessor processor = new JilterProcessor(this);
        try {
            while (processor.process(socket, (ByteBuffer) dataBuffer.flip())) {
                dataBuffer.compact();
                if (this.socket.read(dataBuffer) == -1) {
                    logger.debug("socket reports EOF, exiting read loop");
                    break;
                }
            }
        }
        catch (IOException e) {
            logger.debug("Unexpected exception, connection will be closed", e);
        } finally {
            logger.debug("closing processor");
            processor.close();
            logger.debug("processor closed");
            try {
                logger.debug("closing socket");
                this.socket.close();
                logger.debug("socket closed");
View Full Code Here

    protected JilterProcessor processor = null;

    public JilterRunnable(SocketChannel socket, JilterHandler handler) throws IOException {
        this.socket = socket;
        this.socket.configureBlocking(true);
        this.processor = new JilterProcessor(handler);
    }
View Full Code Here

TOP

Related Classes of com.sendmail.jilter.JilterProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.