Package nexj.core.meta.integration

Examples of nexj.core.meta.integration.SchemaExporter


         bImplemented = http.isGetImplemented();

         if (channel.getBindingCount() > 0 &&
            GENERATE_WSDL_QUERY.equalsIgnoreCase(m_request.getQueryString()))
         {
            SchemaExporter exporter = null;
            MessageTable msgTable = channel.getMessageTable();

            if (msgTable != null)
            {
               Format format = msgTable.getFormat();

               if (format != null)
               {
                  Class exporterClass = format.getExporter();

                  if (exporterClass != null)
                  {
                     Object obj = m_context.getClassInstance(exporterClass);

                     if (obj instanceof SchemaExporter)
                     {
                        exporter = (SchemaExporter)obj;
                     }
                  }
               }
            }

            if (exporter != null)
            {
               Writer writer;

               m_response.setStatus(HttpServletResponse.SC_OK);
               m_response.setContentType("text/xml; charset=UTF-8");
               writer = m_response.getWriter();
               exporter.exportSchema(channel, getRoot() + "/", writer);
               writer.close();
               return;
            }
         }
      }
View Full Code Here

TOP

Related Classes of nexj.core.meta.integration.SchemaExporter

Copyright © 2018 www.massapicom. 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.