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 buildsProfileAwareRemotePath
s based on the parts of the given path, returned by the groups of the regex matcher.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description PathPartsBasedProfileAwareRemotePathParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemotePath
parse(String pathStr, Matcher matcher)
Parses the remote path string.void
setActualPathGroup(int actualPathGroup)
void
setProfileGroup(int profileGroup)
void
setStoreTypeGroup(int storeTypeGroup)
-
-
-
Method Detail
-
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 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
-
-