org.apache.axis2.description.Parameter.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(8.8k)|赞(0)|评价(0)|浏览(85)

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

Parameter.<init>介绍

[英]Constructor.
[中]建造师。

代码示例

代码示例来源:origin: org.apache.axis2/axis2-kernel

public void addParameter(String name, Object value) throws AxisFault {
  addParameter(new Parameter(name, value));
}

代码示例来源:origin: apache/axis2-java

public void addParameter(String name, Object value) throws AxisFault {
  addParameter(new Parameter(name, value));
}

代码示例来源:origin: apache/axis2-java

/**
 * Generate a parametes object
 *
 * @param key
 * @param value
 */
private Parameter getParameter(String key, Object value) {
  Parameter myParameter = new Parameter();
  myParameter.setName(key);
  myParameter.setValue(value);
  return myParameter;
}

代码示例来源:origin: apache/axis2-java

/**
 * Generate a parametes object
 *
 * @param key
 * @param value
 */
private Parameter getParameter(String key, Object value) {
  Parameter myParameter = new Parameter();
  myParameter.setName(key);
  myParameter.setValue(value);
  return myParameter;
}

代码示例来源:origin: org.wso2.carbon.identity.framework/org.wso2.carbon.security.mgt

public static Parameter getClientUsernameTokenHandler(String password) {
    Parameter param = new Parameter();
    param.setName(WSHandlerConstants.PW_CALLBACK_REF);
    param.setValue(new ClientUserPasswordCallbackHandler(password));
    return param;
  }
}

代码示例来源:origin: org.n52.security/52n-security-sts

public void shutDown(ConfigurationContext configCtx, AxisService service) {
  SecurityConfig config = (SecurityConfig) service.getParameter(
      WebSecurityConfigUtil.SECURITYCONFIG_CONTEXT_KEY)
      .getValue();
  try {
    service.removeParameter(new Parameter(
        WebSecurityConfigUtil.SECURITYCONFIG_CONTEXT_KEY, config));
  } catch (AxisFault e) {
    LOG.warn("SecurityConfig could not be removed from AxisService", e);
  }
  if (config != null) {
    config.release();
  }
  LOG.info("SecurityConfig successfull removed from AxisService");
}

代码示例来源:origin: wso2/carbon-identity-framework

public static Parameter getClientUsernameTokenHandler(String password) {
    Parameter param = new Parameter();
    param.setName(WSHandlerConstants.PW_CALLBACK_REF);
    param.setValue(new ClientUserPasswordCallbackHandler(password));
    return param;
  }
}

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.security.mgt

public static Parameter getClientUsernameTokenHandler(String password) {
    Parameter param = new Parameter();
    param.setName(WSHandlerConstants.PW_CALLBACK_REF);
    param.setValue(new ClientUserPasswordCallbackHandler(password));
    return param;
  }
}

代码示例来源:origin: org.apache.axis2/axis2-kernel

public void setConfigContext(ConfigurationContext configContext) {
    // setting ServletContext into configctx
    configContext.setProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT,
                 config.getServletContext());
    Parameter servletConfigParam = new Parameter();
    servletConfigParam.setName(HTTPConstants.HTTP_SERVLETCONFIG);
    servletConfigParam.setValue(config);
    try {
      configContext.getAxisConfiguration().addParameter(servletConfigParam);
    } catch (AxisFault axisFault) {
      log.error(axisFault.getMessage(), axisFault);
    }
    super.setConfigContext(configContext);
  }
}

代码示例来源:origin: apache/axis2-java

public void setConfigContext(ConfigurationContext configContext) {
    // setting ServletContext into configctx
    configContext.setProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT,
                 config.getServletContext());
    Parameter servletConfigParam = new Parameter();
    servletConfigParam.setName(HTTPConstants.HTTP_SERVLETCONFIG);
    servletConfigParam.setValue(config);
    try {
      configContext.getAxisConfiguration().addParameter(servletConfigParam);
    } catch (AxisFault axisFault) {
      log.error(axisFault.getMessage(), axisFault);
    }
    super.setConfigContext(configContext);
  }
}

代码示例来源:origin: org.apache.synapse/synapse-core

public void init(ConfigurationContext configContext, AxisModule module) throws AxisFault {
  AxisConfiguration axiConfiguration = configContext.getAxisConfiguration();
  Counter globalRequestCounter = new Counter();
  Parameter globalRequestCounterParameter = new Parameter();
  globalRequestCounterParameter.setName(MetricsConstants.GLOBAL_REQUEST_COUNTER);
  globalRequestCounterParameter.setValue(globalRequestCounter);
  axiConfiguration.addParameter(globalRequestCounterParameter);
}

代码示例来源:origin: wso2/wso2-synapse

public void init(ConfigurationContext configContext, AxisModule module) throws AxisFault {
  AxisConfiguration axiConfiguration = configContext.getAxisConfiguration();
  Counter globalRequestCounter = new Counter();
  Parameter globalRequestCounterParameter = new Parameter();
  globalRequestCounterParameter.setName(MetricsConstants.GLOBAL_REQUEST_COUNTER);
  globalRequestCounterParameter.setValue(globalRequestCounter);
  axiConfiguration.addParameter(globalRequestCounterParameter);
}

