public class MessageFormatter extends Object implements org.pentaho.platform.api.engine.IMessageFormatter
Modifier and Type | Field and Description |
---|---|
static String |
HTML_MIME_TYPE |
static int |
MAX_RESULT_THRESHOLD |
static String |
TEXT_MIME_TYPE |
Constructor and Description |
---|
MessageFormatter() |
Modifier and Type | Method and Description |
---|---|
void |
formatErrorMessage(String mimeType,
String title,
List messages,
StringBuffer messageBuffer) |
void |
formatErrorMessage(String mimeType,
String title,
String message,
StringBuffer messageBuffer) |
void |
formatExceptionMessage(String mimeType,
org.pentaho.platform.api.engine.ActionSequenceException exception,
StringBuffer messageBuffer) |
void |
formatExceptionMessage(String mimeType,
org.pentaho.platform.api.engine.ActionSequenceException exception,
StringBuffer messageBuffer,
boolean showStacktrace) |
void |
formatFailureMessage(String mimeType,
org.pentaho.platform.api.engine.IRuntimeContext context,
StringBuffer messageBuffer) |
void |
formatFailureMessage(String mimeType,
org.pentaho.platform.api.engine.IRuntimeContext context,
StringBuffer messageBuffer,
List defaultMessages) |
void |
formatFailureMessage(String mimeType,
org.pentaho.platform.api.engine.IRuntimeContext context,
StringBuffer messageBuffer,
List defaultMessages,
boolean showStacktrace) |
void |
formatResultSetAsHTMLRows(org.pentaho.commons.connection.IPentahoResultSet resultSet,
StringBuffer messageBuffer) |
void |
formatSuccessMessage(String mimeType,
org.pentaho.platform.api.engine.IRuntimeContext context,
StringBuffer messageBuffer,
boolean doMessages) |
void |
formatSuccessMessage(String mimeType,
org.pentaho.platform.api.engine.IRuntimeContext context,
StringBuffer messageBuffer,
boolean doMessages,
boolean doWrapper) |
String |
getFirstError(List messages)
If PentahoMessenger.getUserString("ERROR") returns the string: "Error: {0} ({1})" (which is the case for
English) Find the substring before the first "{".
|
public static final String HTML_MIME_TYPE
public static final String TEXT_MIME_TYPE
public static final int MAX_RESULT_THRESHOLD
public void formatErrorMessage(String mimeType, String title, String message, StringBuffer messageBuffer)
formatErrorMessage
in interface org.pentaho.platform.api.engine.IMessageFormatter
public String getFirstError(List messages)
getFirstError
in interface org.pentaho.platform.api.engine.IMessageFormatter
messages
- public void formatErrorMessage(String mimeType, String title, List messages, StringBuffer messageBuffer)
formatErrorMessage
in interface org.pentaho.platform.api.engine.IMessageFormatter
public void formatFailureMessage(String mimeType, org.pentaho.platform.api.engine.IRuntimeContext context, StringBuffer messageBuffer, List defaultMessages)
formatFailureMessage
in interface org.pentaho.platform.api.engine.IMessageFormatter
public void formatFailureMessage(String mimeType, org.pentaho.platform.api.engine.IRuntimeContext context, StringBuffer messageBuffer, List defaultMessages, boolean showStacktrace)
formatFailureMessage
in interface org.pentaho.platform.api.engine.IMessageFormatter
public void formatExceptionMessage(String mimeType, org.pentaho.platform.api.engine.ActionSequenceException exception, StringBuffer messageBuffer)
public void formatExceptionMessage(String mimeType, org.pentaho.platform.api.engine.ActionSequenceException exception, StringBuffer messageBuffer, boolean showStacktrace)
public void formatFailureMessage(String mimeType, org.pentaho.platform.api.engine.IRuntimeContext context, StringBuffer messageBuffer)
formatFailureMessage
in interface org.pentaho.platform.api.engine.IMessageFormatter
public void formatResultSetAsHTMLRows(org.pentaho.commons.connection.IPentahoResultSet resultSet, StringBuffer messageBuffer)
formatResultSetAsHTMLRows
in interface org.pentaho.platform.api.engine.IMessageFormatter
public void formatSuccessMessage(String mimeType, org.pentaho.platform.api.engine.IRuntimeContext context, StringBuffer messageBuffer, boolean doMessages)
formatSuccessMessage
in interface org.pentaho.platform.api.engine.IMessageFormatter
public void formatSuccessMessage(String mimeType, org.pentaho.platform.api.engine.IRuntimeContext context, StringBuffer messageBuffer, boolean doMessages, boolean doWrapper)
formatSuccessMessage
in interface org.pentaho.platform.api.engine.IMessageFormatter
Copyright © 2019 Hitachi Vantara. All rights reserved.