public class WebResourceServletURIGenerator extends Object implements WebResourceURIGenerator
WebResourceServlet.| Constructor and Description |
|---|
WebResourceServletURIGenerator(WebResourceContainer webResourceContainer,
String contextPath,
String urlPattern)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
generateURI(String lib,
String file,
Optional<String> versionRange)
Resolves the URI of a
WebResource that can be inserted into an output (HTML, e-mail,
etc). |
public WebResourceServletURIGenerator(WebResourceContainer webResourceContainer, String contextPath, String urlPattern)
webResourceContainer - The container that holds the webresources for this uri generator.contextPath - The contextPath of that the WebResourceServlet was initialized with.urlPattern - The url pattern that the WebResourceServlet was initialized with.public Optional<String> generateURI(String lib, String file, Optional<String> versionRange)
WebResourceURIGeneratorWebResource that can be inserted into an output (HTML, e-mail,
etc).generateURI in interface WebResourceURIGeneratorlib - The library of the WebResource.file - The file name of the WebResource.WebResource or Optional.empty()
if the URI cannot be resolved.Copyright © 2011–2015 Everit Kft.. All rights reserved.