Class EndpointTemplateAdminClient


  • public class EndpointTemplateAdminClient
    extends Object
    • Constructor Detail

      • EndpointTemplateAdminClient

        public EndpointTemplateAdminClient​(javax.servlet.ServletConfig config,
                                           javax.servlet.http.HttpSession session)
                                    throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault
    • Method Detail

      • getAllTempalateNames

        public String[] getAllTempalateNames()
                                      throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • getEndpointTemplatesCount

        public int getEndpointTemplatesCount()
                                      throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • getDynamicEndpointTemplatesCount

        public int getDynamicEndpointTemplatesCount()
                                             throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • getEndpointTemplates

        public org.wso2.carbon.mediation.templates.common.EndpointTemplateInfo[] getEndpointTemplates​(int pageNumber,
                                                                                                      int endpointTemplatesPerPage)
                                                                                               throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • getDynamicEndpointTemplates

        public org.wso2.carbon.mediation.templates.common.EndpointTemplateInfo[] getDynamicEndpointTemplates​(int pageNumber,
                                                                                                             int endpointTemplatesPerPage)
                                                                                                      throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • getTempalate

        public org.apache.synapse.endpoints.Template getTempalate​(String templateName)
                                                           throws RemoteException,
                                                                  org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        RemoteException
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • saveTemplate

        public void saveTemplate​(String templateConfig)
                          throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • saveDynamicTemplate

        public void saveDynamicTemplate​(String key,
                                        String templateConfig)
                                 throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • addTemplate

        public void addTemplate​(String templateConfig)
                         throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • addDynamicTemplate

        public void addDynamicTemplate​(String key,
                                       String templateConfig)
                                throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • deleteTemplate

        public void deleteTemplate​(String templateName)
                            throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • deleteDynamicTemplate

        public void deleteDynamicTemplate​(String templateName)
                                   throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException
      • hasDuplicateTemplateEndpoint

        public boolean hasDuplicateTemplateEndpoint​(String templateElementConfig)
                                             throws org.wso2.carbon.mediation.templates.common.TemplateEditorException
        Throws:
        org.wso2.carbon.mediation.templates.common.TemplateEditorException