本文整理了Java中org.apache.axis2.util.Utils.getParameterValue()
方法的一些代码示例,展示了Utils.getParameterValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.getParameterValue()
方法的具体详情如下:
包路径:org.apache.axis2.util.Utils
类名称:Utils
方法名:getParameterValue
暂无
代码示例来源:origin: org.apache.axis2/axis2-kernel
public static String getAddressingRequirementParemeterValue(AxisDescription axisDescription){
String value = "";
if (axisDescription != null) {
value = Utils.getParameterValue(
axisDescription.getParameter(AddressingConstants.ADDRESSING_REQUIREMENT_PARAMETER));
if(value !=null){
value = value.trim();
}
if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) {
log.debug("getAddressingRequirementParemeterValue: value: '" + value + "'");
}
}
if (value == null || "".equals(value)) {
value = AddressingConstants.ADDRESSING_UNSPECIFIED;
}
return value;
}
代码示例来源:origin: apache/axis2-java
public static String getAddressingRequirementParemeterValue(AxisDescription axisDescription){
String value = "";
if (axisDescription != null) {
value = Utils.getParameterValue(
axisDescription.getParameter(AddressingConstants.ADDRESSING_REQUIREMENT_PARAMETER));
if(value !=null){
value = value.trim();
}
if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) {
log.debug("getAddressingRequirementParemeterValue: value: '" + value + "'");
}
}
if (value == null || "".equals(value)) {
value = AddressingConstants.ADDRESSING_UNSPECIFIED;
}
return value;
}
代码示例来源:origin: org.apache.axis2/axis2-kernel
/**
* Extract the parameter representing the Anonymous flag from the AxisOperation
* and return the String value. Return the default of "optional" if not specified.
*
* @param axisOperation
*/
public static String getInvocationPatternParameterValue(AxisOperation axisOperation) {
String value = "";
if (axisOperation != null) {
value = Utils.getParameterValue(
axisOperation.getParameter(AddressingConstants.WSAM_INVOCATION_PATTERN_PARAMETER_NAME));
if(value !=null){
value = value.trim();
}
if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) {
log.debug("getInvocationPatternParameterValue: value: '" + value + "'");
}
}
if (value == null || "".equals(value)) {
value = AddressingConstants.WSAM_INVOCATION_PATTERN_BOTH;
}
return value;
}
代码示例来源:origin: apache/axis2-java
/**
* Extract the parameter representing the Anonymous flag from the AxisOperation
* and return the String value. Return the default of "optional" if not specified.
*
* @param axisOperation
*/
public static String getInvocationPatternParameterValue(AxisOperation axisOperation) {
String value = "";
if (axisOperation != null) {
value = Utils.getParameterValue(
axisOperation.getParameter(AddressingConstants.WSAM_INVOCATION_PATTERN_PARAMETER_NAME));
if(value !=null){
value = value.trim();
}
if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) {
log.debug("getInvocationPatternParameterValue: value: '" + value + "'");
}
}
if (value == null || "".equals(value)) {
value = AddressingConstants.WSAM_INVOCATION_PATTERN_BOTH;
}
return value;
}
代码示例来源:origin: org.wso2.mercury/mercury-core
private String getAddressingNamesapce(MessageContext messageContext){
String namespace = (String) messageContext.getProperty(AddressingConstants.WS_ADDRESSING_VERSION);
if (namespace == null){
namespace = Utils.getParameterValue(messageContext.getParameter(AddressingConstants.WS_ADDRESSING_VERSION));
}
if (namespace == null){
namespace = AddressingConstants.Final.WSA_NAMESPACE;
}
return namespace;
}
代码示例来源:origin: apache/axis2-java
public void init(HandlerDescription handlerdesc){
super.init(handlerdesc);
// check whether to process reference parameters.
Parameter param = handlerdesc.getParameter(DISABLE_REF_PARAMETER_EXTRACT);
String value = Utils.getParameterValue(param);
disableRefparamExtract = JavaUtils.isTrueExplicitly(value);
if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) {
log.debug("disableRefparamExtract=" + disableRefparamExtract);
}
}
代码示例来源:origin: apache/axis2-java
Parameter serverUrl = transportOut.getParameter(XMPPConstants.XMPP_SERVER_URL);
if (serverUrl != null) {
serverCredentials.setServerUrl(Utils.getParameterValue(serverUrl));
serverCredentials.setAccountName(Utils.getParameterValue(userName));
serverCredentials.setPassword(Utils.getParameterValue(password));
serverCredentials.setServerType(Utils.getParameterValue(serverType));
serverCredentials.setDomainName(Utils.getParameterValue(domainName));
代码示例来源:origin: org.apache.axis2.transport/axis2-transport-xmpp
Parameter serverUrl = transportOut.getParameter(XMPPConstants.XMPP_SERVER_URL);
if (serverUrl != null) {
serverCredentials.setServerUrl(Utils.getParameterValue(serverUrl));
serverCredentials.setAccountName(Utils.getParameterValue(userName));
serverCredentials.setPassword(Utils.getParameterValue(password));
serverCredentials.setServerType(Utils.getParameterValue(serverType));
serverCredentials.setDomainName(Utils.getParameterValue(domainName));
代码示例来源:origin: apache/axis2-java
public boolean shouldInvoke(MessageContext msgContext) throws AxisFault {
//Set the defaults on the message context.
msgContext.setProperty(DISABLE_ADDRESSING_FOR_OUT_MESSAGES, Boolean.TRUE);
msgContext.setProperty(IS_ADDR_INFO_ALREADY_PROCESSED, Boolean.FALSE);
//Determine if we want to ignore addressing headers. This parameter must
//be retrieved from the message context because it's value can vary on a
//per service basis.
Parameter disableParam = msgContext.getParameter(DISABLE_ADDRESSING_FOR_IN_MESSAGES);
String value = Utils.getParameterValue(disableParam);
if (JavaUtils.isTrueExplicitly(value)) {
if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) {
log.debug(
"The AddressingInHandler has been disabled. No further processing will take place.");
}
return false;
}
// if there are not headers put a flag to disable addressing temporary
SOAPHeader header = msgContext.getEnvelope().getHeader();
return header != null;
}
代码示例来源:origin: apache/axis2-java
public boolean shouldInvoke(MessageContext msgContext) throws AxisFault {
Parameter param = null;
boolean disableAddressing = false;
Object o = msgContext.getProperty(DISABLE_ADDRESSING_FOR_OUT_MESSAGES);
if (o == null || !(o instanceof Boolean)) {
//determine whether outbound addressing has been disabled or not.
// Get default value from module.xml or axis2.xml files
param = msgContext.getModuleParameter(DISABLE_ADDRESSING_FOR_OUT_MESSAGES, MODULE_NAME, handlerDesc);
disableAddressing =
msgContext.isPropertyTrue(DISABLE_ADDRESSING_FOR_OUT_MESSAGES,
JavaUtils.isTrueExplicitly(Utils.getParameterValue(param)));
} else {
disableAddressing = (Boolean) o;
}
if (disableAddressing) {
if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled()) {
log.trace(msgContext.getLogIDString() +
" Addressing is disabled. Not adding WS-Addressing headers.");
}
return false;
}
return true;
}
代码示例来源:origin: apache/axis2-java
boolean includeOptionalHeaders =
msgContext.isPropertyTrue(INCLUDE_OPTIONAL_HEADERS,
JavaUtils.isTrueExplicitly(Utils.getParameterValue(param)));
代码示例来源:origin: apache/axis2-java
namespace = Utils.getParameterValue(namespaceParam);
代码示例来源:origin: org.wso2.mercury/mercury-core
if (axiConfiguration.getParameter(MercuryConstants.RMS_SEQUENCE_TIMEOUT) == null){
axiConfiguration.addParameter(MercuryConstants.RMS_SEQUENCE_TIMEOUT,
Utils.getParameterValue(module.getParameter(MercuryConstants.RMS_SEQUENCE_TIMEOUT)));
Utils.getParameterValue(module.getParameter(MercuryConstants.RMS_SEQUENCE_RETRANSMIT_TIME)));
Utils.getParameterValue(module.getParameter(MercuryConstants.RMS_SEQUENCE_WORKER_SLEEP_TIME)));
Utils.getParameterValue(module.getParameter(MercuryConstants.RMS_MAXIMUM_RETRANSMIT_COUNT)));
Utils.getParameterValue(module.getParameter(MercuryConstants.RMD_SEQUENCE_TIMEOUT)));
Utils.getParameterValue(module.getParameter(MercuryConstants.RMD_SEQUENCE_RETRANSMIT_TIME)));
Utils.getParameterValue(module.getParameter(MercuryConstants.RMD_SEQUENCE_WORKER_SLEEP_TIME)));
Utils.getParameterValue(module.getParameter(MercuryConstants.INVOKER_TIMEOUT)));
Utils.getParameterValue(module.getParameter(MercuryConstants.INVOKER_WORKER_SLEEP_TIME)));
Utils.getParameterValue(module.getParameter(MercuryConstants.ENFORCE_RM)));
代码示例来源:origin: org.apache.axis2/axis2-metadata
String value = Utils.getParameterValue(disabled);
if (JavaUtils.isFalseExplicitly(value)) {
ServiceDescription sd = endpointDescription.getServiceDescription();
代码示例来源:origin: apache/axis2-java
String value = Utils.getParameterValue(disabled);
if (JavaUtils.isFalseExplicitly(value)) {
ServiceDescription sd = endpointDescription.getServiceDescription();
内容来源于网络,如有侵权,请联系作者删除!