|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.grails.web.converters.AbstractConverter
grails.converters.XML
public class XML
A converter that converts domain classes to XML
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
log
|
| Fields inherited from interface org.codehaus.groovy.grails.web.converters.Converter |
|---|
DEFAULT_REQUEST_ENCODING |
| Constructor Summary | |
|---|---|
XML()
Default Constructor |
|
XML(Object target)
Initializes the Converter with the target |
|
| Method Summary | |
|---|---|
void |
configureXStream(com.thoughtworks.xstream.XStream xs)
Configures the XStream instance |
static Object |
parse(HttpServletRequest request)
Parses the give XML (read from the POST Body of the Request) |
static Object |
parse(InputStream is,
String encoding)
Parses the given XML |
static Object |
parse(String source)
Parses the given XML |
void |
render(HttpServletResponse response)
Renders the XML to the HttpServletResponse, also setting the the Content-Type (text/xml) |
void |
render(Writer out)
Renders the XML to the given Writer |
void |
setTarget(Object target)
|
| Methods inherited from class org.codehaus.groovy.grails.web.converters.AbstractConverter |
|---|
createBeanWrapper, isJdk5Enum, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public XML()
public XML(Object target)
target - the target object to convert| Method Detail |
|---|
public void configureXStream(com.thoughtworks.xstream.XStream xs)
xs - an XStream instance
public void render(Writer out)
throws ConverterException
render in interface Converterout - the Writer
ConverterException
public void render(HttpServletResponse response)
throws ConverterException
render in interface Converterresponse - the HttpServletResponse
ConverterException
public static Object parse(String source)
throws ConverterException
source - a String containing some XML
ConverterException
public static Object parse(InputStream is,
String encoding)
throws ConverterException
is - an InputStream to read fromencoding - the Character Encoding to use
ConverterException
public static Object parse(HttpServletRequest request)
throws ConverterException
request - an HttpServletRequest
ConverterExceptionpublic void setTarget(Object target)
setTarget in class AbstractConvertertarget - the target to convertConverter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||