public interface RepositoryRequestInfo
| Modifier and Type | Method and Description | 
|---|---|
| <T extends RepositoryFeature<T>> | getFeature(Class<T> clazz)Extension method that allows to provide different features that are not supported by all
 repository types. | 
| String | getLayout(String requestPath)Returns the likely layout type for the given request. | 
| boolean | isArchetypeCatalog(String requestPath)Returns true, if the given request points to a archetype catalog. | 
| boolean | isMetadata(String requestPath)
 Tests the path to see if it conforms to the expectations of a metadata request. | 
| boolean | isMetadataSupportFile(String requestPath)
 Tests the path to see if it conforms to the expectations of a support file request of the metadata file. | 
| boolean | isSupportFile(String requestPath)
 Tests the path to see if it conforms to the expectations of a support file request. | 
| <T extends RepositoryFeature<T>> | supportsFeature(Class<T> clazz)Returns true, if the requested feature is supported by this repository. | 
| ArtifactReference | toArtifactReference(String requestPath)Returns the artifact reference for a given path. | 
| String | toNativePath(String requestPath)Adjust the requestedPath to conform to the native layout of the provided  ManagedRepositoryContent. | 
ArtifactReference toArtifactReference(String requestPath) throws LayoutException
requestPath - The path of the web requestLayoutExceptionboolean isMetadata(String requestPath)
Tests the path to see if it conforms to the expectations of a metadata request.
NOTE: The implementation may do only a cursory check on the path's extension. A result of true from this method is not a guarantee that the support resource is in a valid format, or that it even contains data.
requestPath - the path to test.boolean isArchetypeCatalog(String requestPath)
requestPath - boolean isSupportFile(String requestPath)
Tests the path to see if it conforms to the expectations of a support file request. Support files are used for signing and validating the artifact files.
 May test for certain extensions like .sha1, .md5, .asc, and .php.
 
NOTE: The implementation may do only a cursory check on the path's extension. A result of true from this method is not a guarantee that the support resource is in a valid format, or that it even contains data.
requestPath - the path to test.boolean isMetadataSupportFile(String requestPath)
Tests the path to see if it conforms to the expectations of a support file request of the metadata file.
 May test for certain extensions like .sha1, .md5, .asc, and .php.
 
NOTE: The implementation may do only a cursory check on the path's extension. A result of true from this method is not a guarantee that the support resource is in a valid format, or that it even contains data.
requestPath - the path to test.String getLayout(String requestPath)
toArtifactReference(String)String toNativePath(String requestPath) throws LayoutException
ManagedRepositoryContent.requestPath - the incoming requested path.LayoutException - if the path cannot be parsed.<T extends RepositoryFeature<T>> RepositoryFeature<T> getFeature(Class<T> clazz) throws UnsupportedFeatureException
T - This is the class of the featureclazz - The feature class that is requestedUnsupportedFeatureException - if the feature is not supported by this repository type<T extends RepositoryFeature<T>> boolean supportsFeature(Class<T> clazz)
T - The requested feature classclazz - The requested feature classCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.