org.openxava.formatters
Class WebURLFormatter

java.lang.Object
  extended by org.openxava.formatters.WebURLFormatter
All Implemented Interfaces:
IFormatter

public class WebURLFormatter
extends java.lang.Object
implements IFormatter

Author:
Javier Paniza

Constructor Summary
WebURLFormatter()
           
 
Method Summary
 java.lang.String format(HttpServletRequest request, java.lang.Object object)
          From a object return a String to render in HTML.
 java.lang.Object parse(HttpServletRequest request, java.lang.String string)
          From a String obtained from a HTTP request return a java object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebURLFormatter

public WebURLFormatter()
Method Detail

format

public java.lang.String format(HttpServletRequest request,
                               java.lang.Object object)
                        throws java.lang.Exception
Description copied from interface: IFormatter
From a object return a String to render in HTML.

Specified by:
format in interface IFormatter
Throws:
java.lang.Exception

parse

public java.lang.Object parse(HttpServletRequest request,
                              java.lang.String string)
                       throws java.lang.Exception
Description copied from interface: IFormatter
From a String obtained from a HTTP request return a java object.

Specified by:
parse in interface IFormatter
Throws:
java.lang.Exception