gpt4 book ai didi

com.sun.xml.ws.util.xml.XmlUtil.createEntityResolver()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 20:01:05 25 4
gpt4 key购买 nike

本文整理了Java中com.sun.xml.ws.util.xml.XmlUtil.createEntityResolver()方法的一些代码示例,展示了XmlUtil.createEntityResolver()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlUtil.createEntityResolver()方法的具体详情如下:
包路径:com.sun.xml.ws.util.xml.XmlUtil
类名称:XmlUtil
方法名:createEntityResolver

XmlUtil.createEntityResolver介绍

[英]Gets an EntityResolver using XML catalog
[中]使用XML目录获取EntityResolver

代码示例

代码示例来源:origin: javaee/metro-jax-ws

/**
 * Creates an {@link EntityResolver} that consults {@code /WEB-INF/jax-ws-catalog.xml}.
 */
private EntityResolver createEntityResolver() {
  try {
    return XmlUtil.createEntityResolver(loader.getCatalogFile());
  } catch (MalformedURLException e) {
    throw new WebServiceException(e);
  }
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

/**
 * Creates an {@link EntityResolver} that consults {@code /WEB-INF/jax-ws-catalog.xml}.
 */
private EntityResolver createEntityResolver() {
  try {
    return XmlUtil.createEntityResolver(loader.getCatalogFile());
  } catch (MalformedURLException e) {
    throw new WebServiceException(e);
  }
}

代码示例来源:origin: com.sun.xml.ws/rt

/**
 * Creates an {@link EntityResolver} that consults {@code /WEB-INF/jax-ws-catalog.xml}.
 */
private EntityResolver createEntityResolver() {
  try {
    return XmlUtil.createEntityResolver(loader.getCatalogFile());
  } catch (MalformedURLException e) {
    throw new WebServiceException(e);
  }
}

代码示例来源:origin: javaee/metro-jax-ws

if (entityResolver == null) {
  if (catalog != null && catalog.length() > 0)
    entityResolver = XmlUtil.createEntityResolver(JAXWSUtils.getFileOrURL(JAXWSUtils.absolutize(Util.escapeSpace(catalog))));
} else if (catalog != null && catalog.length() > 0) {
  EntityResolver er = XmlUtil.createEntityResolver(JAXWSUtils.getFileOrURL(JAXWSUtils.absolutize(Util.escapeSpace(catalog))));
  entityResolver = new ForkEntityResolver(er, entityResolver);

代码示例来源:origin: com.sun.xml.ws/jaxws-tools

if (entityResolver == null) {
  if (catalog != null && catalog.length() > 0)
    entityResolver = XmlUtil.createEntityResolver(JAXWSUtils.getFileOrURL(JAXWSUtils.absolutize(Util.escapeSpace(catalog))));
} else if (catalog != null && catalog.length() > 0) {
  EntityResolver er = XmlUtil.createEntityResolver(JAXWSUtils.getFileOrURL(JAXWSUtils.absolutize(Util.escapeSpace(catalog))));
  entityResolver = new ForkEntityResolver(er, entityResolver);

代码示例来源:origin: org.glassfish.metro/webservices-tools

if (entityResolver == null) {
  if (catalog != null && catalog.length() > 0)
    entityResolver = XmlUtil.createEntityResolver(JAXWSUtils.getFileOrURL(JAXWSUtils.absolutize(Util.escapeSpace(catalog))));
} else if (catalog != null && catalog.length() > 0) {
  EntityResolver er = XmlUtil.createEntityResolver(JAXWSUtils.getFileOrURL(JAXWSUtils.absolutize(Util.escapeSpace(catalog))));
  entityResolver = new ForkEntityResolver(er, entityResolver);

代码示例来源:origin: javaee/metro-jax-ws

if (entityResolver == null) {
  if (catalog != null && catalog.length() > 0)
    entityResolver = XmlUtil.createEntityResolver(JAXWSUtils.getFileOrURL(JAXWSUtils.absolutize(Util.escapeSpace(catalog))));
} else if (catalog != null && catalog.length() > 0) {
  EntityResolver er = XmlUtil.createEntityResolver(JAXWSUtils.getFileOrURL(JAXWSUtils.absolutize(Util.escapeSpace(catalog))));
  entityResolver = new ForkEntityResolver(er, entityResolver);

代码示例来源:origin: org.seedstack.addons.ws/web-services-core

entityResolver = XmlUtil.createEntityResolver(resourceLoader.getCatalogFile());
} catch (MalformedURLException e) {
  LOGGER.warn("Unable to create entity resolver", e);
  entityResolver = XmlUtil.createEntityResolver(null);

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

/**
 * Represents a resource local to a thread.
 *
 * See {@link WSEndpoint} class javadoc for more discussion about
 * this.
 */
public interface PipeHead {
  /**
   * Processes a request and produces a reply.
   *
   * <p>
   * This method takes a {@link Packet} that represents
   * a request, run it through a {@link Tube}line, eventually
   * pass it to the user implementation code, which produces
   * a reply, then run that through the pipeline again,
   * and eventually return it as a return value.
   *
   * @param request
   *      Unconsumed {@link Packet} that represents
   *      a request.
   * @param wscd
   *      {@link WebServiceContextDelegate} to be set to {@link Packet}.
   *      (we didn't have to take this and instead just ask the caller to
   *      set to {@link Packet#webServiceContextDelegate}, but that felt
   *      too error prone.)
   * @param tbc
   *      {@link TransportBackChannel} to be set to {@link Packet}.
   *      See the {@code wscd} parameter javadoc for why this is a parameter.
   *      Can be null.
   * @return

代码示例来源:origin: com.sun.xml.ws/rt

/**
 * Represents a resource local to a thread.
 *
 * See {@link WSEndpoint} class javadoc for more discussion about
 * this.
 */
public interface PipeHead {
  /**
   * Processes a request and produces a reply.
   *
   * <p>
   * This method takes a {@link Packet} that represents
   * a request, run it through a {@link Tube}line, eventually
   * pass it to the user implementation code, which produces
   * a reply, then run that through the pipeline again,
   * and eventually return it as a return value.
   *
   * @param request
   *      Unconsumed {@link Packet} that represents
   *      a request.
   * @param wscd
   *      {@link WebServiceContextDelegate} to be set to {@link Packet}.
   *      (we didn't have to take this and instead just ask the caller to
   *      set to {@link Packet#webServiceContextDelegate}, but that felt
   *      too error prone.)
   * @param tbc
   *      {@link TransportBackChannel} to be set to {@link Packet}.
   *      See the {@code wscd} parameter javadoc for why this is a parameter.
   *      Can be null.
   * @return

代码示例来源:origin: javaee/metro-jax-ws

/**
 * Represents a resource local to a thread.
 *
 * See {@link WSEndpoint} class javadoc for more discussion about
 * this.
 */
public interface PipeHead {
  /**
   * Processes a request and produces a reply.
   *
   * <p>
   * This method takes a {@link Packet} that represents
   * a request, run it through a {@link Tube}line, eventually
   * pass it to the user implementation code, which produces
   * a reply, then run that through the pipeline again,
   * and eventually return it as a return value.
   *
   * @param request
   *      Unconsumed {@link Packet} that represents
   *      a request.
   * @param wscd
   *      {@link WebServiceContextDelegate} to be set to {@link Packet}.
   *      (we didn't have to take this and instead just ask the caller to
   *      set to {@link Packet#webServiceContextDelegate}, but that felt
   *      too error prone.)
   * @param tbc
   *      {@link TransportBackChannel} to be set to {@link Packet}.
   *      See the {@code wscd} parameter javadoc for why this is a parameter.
   *      Can be null.
   * @return

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com