com.sun.xml.ws.api.WSBinding.getFeatures()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(138)

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

WSBinding.getFeatures介绍

[英]Returns a list of features associated with WSBinding.
[中]

代码示例

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

public Iterable<WebServiceFeature> getFeatures() {
  if (features == null && wsBinding != null) return wsBinding.getFeatures();
  return features;
}
public void setFeatures(WebServiceFeature[] features) {

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

public Iterable<WebServiceFeature> getFeatures() {
  if (features == null && wsBinding != null) return wsBinding.getFeatures();
  return features;
}
public void setFeatures(WebServiceFeature[] features) {

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

public Iterable<WebServiceFeature> getFeatures() {
  if (features == null && wsBinding != null) return wsBinding.getFeatures();
  return features;
}
public void setFeatures(WebServiceFeature[] features) {

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

@Override
  public Codec createEncoder(WSBinding binding) {
    return new XMLHTTPBindingCodec(binding.getFeatures());
  }
};

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

@Override
  public Codec createEncoder(WSBinding binding) {
    return new XMLHTTPBindingCodec(binding.getFeatures());
  }
};

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

private static boolean isSticky(WSBinding binding) {
  boolean tSticky = false;
  WebServiceFeature[] features = binding.getFeatures().toArray();
  for(WebServiceFeature f : features) {
    if (f instanceof StickyFeature) {
      tSticky = true;
      break;
    }
  }
  return tSticky;
}

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

@Override
  public Codec createEncoder(WSBinding binding) {
    return new XMLHTTPBindingCodec(binding.getFeatures());
  }
};

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

@Override
  public Codec createEncoder(WSBinding binding) {
    return new XMLHTTPBindingCodec(binding.getFeatures());
  }
};

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

private static boolean isSticky(WSBinding binding) {
  boolean tSticky = false;
  WebServiceFeature[] features = binding.getFeatures().toArray();
  for(WebServiceFeature f : features) {
    if (f instanceof StickyFeature) {
      tSticky = true;
      break;
    }
  }
  return tSticky;
}

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

@Override
  public Codec createEncoder(WSBinding binding) {
    return new XMLHTTPBindingCodec(binding.getFeatures());
  }
};

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

private static boolean isSticky(WSBinding binding) {
  boolean tSticky = false;
  WebServiceFeature[] features = binding.getFeatures().toArray();
  for(WebServiceFeature f : features) {
    if (f instanceof StickyFeature) {
      tSticky = true;
      break;
    }
  }
  return tSticky;
}

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

@Override
  public Codec createEncoder(WSBinding binding) {
    return new XMLHTTPBindingCodec(binding.getFeatures());
  }
};

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

static public WebServiceFeature[] toFeatureArray(WSBinding binding) {
    //TODO scchen convert BindingID  to WebServiceFeature[]
    if(!binding.isFeatureEnabled(EnvelopeStyleFeature.class)) {
      WebServiceFeature[] f = { binding.getSOAPVersion().toFeature() };
      binding.getFeatures().mergeFeatures(f, false);
    }
    return binding.getFeatures().toArray();
  }
}

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

static public WebServiceFeature[] toFeatureArray(WSBinding binding) {
    //TODO scchen convert BindingID  to WebServiceFeature[]
    if(!binding.isFeatureEnabled(EnvelopeStyleFeature.class)) {
      WebServiceFeature[] f = { binding.getSOAPVersion().toFeature() };
      binding.getFeatures().mergeFeatures(f, false);
    }
    return binding.getFeatures().toArray();
  }
}

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

public DataSource getParameter(Packet packet) {
  Message msg = packet.getInternalMessage();
  return (msg instanceof XMLMessage.MessageDataSource)
      ? ((XMLMessage.MessageDataSource) msg).getDataSource()
      : XMLMessage.getDataSource(msg, binding.getFeatures());
}

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

public DataSource getParameter(Packet packet) {
  Message msg = packet.getInternalMessage();
  return (msg instanceof XMLMessage.MessageDataSource)
      ? ((XMLMessage.MessageDataSource) msg).getDataSource()
      : XMLMessage.getDataSource(msg, binding.getFeatures());
}

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

public DataSource getParameter(Packet packet) {
  Message msg = packet.getInternalMessage();
  return (msg instanceof XMLMessage.MessageDataSource)
      ? ((XMLMessage.MessageDataSource) msg).getDataSource()
      : XMLMessage.getDataSource(msg, binding.getFeatures());
}

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

@ManagedAttribute
@Description("Binding features")
public @NotNull WSFeatureList features() {
  return endpoint.getBinding().getFeatures();
}

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

@ManagedAttribute
@Description("Binding features")
public @NotNull WSFeatureList features() {
  return endpoint.getBinding().getFeatures();
}

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

@ManagedAttribute
@Description("Binding features")
public @NotNull WSFeatureList features() {
  return endpoint.getBinding().getFeatures();
}

相关文章