Class PathPartsBasedProfileAwareRemotePathParser

java.lang.Object
org.craftercms.commons.file.stores.impl.PathPartsBasedProfileAwareRemotePathParser
All Implemented Interfaces:
RemotePathParser

public class PathPartsBasedProfileAwareRemotePathParser extends Object implements RemotePathParser
RemotePathParser that builds ProfileAwareRemotePaths based on the parts of the given path, returned by the groups of the regex matcher.
Author:
avasquez
  • Constructor Details

    • PathPartsBasedProfileAwareRemotePathParser

      public PathPartsBasedProfileAwareRemotePathParser()
  • Method Details

    • setStoreTypeGroup

      public void setStoreTypeGroup(int storeTypeGroup)
    • setProfileGroup

      public void setProfileGroup(int profileGroup)
    • setActualPathGroup

      public void setActualPathGroup(int actualPathGroup)
    • parse

      public RemotePath parse(String pathStr, Matcher matcher)
      Description copied from interface: RemotePathParser
      Parses the remote path string.
      Specified by:
      parse in interface RemotePathParser
      Parameters:
      pathStr - the remote path str
      matcher - the matcher used to match the paths. Can be used to get matched groups that represent the path parts
      Returns:
      the parsed RemotePath