Examples of accept()


Examples of org.jpos.iso.channel.XMLChannel.accept()

    @Test
    public void testAcceptThrowsNullPointerException() throws Throwable {
        BaseChannel xMLChannel = new XMLChannel(new PostPackager());
        try {
            xMLChannel.accept(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNull("(XMLChannel) xMLChannel.logger", ((XMLChannel) xMLChannel).logger);
            assertNull("(XMLChannel) xMLChannel.originalRealm", ((XMLChannel) xMLChannel).originalRealm);
View Full Code Here

Examples of org.jrdf.query.answer.Answer.accept()

        try {
            Representation representation = Representation.createEmpty();
            final Answer answer = (Answer) dataModel.get("answer");
            if (answer != null) {
                mediaType = defaultMediaType;
                representation = answer.accept(this);
            }
            return representation;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here

Examples of org.jruby.ast.ConstNode.accept()

        try {
            String testString = "test";
            FileOutputStream stream = new FileOutputStream(fileName);
            ReWriteVisitor visitor = new ReWriteVisitor(stream, "");
            ConstNode node = new ConstNode(emptyPosition, testString);
            node.accept(visitor);
            visitor.flushStream();
            stream.close();
            BufferedReader reader = new BufferedReader(new FileReader(fileName));
            assertEquals(reader.readLine(), testString);
            reader.close();
View Full Code Here

Examples of org.jruby.ast.Node.accept()

    public Void visitInstAsgnNode(InstAsgnNode iVisited) {
        foundVariables.add(iVisited.getName());
        List<Node> nodes = iVisited.childNodes();
        for (int i = 0; i < nodes.size(); i++) {
            Node node = nodes.get(i);
            node.accept(this);
        }
        return null;
    }

    /**
 
View Full Code Here

Examples of org.jsmpp.session.BindRequest.accept()

        public void run() {
            try {
                BindRequest bindRequest = serverSession.waitForBind(1000);
                logger.info("Accepting bind for session {}", serverSession.getSessionId());
                try {
                    bindRequest.accept("sys");
                } catch (PDUStringException e) {
                    logger.error("Invalid system id", e);
                    bindRequest.reject(SMPPConstant.STAT_ESME_RSYSERR);
                }
           
View Full Code Here

Examples of org.jsmpp.session.SMPPServerSessionListener.accept()

        try {
            SMPPServerSessionListener sessionListener = new SMPPServerSessionListener(port);
           
            logger.info("Listening on port {}", port);
            while (true) {
                SMPPServerSession serverSession = sessionListener.accept();
                logger.info("Accepting connection for session {}", serverSession.getSessionId());
                serverSession.setMessageReceiverListener(this);
                serverSession.setResponseDeliveryListener(this);
                execService.execute(new WaitBindTask(serverSession));
            }
View Full Code Here

Examples of org.jtester.hamcrest.matcher.property.difference.Difference.accept()

            if (difference == null) {
                continue;
            }

            String innerFieldName = createFieldName(fieldName, "[" + leftIndex + "," + rightIndex + "]", false);
            result.append(difference.accept(differenceFormatterVisitor, innerFieldName));
        }
        return result.toString();
    }

View Full Code Here

Examples of org.jvnet.glassfish.comms.admin.clbadmin.reader.api.LoadbalancerReader.accept()

            // tranform the data using visitor pattern
            Loadbalancer _lb = new Loadbalancer();

            LoadbalancerVisitor lbVstr = new LoadbalancerVisitor(_lb);
            lbr.accept(lbVstr);

            ObjectFactory clbFactory = new ObjectFactory();
            clbFactory.store(_lb, out);
            out.flush();
            if (!ClbAdminEventHelper.isClbDebug())
View Full Code Here

Examples of org.kie.api.marshalling.ObjectMarshallingStrategy.accept()

               
                ObjectMarshallingStrategy strategy = context.objectMarshallingStrategyStore.getStrategyObject( object );
                String strategyClassName = strategy.getClass().getName();
                stream.writeInt(-2); // backwards compatibility
                stream.writeUTF(strategyClassName);
                if ( strategy.accept( object ) ) {
                    strategy.write( stream,
                                    object );
                }
            }
View Full Code Here

Examples of org.kie.api.runtime.conf.TimedRuleExecutionFilter.accept()

            final TimedRuleExecutionFilter filter = timerJobCtx.getWorkingMemory().getSessionConfiguration().getTimedRuleExecutionFilter();
            if (filter != null) {
                ExecutorHolder.executor.execute( new Runnable() {
                    @Override
                    public void run() {
                        if (filter.acceptnew Rule[] { pmem.getRule() } )) {
                            new Executor(pmem,
                                         timerJobCtx.getWorkingMemory(),
                                         timerJobCtx.getSink(),
                                         timerJobCtx.getTimerNodeMemory()).evauateAndFireRule();
                        }
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.