org.apache.axis2.util.Utils.parseRequestURLForServiceAndOperation()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(146)

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

Utils.parseRequestURLForServiceAndOperation介绍

[英]Break a full path into pieces
[中]把整条路劈成碎片

代码示例

代码示例来源:origin: org.apache.airavata/gfac-axis2-interface

private String getOriginalServiceName(MessageContext messageContext) {
  String toAddress = messageContext.getTo().getAddress();
  String[] values = Utils.parseRequestURLForServiceAndOperation(toAddress, messageContext
      .getConfigurationContext().getServiceContextPath());
  return values[0];
}

代码示例来源:origin: org.apache.airavata/airavata-gfac-axis2-interface

private String getOriginalServiceName(MessageContext messageContext) {
  String toAddress = messageContext.getTo().getAddress();
  String[] values = Utils.parseRequestURLForServiceAndOperation(toAddress, messageContext
      .getConfigurationContext().getServiceContextPath());
  return values[0];
}

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

public AxisService findService(MessageContext messageContext) throws AxisFault {
  String serviceName;
  String localPart = messageContext.getEnvelope().getSOAPBodyFirstElementLocalName();
  if (localPart != null) {
    OMNamespace ns = messageContext.getEnvelope().getSOAPBodyFirstElementNS();
    if (ns != null) {
      String filePart = ns.getNamespaceURI();
      if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) {
        log.debug(messageContext.getLogIDString() +
            " Checking for Service using SOAP message body's first child's namespace : "
            + filePart);
      }
      ConfigurationContext configurationContext =
          messageContext.getConfigurationContext();
      String[] values = Utils.parseRequestURLForServiceAndOperation(filePart,
                                     configurationContext.getServiceContextPath());
      if (values[0] != null) {
        serviceName = values[0];
        AxisConfiguration registry =
            configurationContext.getAxisConfiguration();
        return registry.getService(serviceName);
      }
    }
  }
  return null;
}

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

public AxisService findService(MessageContext messageContext) throws AxisFault {
  String serviceName = null;
  String localPart = messageContext.getEnvelope().getSOAPBodyFirstElementLocalName();
  if (localPart != null) {
    OMNamespace ns = messageContext.getEnvelope().getSOAPBodyFirstElementNS();
    if (ns != null) {
      String filePart = ns.getNamespaceURI();
      if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) {
        log.debug(messageContext.getLogIDString() +
            "Checking for Service using SOAP message body's first child's namespace : "
            + filePart);
      }
      String[] values = Utils.parseRequestURLForServiceAndOperation(filePart,
                                     messageContext
                                         .getConfigurationContext().getServiceContextPath());
      if (values[0] != null) {
        serviceName = values[0];
        AxisConfiguration registry =
            messageContext.getConfigurationContext().getAxisConfiguration();
        return registry.getService(serviceName);
      }
    }
  }
  return null;
}

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

public AxisService findService(MessageContext messageContext) throws AxisFault {
  String serviceName;
  String localPart = messageContext.getEnvelope().getSOAPBodyFirstElementLocalName();
  if (localPart != null) {
    OMNamespace ns = messageContext.getEnvelope().getSOAPBodyFirstElementNS();
    if (ns != null) {
      String filePart = ns.getNamespaceURI();
      if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) {
        log.debug(messageContext.getLogIDString() +
            " Checking for Service using SOAP message body's first child's namespace : "
            + filePart);
      }
      ConfigurationContext configurationContext =
          messageContext.getConfigurationContext();
      String[] values = Utils.parseRequestURLForServiceAndOperation(filePart,
                                     configurationContext.getServiceContextPath());
      if (values[0] != null) {
        serviceName = values[0];
        AxisConfiguration registry =
            configurationContext.getAxisConfiguration();
        return registry.getService(serviceName);
      }
    }
  }
  return null;
}

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

public AxisService findService(MessageContext messageContext) throws AxisFault {
  String serviceName = null;
  String localPart = messageContext.getEnvelope().getSOAPBodyFirstElementLocalName();
  if (localPart != null) {
    OMNamespace ns = messageContext.getEnvelope().getSOAPBodyFirstElementNS();
    if (ns != null) {
      String filePart = ns.getNamespaceURI();
      if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) {
        log.debug(messageContext.getLogIDString() +
            "Checking for Service using SOAP message body's first child's namespace : "
            + filePart);
      }
      String[] values = Utils.parseRequestURLForServiceAndOperation(filePart,
                                     messageContext
                                         .getConfigurationContext().getServiceContextPath());
      if (values[0] != null) {
        serviceName = values[0];
        AxisConfiguration registry =
            messageContext.getConfigurationContext().getAxisConfiguration();
        return registry.getService(serviceName);
      }
    }
  }
  return null;
}

代码示例来源:origin: org.apache.airavata/airavata-gfac-axis2-interface

String[] values = Utils.parseRequestURLForServiceAndOperation(filePart, messageContext
    .getConfigurationContext().getServiceContextPath());
AxisConfiguration registry = configurationContext.getAxisConfiguration();

代码示例来源:origin: org.apache.airavata/gfac-axis2-interface

String[] values = Utils.parseRequestURLForServiceAndOperation(filePart, messageContext
    .getConfigurationContext().getServiceContextPath());
AxisConfiguration registry = configurationContext.getAxisConfiguration();

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

throws AxisFault {
String[] values =
    Utils.parseRequestURLForServiceAndOperation(requestUrl,
                          configCtx.getServiceContextPath());
if (values == null) {

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

throws AxisFault {
String[] values =
    Utils.parseRequestURLForServiceAndOperation(requestUrl,
                          configCtx.getServiceContextPath());
if (values == null) {

相关文章