Class PathPartsBasedProfileAwareRemotePathParser
- java.lang.Object
-
- org.craftercms.commons.file.stores.impl.PathPartsBasedProfileAwareRemotePathParser
-
- All Implemented Interfaces:
RemotePathParser
public class PathPartsBasedProfileAwareRemotePathParser extends Object implements RemotePathParser
RemotePathParserthat buildsProfileAwareRemotePaths 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 RemotePathparse(String pathStr, Matcher matcher)Parses the remote path string.voidsetActualPathGroup(int actualPathGroup)voidsetProfileGroup(int profileGroup)voidsetStoreTypeGroup(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:RemotePathParserParses the remote path string.- Specified by:
parsein 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
-
-