public interface SageFormUrlEncodedMarshaller
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Form |
marshallToForm(java.lang.Object object)
Transforms the passed object to a form applicable for the sage one REST
API.
|
java.lang.String |
marshallToString(java.lang.Object object)
Transforms the passed object to a string applicable for the sage one REST
API.
|
java.lang.String marshallToString(java.lang.Object object) throws java.rmi.MarshalException
object
- The object to marshall (strings, numbers and lists are
supported, all other object are handled with reflections). The
passed object should be annotated with
FormUrlEncodedObjectName
It's fields and subfields
should be annotated with FormUrlEncodedFieldName
or
FormUrlEncodedIgnoreField
if the field should be
ignored.java.rmi.MarshalException
- If there was a problem (missing field, ...)javax.ws.rs.core.Form marshallToForm(java.lang.Object object) throws java.rmi.MarshalException
object
- The object to marshall (strings, numbers and lists are
supported, all other object are handled with reflections). The
passed object should be annotated with
FormUrlEncodedObjectName
The fields and subfields
should be annotated with FormUrlEncodedFieldName
or
FormUrlEncodedIgnoreField
if the field should be
ignored.java.rmi.MarshalException
- If there was a problem (missing field, ...)