Package org.jpos.iso

Examples of org.jpos.iso.ISOException


    public void send (ISOMsg m)
        throws IOException,ISOException, VetoException
    {
        if (!isConnected())
            throw new ISOException ("unconnected ISOChannel");
        LogEvent evt = new LogEvent (this, "loopback-send", m);
        m = applyOutgoingFilters (m, evt);
        queue.enqueue (m);
        cnt[TX]++;
        notifyObservers();
View Full Code Here


   
    public void send (byte[] b)
    throws IOException,ISOException, VetoException
{
    if (!isConnected())
        throw new ISOException ("unconnected ISOChannel");
    LogEvent evt = new LogEvent (this, "loopback-send", b);
    queue.enqueue (b);
    cnt[TX]++;
    notifyObservers();
    Logger.log (evt);
View Full Code Here

}

    public ISOMsg receive() throws IOException, ISOException
    {
        if (!isConnected())
            throw new ISOException ("unconnected ISOChannel");
        try {
            ISOMsg m = (ISOMsg) ((ISOMsg) queue.dequeue()).clone();
            LogEvent evt = new LogEvent (this, "loopback-receive", m);
            m = applyIncomingFilters (m, evt);
            cnt[RX]++;
View Full Code Here

import java.io.InputStream;

public class DummyPackager extends Log implements ISOPackager {
    public byte[] pack (ISOComponent m) throws ISOException {
        throw new ISOException ("DummyPackager.pack N/A");
    }
View Full Code Here

public class DummyPackager extends Log implements ISOPackager {
    public byte[] pack (ISOComponent m) throws ISOException {
        throw new ISOException ("DummyPackager.pack N/A");
    }
    public int unpack (ISOComponent m, byte[] b) throws ISOException {
        throw new ISOException ("DummyPackager.unpack N/A");
    }
View Full Code Here

    }
    public int unpack (ISOComponent m, byte[] b) throws ISOException {
        throw new ISOException ("DummyPackager.unpack N/A");
    }
    public void unpack (ISOComponent m, InputStream in) throws ISOException {
        throw new ISOException ("DummyPackager.unpack N/A");
    }
View Full Code Here

    @Test
    public void stopCanWaitForWorkersEvenWhenOutgoingChannelNeverConnects() throws Exception {
        ISOChannel channel = mock(ISOChannel.class);
        when(channel.isConnected()).thenReturn(false);
        when(channel.receive()).thenThrow(new ISOException("unconnected ISOChannel"));

        // repeat test to ensure clean up occurs after stop
        for (int i = 0; i < 10; i++) {
            channelAdaptor = configureAndStart(new ChannelAdaptorWithoutQ2(channel));
            waitForSenderAndReceiverToStart();
View Full Code Here

            } else {
                createXMLReader().parse(filename);
            }
        }
        catch (Exception e) {
            throw new ISOException("Error reading " + filename, e);
        }
    }
View Full Code Here

            return connected;
        }

        public ISOMsg receive() throws IOException, ISOException {
            if (!connected) {
                throw new ISOException("unconnected ISOChannel");
            }
            try {
                receiverWaiting.release();
                ISOMsg msg = receiveQueue.take();
                if (msg == DISCONNECT_TOKEN) {
View Full Code Here

    {
        try {
            createXMLReader().parse(new InputSource(input));
        }
        catch (Exception e) {
            throw new ISOException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jpos.iso.ISOException

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.