Examples of AxisDataLocator


Examples of org.apache.axis2.dataretrieval.AxisDataLocator

  public Data[] getData(DataRetrievalRequest request,
      MessageContext msgContext) throws AxisFault {

    Data[] data;
    String dialect = request.getDialect();
    AxisDataLocator dataLocator = null;
    int nextDataLocatorIndex = 0;
    int totalLocators = availableDataLocatorTypes.length;
    for (int i = 0; i < totalLocators; i++) {
      dataLocator = getDataLocator(availableDataLocatorTypes[i], dialect);
      if (dataLocator != null) {
        nextDataLocatorIndex = i + 1;
        break;
      }
    }

    if (dataLocator == null) {
      return null;
    }

    data = dataLocator.getData(request, msgContext);
    // Null means Data Locator not understood request. Automatically find
    // Data Locator in the hierarchy to process the request.
    if (data == null) {
      if (nextDataLocatorIndex < totalLocators) {
        data = bubbleupDataLocators(nextDataLocatorIndex, request,
View Full Code Here

Examples of org.apache.axis2.dataretrieval.AxisDataLocator

  private Data[] bubbleupDataLocators(int nextIndex,
      DataRetrievalRequest request, MessageContext msgContext)
      throws AxisFault {
    Data[] data = null;
    if (nextIndex < availableDataLocatorTypes.length) {
      AxisDataLocator dataLocator = getDataLocator(
          availableDataLocatorTypes[nextIndex], request.getDialect());
      nextIndex++;
      if (dataLocator != null) {
        data = dataLocator.getData(request, msgContext);
        if (data == null) {
          data = bubbleupDataLocators(nextIndex, request, msgContext);
        } else {
          return data;
        }
View Full Code Here

Examples of org.apache.axis2.dataretrieval.AxisDataLocator

  /*
   * Get data locator instance based on the LocatorType and dialect.
   */
  public AxisDataLocator getDataLocator(LocatorType locatorType,
      String dialect) throws AxisFault {
    AxisDataLocator locator;
    if (locatorType == LocatorType.SERVICE_DIALECT) {
      locator = getServiceDataLocator(dialect);
    } else if (locatorType == LocatorType.SERVICE_LEVEL) {
      locator = getServiceDataLocator(DRConstants.SERVICE_LEVEL);
    } else if (locatorType == LocatorType.GLOBAL_DIALECT) {
View Full Code Here

Examples of org.apache.axis2.dataretrieval.AxisDataLocator

   * Checks if service level data locator configured for specified dialect.
   * Returns an instance of the data locator if exists, and null otherwise.
   */
  private AxisDataLocator getServiceDataLocator(String dialect)
      throws AxisFault {
    AxisDataLocator locator;
    locator = (AxisDataLocator) dataLocators.get(dialect);
    if (locator == null) {
      String className = (String) dataLocatorClassNames.get(dialect);
      if (className != null) {
        locator = loadDataLocator(className);
View Full Code Here

Examples of org.apache.axis2.dataretrieval.AxisDataLocator

   */

  public AxisDataLocator getGlobalDataLocator(String dialect)
      throws AxisFault {
    AxisConfiguration axisConfig = getAxisConfiguration();
    AxisDataLocator locator = null;
    if (axisConfig != null) {
      locator = axisConfig.getDataLocator(dialect);
      if (locator == null) {
        String className = axisConfig.getDataLocatorClassName(dialect);
        if (className != null) {
View Full Code Here

Examples of org.apache.axis2.dataretrieval.AxisDataLocator

  }

  protected AxisDataLocator loadDataLocator(String className)
      throws AxisFault {

    AxisDataLocator locator;

    try {
      Class dataLocator;
      dataLocator = Class.forName(className, true, serviceClassLoader);
      locator = (AxisDataLocator) dataLocator.newInstance();
View Full Code Here

Examples of org.apache.axis2.dataretrieval.AxisDataLocator

  public Data[] getData(DataRetrievalRequest request,
      MessageContext msgContext) throws AxisFault {

    Data[] data;
    String dialect = request.getDialect();
    AxisDataLocator dataLocator = null;
    int nextDataLocatorIndex = 0;
    int totalLocators = availableDataLocatorTypes.length;
    for (int i = 0; i < totalLocators; i++) {
      dataLocator = getDataLocator(availableDataLocatorTypes[i], dialect);
      if (dataLocator != null) {
        nextDataLocatorIndex = i + 1;
        break;
      }
    }

    if (dataLocator == null) {
      return null;
    }

    data = dataLocator.getData(request, msgContext);
    // Null means Data Locator not understood request. Automatically find
    // Data Locator in the hierarchy to process the request.
    if (data == null) {
      if (nextDataLocatorIndex < totalLocators) {
        data = bubbleupDataLocators(nextDataLocatorIndex, request,
View Full Code Here

Examples of org.apache.axis2.dataretrieval.AxisDataLocator

  private Data[] bubbleupDataLocators(int nextIndex,
      DataRetrievalRequest request, MessageContext msgContext)
      throws AxisFault {
    Data[] data = null;
    if (nextIndex < availableDataLocatorTypes.length) {
      AxisDataLocator dataLocator = getDataLocator(
          availableDataLocatorTypes[nextIndex], request.getDialect());
      nextIndex++;
      if (dataLocator != null) {
        data = dataLocator.getData(request, msgContext);
        if (data == null) {
          data = bubbleupDataLocators(nextIndex, request, msgContext);
        } else {
          return data;
        }
View Full Code Here

Examples of org.apache.axis2.dataretrieval.AxisDataLocator

  /*
   * Get data locator instance based on the LocatorType and dialect.
   */
  public AxisDataLocator getDataLocator(LocatorType locatorType,
      String dialect) throws AxisFault {
    AxisDataLocator locator;
    if (locatorType == LocatorType.SERVICE_DIALECT) {
      locator = getServiceDataLocator(dialect);
    } else if (locatorType == LocatorType.SERVICE_LEVEL) {
      locator = getServiceDataLocator(DRConstants.SERVICE_LEVEL);
    } else if (locatorType == LocatorType.GLOBAL_DIALECT) {
View Full Code Here

Examples of org.apache.axis2.dataretrieval.AxisDataLocator

   * Checks if service level data locator configured for specified dialect.
   * Returns an instance of the data locator if exists, and null otherwise.
   */
  private AxisDataLocator getServiceDataLocator(String dialect)
      throws AxisFault {
    AxisDataLocator locator;
    locator = (AxisDataLocator) dataLocators.get(dialect);
    if (locator == null) {
      String className = (String) dataLocatorClassNames.get(dialect);
      if (className != null) {
        locator = loadDataLocator(className);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.