Examples of LineHandler


Examples of org.apache.james.protocols.api.LineHandler

                // copy the ChannelBuffer to a byte array to process the LineHandler
                line = new byte[buf.capacity()];
                buf.getBytes(0, line);
            }
           
            LineHandler lHandler=  (LineHandler) lineHandlers.getLast();
            long start = System.currentTimeMillis();           
            boolean disconnect = lHandler.onLine(pSession,line);
            long executionTime = System.currentTimeMillis() - start;

            for (int i = 0; i < resultHandlers.size(); i++) {
                disconnect = resultHandlers.get(i).onResponse(pSession, disconnect, executionTime, lHandler);
            }
View Full Code Here

Examples of org.apache.james.protocols.api.LineHandler

                // copy the ChannelBuffer to a byte array to process the LineHandler
                line = new byte[buf.capacity()];
                buf.getBytes(0, line);
            }
           
            LineHandler lHandler=  (LineHandler) lineHandlers.getLast();
            long start = System.currentTimeMillis();           
            boolean disconnect = lHandler.onLine(pSession,line);
            long executionTime = System.currentTimeMillis() - start;

            for (int i = 0; i < resultHandlers.size(); i++) {
                disconnect = resultHandlers.get(i).onResponse(pSession, disconnect, executionTime, lHandler);
            }
View Full Code Here

Examples of org.apache.james.protocols.api.handler.LineHandler

                // copy the ChannelBuffer to a byte array to process the LineHandler
                line = new byte[buf.capacity()];
                buf.getBytes(0, line);
            }
           
            LineHandler lHandler=  (LineHandler) lineHandlers.getLast();
            long start = System.currentTimeMillis();           
            Response response = lHandler.onLine(pSession,line);
            long executionTime = System.currentTimeMillis() - start;

            for (int i = 0; i < resultHandlers.size(); i++) {
                // Disable till PROTOCOLS-37 is implemented
                if (response instanceof FutureResponse) {
View Full Code Here

Examples of org.apache.james.protocols.api.handler.LineHandler

                // copy the ChannelBuffer to a byte array to process the LineHandler
                line = new byte[buf.capacity()];
                buf.getBytes(0, line);
            }
           
            LineHandler lHandler=  (LineHandler) lineHandlers.getLast();
            long start = System.currentTimeMillis();           
            Response response = lHandler.onLine(pSession,line);
            long executionTime = System.currentTimeMillis() - start;

            for (int i = 0; i < resultHandlers.size(); i++) {
                // Disable till PROTOCOLS-37 is implemented
                if (response instanceof FutureResponse) {
View Full Code Here

Examples of org.apache.james.protocols.api.handler.LineHandler

       
        if (lineHandlers.size() > 0) {
       
            ChannelBuffer buf = (ChannelBuffer) e.getMessage();     
           
            LineHandler lHandler=  (LineHandler) lineHandlers.getLast();
            long start = System.currentTimeMillis();           
            Response response = lHandler.onLine(pSession,buf.toByteBuffer());
            long executionTime = System.currentTimeMillis() - start;

            for (int i = 0; i < resultHandlers.size(); i++) {
                // Disable till PROTOCOLS-37 is implemented
                if (response instanceof FutureResponse) {
View Full Code Here

Examples of org.apache.james.protocols.api.handler.LineHandler

    public void wireExtensions(Class<?> interfaceName, List<?> extension) throws WiringException {

        if (interfaceName.equals(LineHandler.class)) {
            // add stats for all hooks
            for (Object anExtension : extension) {
                LineHandler c = (LineHandler) anExtension;
                if (!equals(c)) {
                    String cName = c.getClass().getName();
                    try {
                        lStats.put(cName, new LineHandlerStats(jmxName, cName));
                    } catch (Exception e) {
                        throw new WiringException("Unable to wire Hooks", e);
                    }
View Full Code Here

Examples of org.jrdf.parser.line.LineHandler

    public Graph parseNTriples(final File file) {
        return parseNTriples(getInputStream(file));
    }

    public Graph parseNTriples(final InputStream stream) {
        final LineHandler lineHandler = ntriplesFactory.createParser(graph, mapFactory);
        final GraphLineParser lineParser = new GraphLineParser(graph, lineHandler);
        tryParse(lineParser, stream);
        return graph;
    }
View Full Code Here

Examples of org.jrdf.parser.line.LineHandler

    public Graph parseN3(final File file) {
        return parseN3(getInputStream(file));
    }

    public Graph parseN3(final InputStream stream) {
        final LineHandler lineHandler = n3Factory.createParser(graph, mapFactory);
        final GraphLineParser lineParser = new GraphLineParser(graph, lineHandler);
        tryParse(lineParser, stream);
        return graph;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.