Examples of incrementResponseCount()


Examples of com.subgraph.vega.api.scanner.IInjectionModuleContext.incrementResponseCount()

      ctx.error(request, response, "during OGNL tests");
      return;
    }
   
    ctx.addRequestResponse(ctx.getCurrentIndex(), request, response);
    if(ctx.incrementResponseCount() < 2)
      return;
    final IPageFingerprint pathFP = ctx.getPathState().getPathFingerprint();
   
    if(ctx.isFingerprintMatch(0, pathFP) && ! ctx.isFingerprintMatch(1, pathFP)) {
      System.out.println("Problem: response to [0]['name']=... identical to name=...");     
View Full Code Here

Examples of org.apache.synapse.samples.framework.SampleClientResult.incrementResponseCount()

                                    new QName(addressingNamespace.getNamespaceURI(), "ReferenceParameters"))
                            .getFirstChildWithName(
                                    new QName(eventingNamespace.getNamespaceURI(), "Identifier")).getText();
            log.info("Subscription identifier: " + subId);
            clientResult.addProperty("subId", subId);
            clientResult.incrementResponseCount();
        } catch (Exception e) {
            log.error("Fault Received : " + e.toString(), e);
            clientResult.setException(e);
        }
        deInitializeClient();
View Full Code Here

Examples of org.apache.synapse.samples.framework.SampleClientResult.incrementResponseCount()

            serviceClient.addHeader(identifierOm);
            OMElement response = serviceClient.sendReceive(subscribeOm);
            log.info("UnSubscribed to ID " + identifier);
            Thread.sleep(1000);
            log.info("UnSubscribe Response Received: " + response.toString());
            clientResult.incrementResponseCount();
        } catch (Exception e) {
            log.error("Fault Received : " + e.toString(), e);
            clientResult.setException(e);
        }
        deInitializeClient();
View Full Code Here

Examples of org.apache.synapse.samples.framework.SampleClientResult.incrementResponseCount()

                Thread.sleep(1000);
            } catch (InterruptedException e) {

            }
            log.info("SynapseSubscription Renew Response Received: " + response.toString());
            clientResult.incrementResponseCount();
        } catch (Exception e) {
            log.error("Fault Received : " + e.toString(), e);
            clientResult.setException(e);
        }
        deInitializeClient();
View Full Code Here

Examples of org.apache.synapse.samples.framework.SampleClientResult.incrementResponseCount()

                Thread.sleep(1000);
            } catch (InterruptedException e) {

            }
            log.info("GetStatus Response Received: " + response.toString());
            clientResult.incrementResponseCount();
        } catch (Exception e) {
            log.error("Fault Received : " + e.toString(), e);
            clientResult.setException(e);
        }
        deInitializeClient();
View Full Code Here

Examples of org.apache.synapse.samples.framework.SampleClientResult.incrementResponseCount()

            log.info("Sending Event : \n" + payload.toString());
            serviceClient.fireAndForget(payload);
            log.info("Event sent to topic " + topic);
            Thread.sleep(1000);
            clientResult.incrementResponseCount();
        } catch (Exception e) {
            log.error("Fault Received : " + e.toString(), e);
            clientResult.setException(e);
        }
        deInitializeClient();
View Full Code Here

Examples of org.apache.synapse.samples.framework.SampleClientResult.incrementResponseCount()

                    symbol, 1);
            serviceClient.getOptions().setAction("urn:getQuote");
            OMElement resultElement = serviceClient.sendReceive(payload);
            log.info("Standard :: Stock price = $" +
                    StockQuoteHandler.parseStandardQuoteResponse(resultElement));
            clientResult.incrementResponseCount();
        } catch (Exception e) {
            log.error("Error invoking service", e);
            clientResult.setException(e);
        }
        terminate();
View Full Code Here

Examples of org.apache.synapse.samples.framework.SampleClientResult.incrementResponseCount()

            while (true) {
                if (isCompleted()) {
                    log.info("Standard dual channel :: Stock price = $" +
                            StockQuoteHandler.parseStandardQuoteResponse(getResponse()));
                    clientResult.incrementResponseCount();
                    break;
                } else {
                    Thread.sleep(100);
                }
            }
View Full Code Here

Examples of org.apache.synapse.samples.framework.SampleClientResult.incrementResponseCount()

            payload = StockQuoteHandler.createCustomQuoteRequest(symbol);
            serviceClient.getOptions().setAction("urn:getQuote");
            OMElement resultElement = serviceClient.sendReceive(payload);
            log.info("Custom :: Stock price = $" +
                    StockQuoteHandler.parseCustomQuoteResponse(resultElement));
            clientResult.incrementResponseCount();
        } catch (Exception e) {
            log.error("Error invoking service", e);
            clientResult.setException(e);
        }
        terminate();
View Full Code Here

Examples of org.apache.synapse.samples.framework.SampleClientResult.incrementResponseCount()

            serviceClient.fireAndForget(payload);
            Thread.sleep(5000);

            log.info("Order placed for " + quantity + " shares of stock " + symbol
                    + " at a price of $ " + price);
            clientResult.incrementResponseCount();
        } catch (Exception e) {
            log.error("Error invoking service", e);
            clientResult.setException(e);
        }
        terminate();
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.