Package com.openhtmltopdf.swing
Class NaiveUserAgent.DefaultUriResolver
java.lang.Object
com.openhtmltopdf.swing.NaiveUserAgent.DefaultUriResolver
- All Implemented Interfaces:
FSUriResolver
- Enclosing class:
NaiveUserAgent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveURI
(String baseUri, String uri) Resolves the URI; if absolute, leaves as is, if relative, returns an absolute URI based on the baseUrl for the agent.
-
Constructor Details
-
DefaultUriResolver
public DefaultUriResolver()
-
-
Method Details
-
resolveURI
Resolves the URI; if absolute, leaves as is, if relative, returns an absolute URI based on the baseUrl for the agent.- Specified by:
resolveURI
in interfaceFSUriResolver
- Parameters:
uri
- A URI, possibly relative.- Returns:
- A URI as String, resolved, or null if there was an exception (for example if the URI is malformed).
-