Examples of EndpointTemplateInfo


Examples of org.wso2.carbon.mediation.templates.common.EndpointTemplateInfo

            if (temp == null || temp.length == 0 || temp[0] == null) {
                return null;
            }

            for (org.wso2.carbon.mediation.templates.endpoint.stub.types.common.EndpointTemplateInfo info : temp) {
                EndpointTemplateInfo templInfo = new EndpointTemplateInfo();
                templInfo.setTemplateName(info.getTemplateName());
                templInfo.setDescription(info.getDescription());
                templInfo.setEndpointType(info.getEndpointType());
                templates.add(templInfo);
            }
        } catch (Exception e) {
            handleException("Couldn't retrieve the information of the endpoint templates", e);
        }
View Full Code Here

Examples of org.wso2.carbon.mediation.templates.common.EndpointTemplateInfo

            if (temp == null || temp.length == 0 || temp[0] == null) {
                return null;
            }

            for (org.wso2.carbon.mediation.templates.endpoint.stub.types.common.EndpointTemplateInfo info : temp) {
                EndpointTemplateInfo templInfo = new EndpointTemplateInfo();
                templInfo.setTemplateName(info.getTemplateName());
                templInfo.setDescription(info.getDescription());
                templInfo.setEndpointType(info.getEndpointType());
                templates.add(templInfo);
            }
        } catch (Exception e) {
            handleException("Couldn't retrieve the information of the endpoint templates", e);
        }
View Full Code Here

Examples of org.wso2.carbon.mediation.templates.common.EndpointTemplateInfo

    private static int DYNAMIC_ENDPOITNT_TEMPLATES = 1;

    public static EndpointTemplateInfo[] getEndpointTemplates(int pageNumber, int endpointTemplatesPerPage) {
        EndpointTemplateInfo[] templates = new EndpointTemplateInfo[STATIC_ENDPOINT_TEMPLATES];

        EndpointTemplateInfo templ1 = new EndpointTemplateInfo();
        templ1.setTemplateName("endp_template_address");
        templ1.setEndpointType("address");

        EndpointTemplateInfo templ2 = new EndpointTemplateInfo();
        templ2.setTemplateName("endp_template_wsdl");
        templ2.setEndpointType("wsdl");

        EndpointTemplateInfo templ3 = new EndpointTemplateInfo();
        templ3.setTemplateName("endp_template_defaut");
        templ3.setEndpointType("default");

        EndpointTemplateInfo templ4 = new EndpointTemplateInfo();
        templ4.setTemplateName("endp_template_loadbalance");
        templ4.setEndpointType("loadbalance");

        EndpointTemplateInfo templ5 = new EndpointTemplateInfo();
        templ5.setTemplateName("endp_template_failover");
        templ5.setEndpointType("failover");


        templates[0] = templ1;
        templates[1] = templ2;
        templates[2] = templ3;
View Full Code Here

Examples of org.wso2.carbon.mediation.templates.common.EndpointTemplateInfo

            } else {
                ret = new EndpointTemplateInfo[info.length - (endpointTemplatesPerPage * pageNumber)];
            }
            for (int i = 0; i < endpointTemplatesPerPage; ++i) {
                if (ret.length > i) {
                    EndpointTemplateInfo seq = new EndpointTemplateInfo();
                    seq.setTemplateName(info[endpointTemplatesPerPage * pageNumber + i]);
                    ret[i] = seq;
                }
            }
        } catch (Exception e) {
            handleException("Unable to get Dynamic Template Info",e);
View Full Code Here

Examples of org.wso2.carbon.mediation.templates.common.EndpointTemplateInfo

        return templates;
    }

    public static EndpointTemplateInfo[] getDynamicEndpointTemplates(int pageNumber, int endpointTemplatesPerPage) {
        EndpointTemplateInfo[] templates = new EndpointTemplateInfo[DYNAMIC_ENDPOITNT_TEMPLATES];
        EndpointTemplateInfo templ1 = new EndpointTemplateInfo();
        templ1.setTemplateName("dynamic_template1");
        templates[0] = templ1;
//        return new TemplateInfo[0];
        return templates;
    }
View Full Code Here

Examples of org.wso2.carbon.mediation.templates.common.EndpointTemplateInfo

        return templateInfo;
    }

    public static EndpointTemplateInfo createTemplateInfo(Template endpointTemplate) {

        EndpointTemplateInfo templateInfo = new EndpointTemplateInfo();
        templateInfo.setTemplateName(endpointTemplate.getName());
        templateInfo.setDescription(endpointTemplate.getDescription());
        templateInfo.setEndpointType(getEndpointTypeFromTemplate(endpointTemplate.getElement()));
        return templateInfo;
    }
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.