javax.xml.ws.EndpointContext Java Examples
The following examples show how to use
javax.xml.ws.EndpointContext.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WsimportTool.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected boolean compileGeneratedClasses(ErrorReceiver receiver, WsimportListener listener){ List<String> sourceFiles = new ArrayList<String>(); for (File f : options.getGeneratedFiles()) { if (f.exists() && f.getName().endsWith(".java")) { sourceFiles.add(f.getAbsolutePath()); } } if (sourceFiles.size() > 0) { String classDir = options.destDir.getAbsolutePath(); String classpathString = createClasspathString(); boolean bootCP = useBootClasspath(EndpointContext.class) || useBootClasspath(JAXBPermission.class); List<String> args = new ArrayList<String>(); args.add("-d"); args.add(classDir); args.add("-classpath"); args.add(classpathString); //javac is not working in osgi as the url starts with a bundle if (bootCP) { args.add("-Xbootclasspath/p:" + JavaCompilerHelper.getJarFile(EndpointContext.class) + File.pathSeparator + JavaCompilerHelper.getJarFile(JAXBPermission.class)); } if (options.debug) { args.add("-g"); } if (options.encoding != null) { args.add("-encoding"); args.add(options.encoding); } if (options.javacOptions != null) { args.addAll(options.getJavacOptions(args, listener)); } for (int i = 0; i < sourceFiles.size(); ++i) { args.add(sourceFiles.get(i)); } listener.message(WscompileMessages.WSIMPORT_COMPILING_CODE()); if(options.verbose){ StringBuilder argstr = new StringBuilder(); for(String arg:args){ argstr.append(arg).append(" "); } listener.message("javac "+ argstr.toString()); } return JavaCompilerHelper.compile(args.toArray(new String[args.size()]), out, receiver); } //there are no files to compile, so return true? return true; }
Example #2
Source File: WsimportTool.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected boolean compileGeneratedClasses(ErrorReceiver receiver, WsimportListener listener){ List<String> sourceFiles = new ArrayList<String>(); for (File f : options.getGeneratedFiles()) { if (f.exists() && f.getName().endsWith(".java")) { sourceFiles.add(f.getAbsolutePath()); } } if (sourceFiles.size() > 0) { String classDir = options.destDir.getAbsolutePath(); String classpathString = createClasspathString(); boolean bootCP = useBootClasspath(EndpointContext.class) || useBootClasspath(JAXBPermission.class); List<String> args = new ArrayList<String>(); args.add("-d"); args.add(classDir); args.add("-classpath"); args.add(classpathString); //javac is not working in osgi as the url starts with a bundle if (bootCP) { args.add("-Xbootclasspath/p:" + JavaCompilerHelper.getJarFile(EndpointContext.class) + File.pathSeparator + JavaCompilerHelper.getJarFile(JAXBPermission.class)); } if (options.debug) { args.add("-g"); } if (options.encoding != null) { args.add("-encoding"); args.add(options.encoding); } if (options.javacOptions != null) { args.addAll(options.getJavacOptions(args, listener)); } for (int i = 0; i < sourceFiles.size(); ++i) { args.add(sourceFiles.get(i)); } listener.message(WscompileMessages.WSIMPORT_COMPILING_CODE()); if(options.verbose){ StringBuilder argstr = new StringBuilder(); for(String arg:args){ argstr.append(arg).append(" "); } listener.message("javac "+ argstr.toString()); } return JavaCompilerHelper.compile(args.toArray(new String[args.size()]), out, receiver); } //there are no files to compile, so return true? return true; }
Example #3
Source File: WsimportTool.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
protected boolean compileGeneratedClasses(ErrorReceiver receiver, WsimportListener listener){ List<String> sourceFiles = new ArrayList<String>(); for (File f : options.getGeneratedFiles()) { if (f.exists() && f.getName().endsWith(".java")) { sourceFiles.add(f.getAbsolutePath()); } } if (sourceFiles.size() > 0) { String classDir = options.destDir.getAbsolutePath(); String classpathString = createClasspathString(); boolean bootCP = useBootClasspath(EndpointContext.class) || useBootClasspath(JAXBPermission.class); List<String> args = new ArrayList<String>(); args.add("-d"); args.add(classDir); args.add("-classpath"); args.add(classpathString); //javac is not working in osgi as the url starts with a bundle if (bootCP) { args.add("-Xbootclasspath/p:" + JavaCompilerHelper.getJarFile(EndpointContext.class) + File.pathSeparator + JavaCompilerHelper.getJarFile(JAXBPermission.class)); } if (options.debug) { args.add("-g"); } if (options.encoding != null) { args.add("-encoding"); args.add(options.encoding); } if (options.javacOptions != null) { args.addAll(options.getJavacOptions(args, listener)); } for (int i = 0; i < sourceFiles.size(); ++i) { args.add(sourceFiles.get(i)); } listener.message(WscompileMessages.WSIMPORT_COMPILING_CODE()); if(options.verbose){ StringBuilder argstr = new StringBuilder(); for(String arg:args){ argstr.append(arg).append(" "); } listener.message("javac "+ argstr.toString()); } return JavaCompilerHelper.compile(args.toArray(new String[args.size()]), out, receiver); } //there are no files to compile, so return true? return true; }
Example #4
Source File: WsimportTool.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected boolean compileGeneratedClasses(ErrorReceiver receiver, WsimportListener listener){ List<String> sourceFiles = new ArrayList<String>(); for (File f : options.getGeneratedFiles()) { if (f.exists() && f.getName().endsWith(".java")) { sourceFiles.add(f.getAbsolutePath()); } } if (sourceFiles.size() > 0) { String classDir = options.destDir.getAbsolutePath(); String classpathString = createClasspathString(); boolean bootCP = useBootClasspath(EndpointContext.class) || useBootClasspath(JAXBPermission.class); List<String> args = new ArrayList<String>(); args.add("-d"); args.add(classDir); args.add("-classpath"); args.add(classpathString); //javac is not working in osgi as the url starts with a bundle if (bootCP) { args.add("-Xbootclasspath/p:" + JavaCompilerHelper.getJarFile(EndpointContext.class) + File.pathSeparator + JavaCompilerHelper.getJarFile(JAXBPermission.class)); } if (options.debug) { args.add("-g"); } if (options.encoding != null) { args.add("-encoding"); args.add(options.encoding); } if (options.javacOptions != null) { args.addAll(options.getJavacOptions(args, listener)); } for (int i = 0; i < sourceFiles.size(); ++i) { args.add(sourceFiles.get(i)); } listener.message(WscompileMessages.WSIMPORT_COMPILING_CODE()); if(options.verbose){ StringBuilder argstr = new StringBuilder(); for(String arg:args){ argstr.append(arg).append(" "); } listener.message("javac "+ argstr.toString()); } return JavaCompilerHelper.compile(args.toArray(new String[args.size()]), out, receiver); } //there are no files to compile, so return true? return true; }
Example #5
Source File: WsimportTool.java From hottub with GNU General Public License v2.0 | 4 votes |
protected boolean compileGeneratedClasses(ErrorReceiver receiver, WsimportListener listener){ List<String> sourceFiles = new ArrayList<String>(); for (File f : options.getGeneratedFiles()) { if (f.exists() && f.getName().endsWith(".java")) { sourceFiles.add(f.getAbsolutePath()); } } if (sourceFiles.size() > 0) { String classDir = options.destDir.getAbsolutePath(); String classpathString = createClasspathString(); boolean bootCP = useBootClasspath(EndpointContext.class) || useBootClasspath(JAXBPermission.class); List<String> args = new ArrayList<String>(); args.add("-d"); args.add(classDir); args.add("-classpath"); args.add(classpathString); //javac is not working in osgi as the url starts with a bundle if (bootCP) { args.add("-Xbootclasspath/p:" + JavaCompilerHelper.getJarFile(EndpointContext.class) + File.pathSeparator + JavaCompilerHelper.getJarFile(JAXBPermission.class)); } if (options.debug) { args.add("-g"); } if (options.encoding != null) { args.add("-encoding"); args.add(options.encoding); } if (options.javacOptions != null) { args.addAll(options.getJavacOptions(args, listener)); } for (int i = 0; i < sourceFiles.size(); ++i) { args.add(sourceFiles.get(i)); } listener.message(WscompileMessages.WSIMPORT_COMPILING_CODE()); if(options.verbose){ StringBuilder argstr = new StringBuilder(); for(String arg:args){ argstr.append(arg).append(" "); } listener.message("javac "+ argstr.toString()); } return JavaCompilerHelper.compile(args.toArray(new String[args.size()]), out, receiver); } //there are no files to compile, so return true? return true; }
Example #6
Source File: WsimportTool.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected boolean compileGeneratedClasses(ErrorReceiver receiver, WsimportListener listener){ List<String> sourceFiles = new ArrayList<String>(); for (File f : options.getGeneratedFiles()) { if (f.exists() && f.getName().endsWith(".java")) { sourceFiles.add(f.getAbsolutePath()); } } if (sourceFiles.size() > 0) { String classDir = options.destDir.getAbsolutePath(); String classpathString = createClasspathString(); boolean bootCP = useBootClasspath(EndpointContext.class) || useBootClasspath(JAXBPermission.class); List<String> args = new ArrayList<String>(); args.add("-d"); args.add(classDir); args.add("-classpath"); args.add(classpathString); //javac is not working in osgi as the url starts with a bundle if (bootCP) { args.add("-Xbootclasspath/p:" + JavaCompilerHelper.getJarFile(EndpointContext.class) + File.pathSeparator + JavaCompilerHelper.getJarFile(JAXBPermission.class)); } if (options.debug) { args.add("-g"); } if (options.encoding != null) { args.add("-encoding"); args.add(options.encoding); } if (options.javacOptions != null) { args.addAll(options.getJavacOptions(args, listener)); } for (int i = 0; i < sourceFiles.size(); ++i) { args.add(sourceFiles.get(i)); } listener.message(WscompileMessages.WSIMPORT_COMPILING_CODE()); if(options.verbose){ StringBuilder argstr = new StringBuilder(); for(String arg:args){ argstr.append(arg).append(" "); } listener.message("javac "+ argstr.toString()); } return JavaCompilerHelper.compile(args.toArray(new String[args.size()]), out, receiver); } //there are no files to compile, so return true? return true; }
Example #7
Source File: WsimportTool.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected boolean compileGeneratedClasses(ErrorReceiver receiver, WsimportListener listener){ List<String> sourceFiles = new ArrayList<String>(); for (File f : options.getGeneratedFiles()) { if (f.exists() && f.getName().endsWith(".java")) { sourceFiles.add(f.getAbsolutePath()); } } if (sourceFiles.size() > 0) { String classDir = options.destDir.getAbsolutePath(); String classpathString = createClasspathString(); boolean bootCP = useBootClasspath(EndpointContext.class) || useBootClasspath(JAXBPermission.class); List<String> args = new ArrayList<String>(); args.add("-d"); args.add(classDir); args.add("-classpath"); args.add(classpathString); //javac is not working in osgi as the url starts with a bundle if (bootCP) { args.add("-Xbootclasspath/p:" + JavaCompilerHelper.getJarFile(EndpointContext.class) + File.pathSeparator + JavaCompilerHelper.getJarFile(JAXBPermission.class)); } if (options.debug) { args.add("-g"); } if (options.encoding != null) { args.add("-encoding"); args.add(options.encoding); } if (options.javacOptions != null) { args.addAll(options.getJavacOptions(args, listener)); } for (int i = 0; i < sourceFiles.size(); ++i) { args.add(sourceFiles.get(i)); } listener.message(WscompileMessages.WSIMPORT_COMPILING_CODE()); if(options.verbose){ StringBuilder argstr = new StringBuilder(); for(String arg:args){ argstr.append(arg).append(" "); } listener.message("javac "+ argstr.toString()); } return JavaCompilerHelper.compile(args.toArray(new String[args.size()]), out, receiver); } //there are no files to compile, so return true? return true; }
Example #8
Source File: EndpointImpl.java From cxf with Apache License 2.0 | 4 votes |
public void setEndpointContext(EndpointContext ctxt) { endpointContext = ctxt; }
Example #9
Source File: EndpointImpl.java From cxf with Apache License 2.0 | 4 votes |
public EndpointContext getEndpointContext() { return endpointContext; }