Examples of SLPropertiesMatcher


Examples of org.talend.esb.servicelocator.client.SLPropertiesMatcher

        }
    }

    @Override
    public void setRequiredEndpointProperties(Map<String, String> properties) {
        slPropsMatcher = new SLPropertiesMatcher();

        if (LOG.isLoggable(Level.FINE)) {
            StringBuilder sb = new StringBuilder();
            for (String prop: properties.keySet()) {
                sb.append(prop + " -> ");
View Full Code Here

Examples of org.talend.esb.servicelocator.client.SLPropertiesMatcher

                    .status(Status.INTERNAL_SERVER_ERROR)
                    .entity("Error during decoding serviceName").build());
        }
        List<String> names = null;
        String adress = null;
        SLPropertiesMatcher matcher = null;
        try {
            matcher = createMatcher(arg1);
        } catch (UnsupportedEncodingException e1) {
            throw new WebApplicationException(Response
                    .status(Status.INTERNAL_SERVER_ERROR)
View Full Code Here

Examples of org.talend.esb.servicelocator.client.SLPropertiesMatcher

                    .status(Status.INTERNAL_SERVER_ERROR)
                    .entity(e1.getMessage()).build());
        }
        List<String> names = null;
        String adress = null;
        SLPropertiesMatcher matcher = null;
        try {
            matcher = createMatcher(arg1);
        } catch (UnsupportedEncodingException e1) {
            throw new WebApplicationException(Response
                    .status(Status.INTERNAL_SERVER_ERROR)
View Full Code Here

Examples of org.talend.esb.servicelocator.client.SLPropertiesMatcher

        return refs;
    }

    private SLPropertiesMatcher createMatcher(List<String> input)
        throws UnsupportedEncodingException {
        SLPropertiesMatcher matcher = null;
        if (input != null && input.size() > 0) {
            matcher = new SLPropertiesMatcher();
            for (String pair : input) {
                String[] assertion = URLDecoder.decode(pair, "UTF-8")
                        .split(",");
                if (assertion.length == 2) {
                    matcher.addAssertion(assertion[0], assertion[1]);
                }
            }
        }
        return matcher;
    }
View Full Code Here

Examples of org.talend.esb.servicelocator.client.SLPropertiesMatcher

            InterruptedExceptionFault {
        List<String> names = null;
        String adress;
        try {
            initLocator();
            SLPropertiesMatcher matcher = createMatcher(matcherData);
            if (matcher == null) {
                names = locatorClient.lookup(serviceName);
            } else {
                names = locatorClient.lookup(serviceName, matcher);
            }
View Full Code Here

Examples of org.talend.esb.servicelocator.client.SLPropertiesMatcher

     *
     */
    List<W3CEndpointReference> lookupEndpoints(QName serviceName,
            MatcherDataType matcherData) throws ServiceLocatorFault,
            InterruptedExceptionFault {
        SLPropertiesMatcher matcher = createMatcher(matcherData);
        List<String> names = null;
        List<W3CEndpointReference> result = new ArrayList<W3CEndpointReference>();
        String adress;
        try {
            initLocator();
View Full Code Here

Examples of org.talend.esb.servicelocator.client.SLPropertiesMatcher

        }
        return result;
    }

    private SLPropertiesMatcher createMatcher(MatcherDataType matcherData) {
        SLPropertiesMatcher matcher = null;
        if (matcherData != null) {
            matcher = new SLPropertiesMatcher();
            List<AssertionType> assertions = matcherData.getEntry();
            for (AssertionType assertion : assertions) {
                matcher.addAssertion(assertion.getKey(), assertion.getValue());
            }
        }
        return matcher;
    }
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.