Oracle Fusion Middleware
Java API Reference for Oracle PDK Java
11g Release 1 (11.1.1)
E10691-01

oracle.portal.provider.v2.transport
Interface TransportLogger


public interface TransportLogger

A TransportLogger is supplied to transport operations so that messages, with varying severity, can be communicated to the transporting entity.


Field Summary
static int SEVERITY_ERROR
          Severity level indicating a non recoverable error.
static int SEVERITY_INFO
          Severity level used for informational purposes only.
static int SEVERITY_WARNING
          Severity level indicating a recoverable error.
 
Method Summary
 void addMessage(int severity, java.lang.String context, java.lang.String bundle, java.lang.String messageKey)
          Adds a message to this TransportLogger with the supplied severity and context.
 void addMessage(int severity, java.lang.String context, java.lang.String bundle, java.lang.String messageKey, java.lang.Object[] messageArgs)
          Adds a message to this TransportLogger with the supplied severity and context.
 

Field Detail

SEVERITY_INFO

static final int SEVERITY_INFO
Severity level used for informational purposes only.

See Also:
Constant Field Values

SEVERITY_WARNING

static final int SEVERITY_WARNING
Severity level indicating a recoverable error.

See Also:
Constant Field Values

SEVERITY_ERROR

static final int SEVERITY_ERROR
Severity level indicating a non recoverable error.

See Also:
Constant Field Values
Method Detail

addMessage

void addMessage(int severity,
                java.lang.String context,
                java.lang.String bundle,
                java.lang.String messageKey)
Adds a message to this TransportLogger with the supplied severity and context. The message string is looked up in the appropriate locale from a java.util.ResourceBundle with the supplied name using the supplied key. If any exception occurs while retrieving the bundle, or if the bundle name is null, the key will be logged as the message.

Parameters:
severity - one of SEVERITY_INFO, SEVERITY_WARNING or SEVERITY_ERROR.
context - extra context information.
bundle - the name of a java.util.ResourceBundle from which to look up message strings.
messageKey - the key by which message strings are looked up in the resource bundle.

addMessage

void addMessage(int severity,
                java.lang.String context,
                java.lang.String bundle,
                java.lang.String messageKey,
                java.lang.Object[] messageArgs)
Adds a message to this TransportLogger with the supplied severity and context. The message string is looked up in the appropriate locale from a java.util.ResourceBundle with the supplied name using the supplied key and formatted using the supplied arguments. If any exception occurs while retrieving the bundle, or if the bundle name is null, the key will be logged as the message.

Parameters:
severity - one of SEVERITY_INFO, SEVERITY_WARNING or SEVERITY_ERROR.
context - extra context information.
bundle - the name of a java.util.ResourceBundle from which to look up message strings.
messageKey - the key by which message strings are looked up in the resource bundle.
messageArgs - arguments to decorate the localized message.

Oracle Fusion Middleware
Java API Reference for Oracle PDK Java
11g Release 1 (11.1.1)
E10691-01

Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.