protected void report(String msg) { if (out == null) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "No output set for web service annotation processor reporting."); } return; } out.println(msg); out.flush(); }
protected void report(String msg) { if (out == null) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "No output set for web service annotation processor reporting."); } return; } out.println(msg); out.flush(); }
protected void report(String msg) { if (out == null) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "No output set for web service annotation processor reporting."); } return; } out.println(msg); out.flush(); }
protected void report(String msg) { if (out == null) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "No output set for web service annotation processor reporting."); } return; } out.println(msg); out.flush(); }
/** * Wraps {@link javax.xml.stream.XMLStreamWriter} by an indentation engine if possible. * * <p> * We can do this only when we have {@code stax-utils.jar} in the class path. */ private static XMLStreamWriter createIndenter(XMLStreamWriter writer) { try { Class<?> clazz = Converter.class.getClassLoader().loadClass("javanet.staxutils.IndentingXMLStreamWriter"); Constructor<?> c = clazz.getConstructor(XMLStreamWriter.class); writer = XMLStreamWriter.class.cast(c.newInstance(writer)); } catch (Exception ex) { // if stax-utils.jar is not in the classpath, this will fail // so, we'll just have to do without indentation if (logMissingStaxUtilsWarning.compareAndSet(false, true)) { LOGGER.log(Level.WARNING, "Put stax-utils.jar to the classpath to indent the dump output", ex); } } return writer; } }
/** * Wraps {@link javax.xml.stream.XMLStreamWriter} by an indentation engine if possible. * * <p> * We can do this only when we have {@code stax-utils.jar} in the class path. */ private static XMLStreamWriter createIndenter(XMLStreamWriter writer) { try { Class<?> clazz = Converter.class.getClassLoader().loadClass("javanet.staxutils.IndentingXMLStreamWriter"); Constructor<?> c = clazz.getConstructor(XMLStreamWriter.class); writer = XMLStreamWriter.class.cast(c.newInstance(writer)); } catch (Exception ex) { // if stax-utils.jar is not in the classpath, this will fail // so, we'll just have to do without indentation if (logMissingStaxUtilsWarning.compareAndSet(false, true)) { LOGGER.log(Level.WARNING, "Put stax-utils.jar to the classpath to indent the dump output", ex); } } return writer; } }
/** * Wraps {@link javax.xml.stream.XMLStreamWriter} by an indentation engine if possible. * * <p> * We can do this only when we have {@code stax-utils.jar} in the class path. */ private static XMLStreamWriter createIndenter(XMLStreamWriter writer) { try { Class<?> clazz = Converter.class.getClassLoader().loadClass("javanet.staxutils.IndentingXMLStreamWriter"); Constructor<?> c = clazz.getConstructor(XMLStreamWriter.class); writer = XMLStreamWriter.class.cast(c.newInstance(writer)); } catch (Exception ex) { // if stax-utils.jar is not in the classpath, this will fail // so, we'll just have to do without indentation if (logMissingStaxUtilsWarning.compareAndSet(false, true)) { LOGGER.log(Level.WARNING, "Put stax-utils.jar to the classpath to indent the dump output", ex); } } return writer; } }
private String encodeCid(String ns) { String cid = "example.jaxws.sun.com"; String name = UUID.randomUUID() + "@"; if (ns != null && (ns.length() > 0)) { try { URI uri = new URI(ns); cid = uri.toURL().getHost(); } catch (URISyntaxException e) { if (LOGGER.isLoggable(Level.INFO)) { LOGGER.log(Level.INFO, null, e); } return null; } catch (MalformedURLException e) { try { cid = URLEncoder.encode(ns, "UTF-8"); } catch (UnsupportedEncodingException e1) { throw new WebServiceException(e); } } } return name + cid; } }
private String encodeCid(String ns) { String cid = "example.jaxws.sun.com"; String name = UUID.randomUUID() + "@"; if (ns != null && (ns.length() > 0)) { try { URI uri = new URI(ns); cid = uri.toURL().getHost(); } catch (URISyntaxException e) { if (LOGGER.isLoggable(Level.INFO)) { LOGGER.log(Level.INFO, null, e); } return null; } catch (MalformedURLException e) { try { cid = URLEncoder.encode(ns, "UTF-8"); } catch (UnsupportedEncodingException e1) { throw new WebServiceException(e); } } } return name + cid; } }
private String encodeCid(String ns) { String cid = "example.jaxws.sun.com"; String name = UUID.randomUUID() + "@"; if (ns != null && (ns.length() > 0)) { try { URI uri = new URI(ns); cid = uri.toURL().getHost(); } catch (URISyntaxException e) { if (LOGGER.isLoggable(Level.INFO)) { LOGGER.log(Level.INFO, null, e); } return null; } catch (MalformedURLException e) { try { cid = URLEncoder.encode(ns, "UTF-8"); } catch (UnsupportedEncodingException e1) { throw new WebServiceException(e); } } } return name + cid; } }
LOGGER.log(Level.WARNING, "Unexpected exception occured while dumping message", e); } finally { if (writer != null) {
LOGGER.log(Level.WARNING, "Unexpected exception occured while dumping message", e); } finally { if (writer != null) {
LOGGER.log(Level.WARNING, "Unexpected exception occured while dumping message", e); } finally { if (writer != null) {