edu.internet2.middleware.grouper.ws.rest.contentType
Class WsXhtmlInputConverter

java.lang.Object
  extended by edu.internet2.middleware.grouper.ws.rest.contentType.WsXhtmlInputConverter

public class WsXhtmlInputConverter
extends Object

convert an xhtml string to objects. Only use once and throw away. this parser assumes that beans do not have default values on fields, or if so, if blank or null is passed in, then the default value will be used.


Constructor Summary
WsXhtmlInputConverter()
           
 
Method Summary
 void addAlias(String key, Class<?> theClass)
          add an alias for demarshaling
 String getWarnings()
          get warnings, will return the empty string if none (never null)
 Object parseXhtmlString(String string)
          parse a string to object
 Class<?> retrieveClass(String className, boolean errorIfProblem)
          based on className which can be fully qualified or not, return the class object (and cache this)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsXhtmlInputConverter

public WsXhtmlInputConverter()
Method Detail

addAlias

public void addAlias(String key,
                     Class<?> theClass)
add an alias for demarshaling

Parameters:
key -
theClass -

parseXhtmlString

public Object parseXhtmlString(String string)
parse a string to object

Parameters:
string -
requireHtmlHeader - means that the html and body tags are required
Returns:
object

retrieveClass

public Class<?> retrieveClass(String className,
                              boolean errorIfProblem)
based on className which can be fully qualified or not, return the class object (and cache this)

Parameters:
className -
errorIfProblem -
Returns:
the class

getWarnings

public String getWarnings()
get warnings, will return the empty string if none (never null)

Returns:
the warnings