public abstract class AbstractResult
extends java.lang.Object
implements java.io.Serializable
Modifier | Constructor and Description |
---|---|
protected |
AbstractResult(JcmsMessage.Level level,
java.lang.String message,
java.lang.Object... params) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage(java.lang.String lang) |
java.lang.String |
getMessage(java.lang.String lang,
ParamResolver resolver) |
boolean |
isSuccess() |
void |
sendMessage(javax.servlet.http.HttpServletRequest request,
java.lang.String lang)
Method to be called after initializing Result object.
|
void |
sendMessage(javax.servlet.http.HttpServletRequest request,
java.lang.String lang,
ParamResolver resolver)
Method to be called after initializing Result object.
|
void |
sendMessage(java.io.Writer out,
java.lang.String lang)
Method to be called after initializing Result object.
|
void |
sendMessage(java.io.Writer out,
java.lang.String lang,
ParamResolver resolver)
Method to be called after initializing Result object.
|
protected AbstractResult(JcmsMessage.Level level, java.lang.String message, java.lang.Object... params)
public boolean isSuccess()
public java.lang.String getMessage(java.lang.String lang)
public java.lang.String getMessage(java.lang.String lang, ParamResolver resolver)
public void sendMessage(javax.servlet.http.HttpServletRequest request, java.lang.String lang)
request
- HttpServletRequest
lang
- current languagepublic void sendMessage(javax.servlet.http.HttpServletRequest request, java.lang.String lang, ParamResolver resolver)
request
- HttpServletRequest
lang
- current languageresolver
- callback to resolve param valuespublic void sendMessage(java.io.Writer out, java.lang.String lang) throws java.io.IOException
out
- Writer
lang
- current languagejava.io.IOException
public void sendMessage(java.io.Writer out, java.lang.String lang, ParamResolver resolver) throws java.io.IOException
out
- Writer
lang
- current languageresolver
- callback to resolve param valuesjava.io.IOException
Copyright © 2001-2017 Jalios SA. All Rights Reserved.