public class Md5Converter extends Object implements javax.faces.convert.Converter
| Constructor and Description |
|---|
Md5Converter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAsObject(javax.faces.context.FacesContext arg0,
javax.faces.component.UIComponent arg1,
String arg2)
Convert the specified string value, which is associated with the specified
UIComponent, into a model data object that is appropriate for being
stored during the Apply Request Values phase of the request
processing lifecycle. |
String |
getAsString(javax.faces.context.FacesContext arg0,
javax.faces.component.UIComponent arg1,
Object arg2)
Convert the specified model object value, which is associated with the
specified
UIComponent, into a String that is suitable for being
included in the response generated during the Render Response phase
of the request processing lifeycle. |
String |
MD5(String md5)
Return the MD5 of a String.
|
public Object getAsObject(javax.faces.context.FacesContext arg0, javax.faces.component.UIComponent arg1, String arg2)
Convert the specified string value, which is associated with the specified
UIComponent, into a model data object that is appropriate for being
stored during the Apply Request Values phase of the request
processing lifecycle.
getAsObject in interface javax.faces.convert.Converterarg0 - FacesContext for the request being processedarg1 - UIComponent with which this model object value is
associatedarg2 - String value to be converted (may be null)null if the value to convert is null,
otherwise the result of the conversionNullPointerException - if context or component is
nullpublic String getAsString(javax.faces.context.FacesContext arg0, javax.faces.component.UIComponent arg1, Object arg2)
Convert the specified model object value, which is associated with the
specified UIComponent, into a String that is suitable for being
included in the response generated during the Render Response phase
of the request processing lifeycle.
getAsString in interface javax.faces.convert.Converterarg0 - FacesContext for the request being processedarg1 - UIComponent with which this model object value is
associatedarg2 - Model object value to be converted (may be null)null, otherwise the
result of the conversionNullPointerException - if context or component is
nullCopyright © 2018. All rights reserved.