1 package eu.svjatoslav.meviz.htmlindexer;
3 import java.util.ArrayList;
6 public class IndexingContext {
8 private final String localUrl;
9 private final String globalUrl;
11 public IndexingContext(final String globalUrl, final String localUrl) {
12 this.globalUrl = globalUrl;
13 this.localUrl = localUrl;
16 public String getGlobalUrl() {
20 public List<String> getLocalPathComponents() {
22 final List<String> result = new ArrayList<>();
24 final String[] strings = localUrl.split("/");
26 for (final String pathElement : strings)
27 if (pathElement.length() > 0)
28 result.add(pathElement);
33 public String getLocalUrl() {