public class MarshallingConfig extends Object
| Constructor and Description |
|---|
MarshallingConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDataRoot()
DataRoot refers to the dotted location of the result we are interested in
from the JSON response from the server.
|
Charset |
getEncoding()
Encoding is the data encoding of the http body.
|
void |
setDataRoot(String dataRoot)
DataRoot refers to the dotted location of the result we are interested in
from the JSON response from the server.
|
void |
setEncoding(Charset encoding)
Encoding is the data encoding of the http body.
|
public Charset getEncoding()
public void setEncoding(Charset encoding)
encoding - a new encoding to setIllegalArgumentException - if encoding is nullpublic String getDataRoot()
{
"speakers": {
"data": [
{"speakerName":"John Doe", "speakerid":42},
{"speakerName":"Jesse James", "speakerid":5309},
]
}
}
A DataRoot of "speakers.data" would make the pipe pass a List using the
array of speakers to the onSuccess method of callback.public void setDataRoot(String dataRoot)
{
"speakers": {
"data": [
{"speakerName":"John Doe", "speakerid":42},
{"speakerName":"Jesse James", "speakerid":5309},
]
}
}
A DataRoot of "speakers.data" would make the pipe pass a List using the
array of speakers to the onSuccess method of callback.dataRoot - the root element that the response data will be found
under.Copyright © 2016 JBoss by Red Hat. All rights reserved.