gpt4 book ai didi

org.apache.xmlrpc.XmlRpcConfig.isEnabledForExtensions()方法的使用及代码示例

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

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

XmlRpcConfig.isEnabledForExtensions介绍

[英]Returns, whether support for extensions are enabled. By default, extensions are disabled and your client is interoperable with other XML-RPC implementations. Interoperable XML-RPC implementations are those, which are compliant to the XML-RPC Specification.
[中]返回是否启用扩展支持。默认情况下,将禁用扩展,并且您的客户端可以与其他XML-RPC实现进行互操作。可互操作的XML-RPC实现是那些符合XML-RPC Specification的实现。

代码示例

代码示例来源:origin: xmlrpc/xmlrpc-client

protected boolean isUsingByteArrayOutput(XmlRpcHttpClientConfig pConfig) {
  return !pConfig.isEnabledForExtensions()
    || !pConfig.isContentLengthOptional();
}

代码示例来源:origin: xmlrpc/xmlrpc-client

protected boolean isCompressingRequest(XmlRpcStreamRequestConfig pConfig) {
  return pConfig.isEnabledForExtensions()
    && pConfig.isGzipCompressing();
}

代码示例来源:origin: org.apache.xmlrpc/xmlrpc-server

/** Creates a new instance of {@link PropertyHandlerMapping} by
 * loading the property file from the given URL. Called from
 * {@link #newXmlRpcHandlerMapping()}.
 */
protected PropertyHandlerMapping newPropertyHandlerMapping(URL url) throws IOException, XmlRpcException {
  PropertyHandlerMapping mapping = new PropertyHandlerMapping();
  mapping.setAuthenticationHandler(authenticationHandler);
  if (requestProcessorFactoryFactory != null) {
    mapping.setRequestProcessorFactoryFactory(requestProcessorFactoryFactory);
  }
  if (typeConverterFactory != null) {
    mapping.setTypeConverterFactory(typeConverterFactory);
  } else {
    mapping.setTypeConverterFactory(server.getTypeConverterFactory());
  }
  mapping.setVoidMethodEnabled(server.getConfig().isEnabledForExtensions());
  mapping.load(Thread.currentThread().getContextClassLoader(), url);
  return mapping;
}

代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-server

/** Creates a new instance of {@link PropertyHandlerMapping} by
 * loading the property file from the given URL. Called from
 * {@link #newXmlRpcHandlerMapping()}.
 */
protected PropertyHandlerMapping newPropertyHandlerMapping(URL url) throws IOException, XmlRpcException {
  PropertyHandlerMapping mapping = new PropertyHandlerMapping();
  mapping.setAuthenticationHandler(authenticationHandler);
  if (requestProcessorFactoryFactory != null) {
    mapping.setRequestProcessorFactoryFactory(requestProcessorFactoryFactory);
  }
  if (typeConverterFactory != null) {
    mapping.setTypeConverterFactory(typeConverterFactory);
  } else {
    mapping.setTypeConverterFactory(server.getTypeConverterFactory());
  }
  mapping.setVoidMethodEnabled(server.getConfig().isEnabledForExtensions());
  mapping.load(Thread.currentThread().getContextClassLoader(), url);
  return mapping;
}

代码示例来源:origin: org.apache.xmlrpc/xmlrpc-client

public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException {
  XmlRpcConfig config = pRequest.getConfig();
  if (!config.isEnabledForExtensions()) {
    for (int i = 0;  i < pRequest.getParameterCount();  i++) {
      if (isExtensionType(pRequest.getParameter(i))) {
        + ": " + t.getMessage(), t);
  if (!config.isEnabledForExtensions()) {
    if (isExtensionType(result)) {
      throw new XmlRpcExtensionException("Result has invalid type, if isEnabledForExtensions() == false");

代码示例来源:origin: rosjava/rosjava_core

public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException {
  XmlRpcConfig config = pRequest.getConfig();
  if (!config.isEnabledForExtensions()) {
    for (int i = 0;  i < pRequest.getParameterCount();  i++) {
      if (isExtensionType(pRequest.getParameter(i))) {
        + ": " + t.getMessage(), t);
  if (!config.isEnabledForExtensions()) {
    if (isExtensionType(result)) {
      throw new XmlRpcExtensionException("Result has invalid type, if isEnabledForExtensions() == false");

代码示例来源:origin: xmlrpc/xmlrpc-client

public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException {
  XmlRpcConfig config = pRequest.getConfig();
  if (!config.isEnabledForExtensions()) {
    for (int i = 0;  i < pRequest.getParameterCount();  i++) {
      if (isExtensionType(pRequest.getParameter(i))) {
  if (!config.isEnabledForExtensions()) {
    if (isExtensionType(result)) {
      throw new XmlRpcExtensionException("Result has invalid type, if isEnabledForExtensions() == false");

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