Package org.apache.vysper.mina.codec

Examples of org.apache.vysper.mina.codec.StanzaWriteInfo


            minaSession.resumeWrite();
            minaSession.resumeRead();
            switchToTLS = false;
        }

        minaSession.write(new StanzaWriteInfo(stanza, !openingStanzaWritten));
        openingStanzaWritten = true;
    }
View Full Code Here


    public void messageSent(NextFilter nextFilter, IoSession session,
            WriteRequest request) throws Exception {
      Object message = request.getMessage();
        if (message instanceof StanzaWriteInfo) {
            StanzaWriteInfo stanzaWriteInfo = (StanzaWriteInfo) message;

            if (serverLogger.isInfoEnabled()) {
                serverLogger.info(DenseStanzaLogRenderer.render(stanzaWriteInfo
                        .getStanza()));
            }
            if (serverLogger.isDebugEnabled()) {
                String xml = toXml(stanzaWriteInfo.getStanza(), stanzaWriteInfo
                        .isWriteOpeningElement(), stanzaWriteInfo
                        .isWriteClosingElement());

                serverLogger.info("Sent stanza: " + xml);
            }
        }
View Full Code Here

            minaSession.resumeWrite();
            minaSession.resumeRead();
            switchToTLS = false;
        }

        minaSession.write(new StanzaWriteInfo(stanza, !openingStanzaWritten));
        openingStanzaWritten = true;
    }
View Full Code Here

    }

    public void messageSent(NextFilter nextFilter, IoSession session, WriteRequest request) throws Exception {
        Object message = request.getMessage();
        if (message instanceof StanzaWriteInfo) {
            StanzaWriteInfo stanzaWriteInfo = (StanzaWriteInfo) message;

            if (serverLogger.isInfoEnabled()) {
                serverLogger.info(DenseStanzaLogRenderer.render(stanzaWriteInfo.getStanza()));
            }
            if (serverLogger.isDebugEnabled()) {
                String xml = toXml(stanzaWriteInfo.getStanza(), stanzaWriteInfo.isWriteOpeningElement(),
                        stanzaWriteInfo.isWriteClosingElement());

                serverLogger.info("Sent stanza: " + xml);
            }
        }
View Full Code Here

        if (switchToTLS) {
            addSslFilter();
            switchToTLS = false;
        }

        minaSession.write(new StanzaWriteInfo(stanza, !openingStanzaWritten));
        openingStanzaWritten = true;
    }
View Full Code Here

    }

    public void messageSent(NextFilter nextFilter, IoSession session, WriteRequest request) throws Exception {
        Object message = request.getMessage();
        if (message instanceof StanzaWriteInfo) {
            StanzaWriteInfo stanzaWriteInfo = (StanzaWriteInfo) message;

            if(serverLogger.isDebugEnabled()) {
                String xml = toXml(stanzaWriteInfo.getStanza(), stanzaWriteInfo.isWriteOpeningElement(),
                        stanzaWriteInfo.isWriteClosingElement());
               
                serverLogger.debug("> " + xml);
            } else if (serverLogger.isInfoEnabled()) {
                serverLogger.info(DenseStanzaLogRenderer.render(stanzaWriteInfo.getStanza()));
            }
        }

        nextFilter.messageSent(session, request);
    }
View Full Code Here

TOP

Related Classes of org.apache.vysper.mina.codec.StanzaWriteInfo

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.