LocalResourcePath

Represents a local resource path, typically a relative path originating at this web-app’s root or context-root.

Action results of type LocalResourcePath are interpreted as browser/client redirects, if applicable.

OpenUrlStrategy gives control on whether the redirect URL should open in the same or a new window/tap.

API

LocalResourcePath.java
class LocalResourcePath {
  public static final String LOGICAL_TYPE_NAME;
  LocalResourcePath(String path)
  LocalResourcePath(String path, OpenUrlStrategy openUrlStrategy)
  String getValue()
  String getEffectivePath(UnaryOperator<String> contextPathPrepender)
  String toString()
  boolean equals(Object obj)
  int hashCode()
  boolean isEqualTo(LocalResourcePath other)
}