@MessageLogger(projectCode="HHH")
@ValidIdRange(min=10000001,
max=10001000)
public interface UrlMessageBundle
MessageLogger
and
MessageBundle
for messages related to
processing URLs.Modifier and Type | Field and Description |
---|---|
static UrlMessageBundle |
URL_LOGGER |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fileDoesNotExist(java.lang.String filePart,
java.net.URL url)
Access to the exception message used when a URL references names a file that does not exist.
|
void |
logFileDoesNotExist(java.net.URL url)
Logs a warning that the File (file/directory) to which the URL resolved
reported that it did not exist.
|
void |
logFileIsNotDirectory(java.net.URL url)
Logs a warning indicating that the URL resolved to a File that we were expecting
to be a directory, but
File.isDirectory() reported it was not. |
void |
logMalformedUrl(java.net.URL jarUrl,
java.net.URISyntaxException e)
Logs a warning about a malformed URL, caused by a
URISyntaxException |
void |
logUnableToFindFileByUrl(java.net.URL url,
java.lang.Exception e)
Logs a warning about not being able to find a file by a specified URL.
|
static final UrlMessageBundle URL_LOGGER
@LogMessage(level=WARN) @Message(value="Malformed URL: %s", id=10000001) void logMalformedUrl(java.net.URL jarUrl, @Cause java.net.URISyntaxException e)
URISyntaxException
jarUrl
- The URL that lead to the URISyntaxException
e
- The underlying URISyntaxException@LogMessage(level=WARN) @Message(value="File or directory named by URL [%s] could not be found. URL will be ignored", id=10000002) void logUnableToFindFileByUrl(java.net.URL url, @Cause java.lang.Exception e)
logFileDoesNotExist(java.net.URL)
.url
- The URL is supposed to identify the file which we cannot locatee
- The underlying URISyntaxException@LogMessage(level=WARN) @Message(value="File or directory named by URL [%s] did not exist. URL will be ignored", id=10000003) void logFileDoesNotExist(java.net.URL url)
url
- The URL that named the file/directoryFile.exists()
@LogMessage(level=WARN) @Message(value="Expecting resource named by URL [%s] to be a directory, but it was not. URL will be ignored", id=10000004) void logFileIsNotDirectory(java.net.URL url)
File.isDirectory()
reported it was not.url
- The URL that named the file/directoryFile.isDirectory()
@Message(value="File [%s] referenced by given URL [%s] does not exist", id=10000005) java.lang.String fileDoesNotExist(java.lang.String filePart, java.net.URL url)
logFileDoesNotExist(java.net.URL)
versus an exception...filePart
- The "file part" that we gleaned from the URLurl
- The given URLCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.