接口 UrlMessageBundle
-
@MessageLogger(projectCode="HHH") @ValidIdRange(min=10000001, max=10001000) public interface UrlMessageBundleActs as theMessageLoggerandMessageBundlefor messages related to processing URLs.- 作者:
- Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static UrlMessageBundleURL_LOGGER
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StringfileDoesNotExist(String filePart, URL url)Access to the exception message used when a URL references names a file that does not exist.voidlogFileDoesNotExist(URL url)Logs a warning that the File (file/directory) to which the URL resolved reported that it did not exist.voidlogFileIsNotDirectory(URL url)Logs a warning indicating that the URL resolved to a File that we were expecting to be a directory, butFile.isDirectory()reported it was not.voidlogMalformedUrl(URL jarUrl, URISyntaxException e)Logs a warning about a malformed URL, caused by aURISyntaxExceptionvoidlogUnableToFindFileByUrl(URL url, Exception e)Logs a warning about not being able to find a file by a specified URL.
-
-
-
字段详细资料
-
URL_LOGGER
static final UrlMessageBundle URL_LOGGER
-
-
方法详细资料
-
logMalformedUrl
@LogMessage(level=WARN) @Message(value="Malformed URL: %s", id=10000001) void logMalformedUrl(URL jarUrl, @Cause URISyntaxException e)Logs a warning about a malformed URL, caused by aURISyntaxException- 参数:
jarUrl- The URL that lead to theURISyntaxExceptione- The underlying URISyntaxException
-
logUnableToFindFileByUrl
@LogMessage(level=WARN) @Message(value="File or directory named by URL [%s] could not be found. URL will be ignored", id=10000002) void logUnableToFindFileByUrl(URL url, @Cause Exception e)Logs a warning about not being able to find a file by a specified URL. This is different fromlogFileDoesNotExist(java.net.URL).- 参数:
url- The URL is supposed to identify the file which we cannot locatee- The underlying URISyntaxException
-
logFileDoesNotExist
@LogMessage(level=WARN) @Message(value="File or directory named by URL [%s] did not exist. URL will be ignored", id=10000003) void logFileDoesNotExist(URL url)Logs a warning that the File (file/directory) to which the URL resolved reported that it did not exist.- 参数:
url- The URL that named the file/directory- 另请参阅:
File.exists()
-
logFileIsNotDirectory
@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(URL url)Logs a warning indicating that the URL resolved to a File that we were expecting to be a directory, butFile.isDirectory()reported it was not.- 参数:
url- The URL that named the file/directory- 另请参阅:
File.isDirectory()
-
fileDoesNotExist
@Message(value="File [%s] referenced by given URL [%s] does not exist", id=10000005) String fileDoesNotExist(String filePart, URL url)Access to the exception message used when a URL references names a file that does not exist. TODO : detail when this is a warninglogFileDoesNotExist(java.net.URL)versus an exception...- 参数:
filePart- The "file part" that we gleaned from the URLurl- The given URL- 返回:
- The message
-
-