Top Description Fields Methods
org.hibernate.internal.log

public Interface UrlMessageBundle

Annotations
@MessageLogger
projectCode:HHH
@ValidIdRange
min:10000001
max:10001000
Imports
java.net.URISyntaxException, .URL, org.jboss.logging.Logger, org.jboss.logging.annotations.Cause, .LogMessage, .Message, .MessageLogger, .ValidIdRange

Acts as the org.jboss.logging.annotations.MessageLogger and org.jboss.logging.annotations.MessageBundle for messages related to processing URLs.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final UrlMessageBundle

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The message
fileDoesNotExist
(String
The "file part" that we gleaned from the URL
filePart
,
URL
The given URL
url
)

Access to the exception message used when a URL references names a file that does not exist.

public void
logFileDoesNotExist(URL
The URL that named the file/directory
url
)

Logs a warning that the File (file/directory) to which the URL resolved reported that it did not exist.

public void
logFileIsNotDirectory(URL
The URL that named the file/directory
url
)

Logs a warning indicating that the URL resolved to a File that we were expecting to be a directory, but java.io.File#isDirectory() reported it was not.

public void
logMalformedUrl(URL
The URL that lead to the java.net.URISyntaxException
jarUrl
,
URISyntaxException
The underlying URISyntaxException
e
)

Logs a warning about a malformed URL, caused by a java.net.URISyntaxException

public void
logUnableToFindFileByUrl(URL
The URL is supposed to identify the file which we cannot locate
url
,
Exception
The underlying URISyntaxException
e
)

Logs a warning about not being able to find a file by a specified URL.

Field Detail

URL_LOGGERback to summary
public static final UrlMessageBundle URL_LOGGER

Method Detail

fileDoesNotExistback to summary
public 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 warning logFileDoesNotExist versus an exception...

Parameters
filePart:String

The "file part" that we gleaned from the URL

url:URL

The given URL

Returns:String

The message

Annotations
@Message:File [%s] referenced by given URL [%s] does not exist
id:10000005
logFileDoesNotExistback to summary
public void logFileDoesNotExist(URL url)

Logs a warning that the File (file/directory) to which the URL resolved reported that it did not exist.

Parameters
url:URL

The URL that named the file/directory

Annotations
@LogMessage
level:WARN
@Message:File or directory named by URL [%s] did not exist. URL will be ignored
id:10000003
See Also
java.io.File#exists()
logFileIsNotDirectoryback to summary
public void logFileIsNotDirectory(URL url)

Logs a warning indicating that the URL resolved to a File that we were expecting to be a directory, but java.io.File#isDirectory() reported it was not.

Parameters
url:URL

The URL that named the file/directory

Annotations
@LogMessage
level:WARN
@Message:Expecting resource named by URL [%s] to be a directory, but it was not. URL will be ignored
id:10000004
See Also
java.io.File#isDirectory()
logMalformedUrlback to summary
public void logMalformedUrl(URL jarUrl, URISyntaxException e)

Logs a warning about a malformed URL, caused by a java.net.URISyntaxException

Parameters
jarUrl:URL

The URL that lead to the java.net.URISyntaxException

e:URISyntaxException

The underlying URISyntaxException

Annotations
@LogMessage
level:WARN
@Message:Malformed URL: %s
id:10000001
logUnableToFindFileByUrlback to summary
public void logUnableToFindFileByUrl(URL url, Exception e)

Logs a warning about not being able to find a file by a specified URL. This is different from logFileDoesNotExist.

Parameters
url:URL

The URL is supposed to identify the file which we cannot locate

e:Exception

The underlying URISyntaxException

Annotations
@LogMessage
level:WARN
@Message:File or directory named by URL [%s] could not be found. URL will be ignored
id:10000002