Tabnine Logo
WsgenTool$ReportOutput$Report.commit
Code IndexAdd Tabnine to your IDE (free)

How to use
commit
method
in
com.sun.tools.ws.wscompile.WsgenTool$ReportOutput$Report

Best Java code snippets using com.sun.tools.ws.wscompile.WsgenTool$ReportOutput$Report.commit (Showing top 4 results out of 315)

origin: com.sun.xml.ws/jaxws-tools

/**
 * Generates a small XML file that captures the key activity of wsgen,
 * so that test harness can pick up artifacts.
 */
private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) {
  try {
    ReportOutput.Report report = TXW.create(ReportOutput.Report.class,
        new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport))));
    report.wsdl(wsdlFile.getAbsolutePath());
    ReportOutput.writeQName(rtModel.getServiceQName(), report.service());
    ReportOutput.writeQName(rtModel.getPortName(), report.port());
    ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType());
    report.implClass(endpointClass.getName());
    for (Map.Entry<String, File> e : schemaFiles.entrySet()) {
      ReportOutput.Schema s = report.schema();
      s.ns(e.getKey());
      s.location(e.getValue().getAbsolutePath());
    }
    report.commit();
  } catch (IOException e) {
    // this is code for the test, so we can be lousy in the error handling
    throw new Error(e);
  }
}
origin: javaee/metro-jax-ws

/**
 * Generates a small XML file that captures the key activity of wsgen,
 * so that test harness can pick up artifacts.
 */
private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) {
  try {
    ReportOutput.Report report = TXW.create(ReportOutput.Report.class,
        new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport))));
    report.wsdl(wsdlFile.getAbsolutePath());
    ReportOutput.writeQName(rtModel.getServiceQName(), report.service());
    ReportOutput.writeQName(rtModel.getPortName(), report.port());
    ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType());
    report.implClass(endpointClass.getName());
    for (Map.Entry<String, File> e : schemaFiles.entrySet()) {
      ReportOutput.Schema s = report.schema();
      s.ns(e.getKey());
      s.location(e.getValue().getAbsolutePath());
    }
    report.commit();
  } catch (IOException e) {
    // this is code for the test, so we can be lousy in the error handling
    throw new Error(e);
  }
}
origin: org.glassfish.metro/webservices-tools

/**
 * Generates a small XML file that captures the key activity of wsgen,
 * so that test harness can pick up artifacts.
 */
private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) {
  try {
    ReportOutput.Report report = TXW.create(ReportOutput.Report.class,
        new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport))));
    report.wsdl(wsdlFile.getAbsolutePath());
    ReportOutput.writeQName(rtModel.getServiceQName(), report.service());
    ReportOutput.writeQName(rtModel.getPortName(), report.port());
    ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType());
    report.implClass(endpointClass.getName());
    for (Map.Entry<String, File> e : schemaFiles.entrySet()) {
      ReportOutput.Schema s = report.schema();
      s.ns(e.getKey());
      s.location(e.getValue().getAbsolutePath());
    }
    report.commit();
  } catch (IOException e) {
    // this is code for the test, so we can be lousy in the error handling
    throw new Error(e);
  }
}
origin: javaee/metro-jax-ws

/**
 * Generates a small XML file that captures the key activity of wsgen,
 * so that test harness can pick up artifacts.
 */
private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) {
  try {
    ReportOutput.Report report = TXW.create(ReportOutput.Report.class,
        new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport))));
    report.wsdl(wsdlFile.getAbsolutePath());
    ReportOutput.writeQName(rtModel.getServiceQName(), report.service());
    ReportOutput.writeQName(rtModel.getPortName(), report.port());
    ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType());
    report.implClass(endpointClass.getName());
    for (Map.Entry<String, File> e : schemaFiles.entrySet()) {
      ReportOutput.Schema s = report.schema();
      s.ns(e.getKey());
      s.location(e.getValue().getAbsolutePath());
    }
    report.commit();
  } catch (IOException e) {
    // this is code for the test, so we can be lousy in the error handling
    throw new Error(e);
  }
}
com.sun.tools.ws.wscompileWsgenTool$ReportOutput$Reportcommit

Popular methods of WsgenTool$ReportOutput$Report

  • implClass
    Name of the class that has javax.jws.WebService.
  • port
  • portType
  • schema
  • service
  • wsdl

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JTable (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now