java.lang.Object | |
↳ | org.mbari.vars.integration.UpdateStillImageUrlTool |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | FILE_PREFIX | This is the key that is used to locate file URLS in the database. | |||||||||
byte[] | GIF_KEY | ||||||||||
byte[] | JPG_KEY | ||||||||||
byte[] | PNG_KEY | ||||||||||
String | SEARCH_KEY | VARS stores images in a directory that contains this as part of it's path. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
HTTP_PREFIX | THis is the string that gets prepended onto file urls to create web URLs |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Converts a file URL stored in a database to the coresponding http url.
| |||||||||||
Searchs the VARS database for all file URLs
| |||||||||||
Checks the web server to see if the image exists.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This is the key that is used to locate file URLS in the database.
VARS stores images in a directory that contains this as part of it's path. The tail end of the local URL and the remote URL are the same, but the starting portions are different. This key is used to locate the parts of the path that are the same.
THis is the string that gets prepended onto file urls to create web URLs
Converts a file URL stored in a database to the coresponding http url.
MalformedURLException |
---|
Searchs the VARS database for all file URLs
Checks the web server to see if the image exists. IT does this by opening a stream and reading the first 3 bytes. It checks these bytes to see if its a jpg, gif or png.