@Component public class UrlRestrictedFolderChecker extends Object
Constructor and Description |
---|
UrlRestrictedFolderChecker() |
Modifier and Type | Method and Description |
---|---|
protected void |
setContextConfiguration(com.sdl.context.config.ContextConfiguration contextConfiguration) |
protected void |
setUriPatternFactory(UriPatternFactory uriPatternFactory) |
void |
validateSourceImageUrl(String imageUrl,
String sourceName)
Validate that the provided image URL is valid considering that it was constructed
using the specified source name.
|
public void validateSourceImageUrl(String imageUrl, String sourceName) throws UriParsingException
imageUrl
- the full url of the image e.g. "file:///c:/temp/images/snow.jpg"sourceName
- the name of the source (in the configuration) which provided the
initial portion of the image URL (e.g. source name "mytemp"
might be mapped to the URL prefix "file:///c:/temp").UriParsingException
protected void setContextConfiguration(com.sdl.context.config.ContextConfiguration contextConfiguration)
protected void setUriPatternFactory(UriPatternFactory uriPatternFactory)
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries