Package com.openhtmltopdf.swing
Class NaiveUserAgent.DefaultUriResolver
- java.lang.Object
-
- com.openhtmltopdf.swing.NaiveUserAgent.DefaultUriResolver
-
- All Implemented Interfaces:
FSUriResolver
- Enclosing class:
- NaiveUserAgent
public static class NaiveUserAgent.DefaultUriResolver extends Object implements FSUriResolver
-
-
Constructor Summary
Constructors Constructor Description DefaultUriResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
resolveURI(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.
-
-
-
Method Detail
-
resolveURI
public String resolveURI(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.- 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).
-
-