M
- the starting data format for the model to be inputedpublic class UrlEncodingWriter<M> extends AutoBeanWriter<M,String>
Modifier and Type | Class and Description |
---|---|
static interface |
UrlEncodingWriter.UrlEncodingAppender
A URL Encoding Appender provides support for appending a field and value to
a URL encoded value.
|
Constructor and Description |
---|
UrlEncodingWriter(AutoBeanFactory factory,
Class<M> clazz)
Creates a new URL encoding writing that can format an object into a GET
query string or POST url-encoded body.
|
Modifier and Type | Method and Description |
---|---|
void |
appendModel(M model,
UrlEncodingWriter.UrlEncodingAppender appender)
Appends all of the relevant pieces of data to the url data.
|
String |
write(M model)
Converts a source model to its equivalent target type.
|
getAutoBean
public void appendModel(M model, UrlEncodingWriter.UrlEncodingAppender appender)
model
- the modelappender
- the url encoding appenderpublic String write(M model)
DataWriter
model
- the source modelCopyright © 2018. All rights reserved.