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

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

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

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: 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: 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);
  }
}
com.sun.tools.ws.wscompileWsgenTool$ReportOutput$Report

Most used methods

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

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for Android Studio
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