代码示例来源:origin: org.apache.axis2/axis2-metadata

private void addToAxisService() {
  // Add a reference to this EndpointDescription object to the AxisService
  if (axisService != null) {
    Parameter parameter = new Parameter();
    parameter.setName(EndpointDescription.AXIS_SERVICE_PARAMETER);
    parameter.setValue(this);
    try {
      axisService.addParameter(parameter);
    } catch (AxisFault e) {
      throw ExceptionFactory.makeWebServiceException(Messages.getMessage("endpointDescriptionErr5", EndpointDescription.AXIS_SERVICE_PARAMETER), e);
    }
  }
}

代码示例来源:origin: apache/axis2-java

private void addToAxisService() {
  // Add a reference to this EndpointDescription object to the AxisService
  if (axisService != null) {
    Parameter parameter = new Parameter();
    parameter.setName(EndpointDescription.AXIS_SERVICE_PARAMETER);
    parameter.setValue(this);
    try {
      axisService.addParameter(parameter);
    } catch (AxisFault e) {
      throw ExceptionFactory.makeWebServiceException(Messages.getMessage("endpointDescriptionErr5", EndpointDescription.AXIS_SERVICE_PARAMETER), e);
    }
  }
}

代码示例来源:origin: org.apache.axis2/axis2-kernel

public static AxisService createSimpleService(QName serviceName,
                       MessageReceiver messageReceiver, String className,
                       QName opName)
    throws AxisFault {
  AxisService service = new AxisService(serviceName.getLocalPart());
  service.setClassLoader(getContextClassLoader_DoPriv());
  service.addParameter(new Parameter(Constants.SERVICE_CLASS, className));
  AxisOperation axisOp = new InOutAxisOperation(opName);
  axisOp.setMessageReceiver(messageReceiver);
  axisOp.setStyle(WSDLConstants.STYLE_RPC);
  service.addOperation(axisOp);
  service.mapActionToOperation(Constants.AXIS2_NAMESPACE_URI + "/" + opName.getLocalPart(),
                 axisOp);
  return service;
}

代码示例来源:origin: org.apache.axis2/axis2-kernel

public static AxisService createSimpleServiceforClient(QName serviceName,
                            MessageReceiver messageReceiver,
                            String className,
                            QName opName)
    throws AxisFault {
  AxisService service = new AxisService(serviceName.getLocalPart());
  service.setClassLoader(getContextClassLoader_DoPriv());
  service.addParameter(new Parameter(Constants.SERVICE_CLASS, className));
  AxisOperation axisOp = new OutInAxisOperation(opName);
  axisOp.setMessageReceiver(messageReceiver);
  axisOp.setStyle(WSDLConstants.STYLE_RPC);
  service.addOperation(axisOp);
  return service;
}

代码示例来源:origin: org.wso2.wsas/wso2wsas-admin

public void removeServiceParameter(String serviceName, String paramName) throws AxisFault {
  AxisService axisService = getAxisConfig().getService(serviceName);
  axisService.removeParameter(new Parameter(paramName, null));
  ServiceDO serviceDO = pm.getService(serviceName, ServiceIdentifierDO.EMPTY_SERVICE_VERSION);
  ServiceParameterDO sp = new ServiceParameterDO();
  sp.setService(serviceDO);
  sp.setName(paramName);
  serviceDO.getParameters().remove(sp);
  pm.updateEntity(serviceDO);
}

代码示例来源:origin: apache/axis2-java

public static AxisService createSimpleServiceforClient(QName serviceName,
                            MessageReceiver messageReceiver,
                            String className,
                            QName opName)
    throws AxisFault {
  AxisService service = new AxisService(serviceName.getLocalPart());
  service.setClassLoader(getContextClassLoader_DoPriv());
  service.addParameter(new Parameter(Constants.SERVICE_CLASS, className));
  AxisOperation axisOp = new OutInAxisOperation(opName);
  axisOp.setMessageReceiver(messageReceiver);
  axisOp.setStyle(WSDLConstants.STYLE_RPC);
  service.addOperation(axisOp);
  return service;
}

代码示例来源:origin: org.wso2.carbon.business-process/org.wso2.carbon.bpel

private AxisServiceGroup createServiceGroupForService(AxisService svc) throws AxisFault {
  AxisServiceGroup svcGroup = new AxisServiceGroup();
  svcGroup.setServiceGroupName(svc.getName());
  svcGroup.addService(svc);
  // Checking configured using files param is not a good solution. We must figure out a way to handle this
  // at Carbon persistence manager layer.
  if (svc.getParameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM) != null &&
      svc.getParameter(BusinessProcessConstants.CONFIGURED_USING_BPEL_PKG_CONFIG_FILES) == null) {
    svcGroup.addParameter(new Parameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM, "true"));
  }
  return svcGroup;
}

代码示例来源:origin: apache/axis2-java

public TransportInDescription createTransportInDescription() throws Exception {
  TransportInDescription desc = new TransportInDescription("http");
  desc.setReceiver(new LifecycleFixTransportListenerProxy(new SimpleHTTPServer(), port));
  desc.addParameter(new Parameter(SimpleHTTPServer.PARAM_PORT, String.valueOf(port)));
  return desc;
}

相关文章