public class DefaultAVMResourceBinding extends Object implements AVMResourceBinding
| Modifier and Type | Field and Description |
|---|---|
protected static org.alfresco.service.cmr.remote.AVMRemote |
AVMRemote_ |
| Constructor and Description |
|---|
DefaultAVMResourceBinding() |
| Modifier and Type | Method and Description |
|---|---|
String |
getRepositoryName(Matcher match)
Fetch the name of the virtual repository indicated
by data obtained when the reverseProxyBinding regex
was matched within the AVMUrlValve.
|
String |
getVersion(Matcher match)
Fetch the version of the resource indicated by
data obtained when the reverseProxyBinding
regex was matched within the AVMUrlValve.
|
public String getRepositoryName(Matcher match)
"^(.+)\\.www--sandbox\\.(?:version--v(-?[\\d]+)\\.)?.*$"
getRepositoryName in interface AVMResourceBindingpublic String getVersion(Matcher match)
Note: "-1" corresponds to the HEAD version.
getVersion in interface AVMResourceBindingCopyright © 2005–2014 Alfresco Software. All rights reserved.