Package org.lobobrowser.util
Class Urls
java.lang.Object
org.lobobrowser.util.Urls
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic URL
Creates an absolute URL in a manner equivalent to major browsers.static String
getCharset
(URLConnection connection) static Long
getExpiration
(URLConnection connection, long baseTime) Returns the time when the document should be considered expired.static List
getHeaders
(URLConnection connection) static String
getNoRefForm
(URL url) static URL
static URL
static boolean
static boolean
Whether the URL refers to a resource in the local file system.static boolean
isLocalFile
(URL url) Whether the URL is a file in the local file system.static boolean
sameNoRefURL
(URL url1, URL url2) Comparison that does not consider Ref.
-
Field Details
-
PATTERN_RFC1123
-
-
Method Details
-
isLocal
Whether the URL refers to a resource in the local file system. -
isLocalFile
Whether the URL is a file in the local file system. -
hasHost
-
createURL
Creates an absolute URL in a manner equivalent to major browsers.- Throws:
MalformedURLException
-
getExpiration
Returns the time when the document should be considered expired. The time will be zero if the document always needs to be revalidated. It will benull
if no expiration time is specified. -
getHeaders
-
guessURL
- Throws:
MalformedURLException
-
guessURL
- Throws:
MalformedURLException
-
getCharset
-
getNoRefForm
-
sameNoRefURL
Comparison that does not consider Ref.- Parameters:
url1
-url2
-
-