|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface for the contextual information related to the edge server's extension objects. A concrete object implementing this interface would be given to the EdgeExtension so that the extension object can have access to the context, for example, the extension's own name et al and possibly other states stored inside the context by the extension.
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String attributeName) Return the attribute object bound for the given attribute name. |
EdgeExtensionContext |
getContext(java.lang.String extName, int extType) Return the extension context for the extension with the given type and given extension name. |
java.lang.String |
getDescription() Return the description of the extension instance. |
java.lang.String |
getEdgeServerName() Return the name for the current edge server running the extension object. |
java.lang.String |
getName() Return the name of the extension instance. |
ConfigParameter |
getParameter(java.lang.String paramName) Returns the configuration parameter information for the edge extension object. |
java.lang.String |
getSiteName() Return the site name for the current edge server running the extension object. |
java.lang.String |
getVersion() Return the version of the extension instance. |
void |
logError(java.lang.String msg) Log an error message to the log for edge server. |
void |
logError(java.lang.String msg, java.lang.Throwable t) Log an error message and exception stack trace to the log for edge server. |
void |
logNotification(java.lang.String msg) Log a notification(debugging, e.g.) message to the log for edge server. |
void |
logWarning(java.lang.String msg) Log a warning message to the log for edge server. |
void |
setAttribute(java.lang.String attributeName, java.lang.Object attribute) Binds the attribute object to the given attribute name. |
Method Detail |
public java.lang.Object getAttribute(java.lang.String attributeName)
attributeName
- The attribute name. Can not be null!public EdgeExtensionContext getContext(java.lang.String extName, int extType)
extName
- The extension name. It can not be null.extType
- The extension type. The valid values can be found from oracle.edge.common.EdgeExtension.EdgeExtension
public java.lang.String getDescription()
public java.lang.String getEdgeServerName()
public java.lang.String getName()
public ConfigParameter getParameter(java.lang.String paramName)
paramName
- the name of the parameter. Can not be null!public java.lang.String getSiteName()
public java.lang.String getVersion()
public void logError(java.lang.String msg)
msg
- the error message.public void logError(java.lang.String msg, java.lang.Throwable t)
msg
- the error message.t
- the exception/error.public void logNotification(java.lang.String msg)
Note, the log level has to be set to "notify" to view this error in the log.
msg
- the notification message.public void logWarning(java.lang.String msg)
Note, the log level has to be set to "notify" or "warning" to view this error in the log.
msg
- the warning message.public void setAttribute(java.lang.String attributeName, java.lang.Object attribute)
attributeName
- The name of the attribute. It can not be null.attribute
- The attribute object.
Note: If either the attributeName or the attribute is null, this method call is a no-op!.
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |