Package jodd.madvoc

Examples of jodd.madvoc.ResultPath


  /**
   * Locates the target file from action path and the result value.
   */
  protected String resolveTarget(ActionRequest actionRequest, String resultValue) {
    ResultPath resultPath = resultMapper.resolveResultPath(actionRequest.getActionPath(), resultValue);

    String actionPath = resultPath.getPath();
    String path = actionPath;
    String value = resultPath.getValue();

    String target;

    while (true) {

View Full Code Here


      if (resultPathPrefix != null) {
        path = resultPathPrefix + path;
      }
    }

    return new ResultPath(path, value);
  }
View Full Code Here

   * Resolves result path as a string, when parts are not important
   * and when only full string matters. Additional alias resolving
   * on full path is done.
   */
  public String resolveResultPathString(String path, String value) {
    ResultPath resultPath = resolveResultPath(path, value);
    String result = resultPath.getPathValue();

    return resolveAlias(result);
  }
View Full Code Here

            key += ':' + customPath;
        }
        String target;
        if ((target = targetCache.get(key)) == null) {

            ResultPath resultPath = resultMapper.resolveResultPath(actionRequest.getActionPath(), customPath);

            String actionPath = resultPath.getPath();
            String path = actionPath;
            String value = resultPath.getValue();

            while (true) {
                // variant #1: with value
                if (value != null) {
                    if (path == null) {
View Full Code Here

   * Locates the target file from action path and the result value.
   */
  protected String resolveTarget(ActionRequest actionRequest, String resultValue) {
    String resultBasePath = actionRequest.getActionConfig().getResultBasePath();

    ResultPath resultPath = resultMapper.resolveResultPath(resultBasePath, resultValue);

    String actionPath = resultPath.getPath();
    String path = actionPath;
    String value = resultPath.getValue();

    if (StringUtil.isEmpty(value)) {
      value = null;
    }

View Full Code Here

      if (resultPathPrefix != null) {
        path = resultPathPrefix + path;
      }
    }

    return new ResultPath(path, value);
  }
View Full Code Here

   * Resolves result path as a string, when parts are not important
   * and when only full string matters. Additional alias resolving
   * on full path is done.
   */
  public String resolveResultPathString(String path, String value) {
    ResultPath resultPath = resolveResultPath(path, value);
    String result = resultPath.getPathValue();

    return resolveAlias(result);
  }
View Full Code Here

TOP

Related Classes of jodd.madvoc.ResultPath

Copyright © 2018 www.massapicom. 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.