net.sf.beanform.prop
Class BeanPropertySqueezer

java.lang.Object
  extended by net.sf.beanform.prop.BeanPropertySqueezer
All Implemented Interfaces:
SqueezeAdaptor

public class BeanPropertySqueezer
extends Object
implements SqueezeAdaptor

Squeezes BeanProperty objects into and out of HTML and URLs. Since many class names, property names and validator strings will be serialized to the client, but the number of distinct class names, property names and validator strings using this squeezer will usually be small, this implementation keeps small static caches of these strings and their corresponding "abbreviations", which are what is actually sent to the clients. This is extremely important, as URLs are generally limited to about 2,000 characters.

Author:
Daniel Gredler

Constructor Summary
BeanPropertySqueezer()
           
 
Method Summary
 Class getDataClass()
           
 String getPrefix()
           
 String squeeze(DataSqueezer squeezer, Object data)
           
 Object unsqueeze(DataSqueezer squeezer, String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanPropertySqueezer

public BeanPropertySqueezer()
Method Detail

getPrefix

public String getPrefix()
Specified by:
getPrefix in interface SqueezeAdaptor

getDataClass

public Class getDataClass()
Specified by:
getDataClass in interface SqueezeAdaptor

squeeze

public String squeeze(DataSqueezer squeezer,
                      Object data)
Specified by:
squeeze in interface SqueezeAdaptor

unsqueeze

public Object unsqueeze(DataSqueezer squeezer,
                        String string)
Specified by:
unsqueeze in interface SqueezeAdaptor


Copyright © 2006 Daniel Gredler. All Rights Reserved.