Class PathPartsBasedProfileAwareRemotePathParser
java.lang.Object
org.craftercms.commons.file.stores.impl.PathPartsBasedProfileAwareRemotePathParser
- All Implemented Interfaces:
RemotePathParser
RemotePathParser
that builds ProfileAwareRemotePath
s based on the parts of the given path,
returned by the groups of the regex matcher.- Author:
- avasquez
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionParses the remote path string.void
setActualPathGroup
(int actualPathGroup) void
setProfileGroup
(int profileGroup) void
setStoreTypeGroup
(int storeTypeGroup)
-
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
Description copied from interface:RemotePathParser
Parses the remote path string.- Specified by:
parse
in interfaceRemotePathParser
- Parameters:
pathStr
- the remote path strmatcher
- the matcher used to match the paths. Can be used to get matched groups that represent the path parts- Returns:
- the parsed
RemotePath
-