Share this page

# LrJposChannel.getIncomingFilters

Gets the incoming filters list.

`public static Collection<ISOFilter> getIncomingFilters()`

## Return values

This function returns all the incoming filters as a collection.

## Example

Copy code

    public void filterTest2() throws Throwable{

            //adding system.out logger
            Logger logger = new Logger();
            logger.addListener(new SimpleLogListener(System.out));

            //we should see the logs with "connection" indentifier as logger
            LrJposChannel.setLogger(logger, "filtertest" /*realm*/);
            LrJposChannel.setName("Product-JposChannel ");

            //creating filter
            ChannelInfoFilter filter = new ChannelInfoFilter();
            Properties props = new Properties();
            props.put("channel-name","47");        //" Product-JposChannel " will be set in field 47
            props.put("socket-info", "48");        //socket info will be set in field 48
            filter.setConfiguration(new SimpleConfiguration(props));

            Collection<ISOFilter> filterList = new ArrayList<ISOFilter>();
            filterList.add(filter);

            //adding filters to channel
            LrJposChannel.setOutgoingFilters(filterList);
           //        LrJposChannel.setIncomingFilters(filterList);

            LrISOMsg m = new LrISOMsg();
            m.setMTI("0100");
            m.set(2, "1234567890000000000");
            m.set(3, "523456");
            m.set(4, "123456789121");
            m.set(12, "20241605108110");
            m.set(47, "32432");

            LrJposChannel.send(m);

            LrISOMsg r = LrJposChannel.receive();

            Collection<ISOFilter> filters = LrJposChannel.getOutgoingFilters();
            //        Collection<ISOFilter> filters = LrJposChannel.getIncomingFilters();

    }

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: