Package net.sf.jml

Examples of net.sf.jml.MsnMessageChain


            send(message, false);
        }

        @Override
    public void sessionClosed(Session session) {
            MsnMessageChain chain = ((MsnSession) session.getAttachment())
                    .getIncomingMessageChain();
            MsnMessageIterator iterator = chain.iterator();
            if (iterator.hasPrevious()) {
                MsnMessage message = iterator.previous();
                //The last message is redirect message
                if (message instanceof IncomingXFR
                        && !((IncomingXFR) message)
View Full Code Here


    @Override
  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);

        MsnMessageChain chain = session.getOutgoingMessageChain();
        int errorCode = getErrorCode();
        int trId = getTransactionId();

        if(isSupportChunkData() && getChunkData() != null)
            logger.trace("Error " + errorCode + ": " +
                    new String(getChunkData()));

        for (MsnMessageIterator iterator = chain.iterator(); iterator
                .hasPrevious();) {
            MsnOutgoingMessage message = (MsnOutgoingMessage) iterator
                    .previous();
            if (message.getTransactionId() == trId) {
                throw new MsnProtocolException(errorCode, this, message);
View Full Code Here

            send(message, false);
        }

        @Override
    public void sessionClosed(Session session) {
            MsnMessageChain chain = ((MsnSession) session.getAttachment())
                    .getIncomingMessageChain();
            MsnMessageIterator iterator = chain.iterator();
            if (iterator.hasPrevious()) {
                MsnMessage message = iterator.previous();
                //The last message is redirect message
                if (message instanceof IncomingXFR
                        && !((IncomingXFR) message)
View Full Code Here

        super.messageReceived(session);
       
        if (protocol.after(MsnProtocol.MSNP13) && session.getContactList().isADLSent())
            session.getContactList().processInit();

        MsnMessageChain chain = session.getOutgoingMessageChain();
        int trId = getTransactionId();

        for (MsnMessageIterator iterator = chain.iterator(); iterator.hasPrevious();)
        {
            MsnOutgoingMessage message = (MsnOutgoingMessage) iterator.previous();
            if (message.getTransactionId() == trId)
            {
                MsnContactImpl contact = ((OutgoingADL) message).getContact();
View Full Code Here

  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);

        MsnMessenger messenger = session.getMessenger();
        MsnContactList contactList = messenger.getContactList();
        MsnMessageChain incoming = messenger.getIncomingMessageChain();
        MsnContact contact = null;

        for (MsnMessageIterator iter = incoming.iterator(); iter.hasPrevious();) {
            MsnMessage message = iter.previous();
            if (message instanceof IncomingBPR)
                continue;
            if (message instanceof IncomingLST) {
                Email email = ((IncomingLST) message).getEmail();
View Full Code Here

        super.messageReceived(session);

        MsnContactListImpl contactList =
            (MsnContactListImpl) session.getMessenger().getContactList();

        MsnMessageChain chain = session.getOutgoingMessageChain();
        int trId = getTransactionId();

        for (MsnMessageIterator iterator = chain.iterator(); iterator.hasPrevious();)
        {
            MsnOutgoingMessage message = (MsnOutgoingMessage) iterator.previous();
            if (message.getTransactionId() == trId)
            {
                MsnContactImpl contact = (MsnContactImpl)((OutgoingRML) message).getContact();
View Full Code Here

TOP

Related Classes of net.sf.jml.MsnMessageChain

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.