public interface SageFormUrlEncodedMarshaller
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Form |
marshallToForm(java.lang.Object object) |
java.lang.String |
marshallToString(java.lang.Object object) |
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).
This Object should be annotated with FormUrlEncodedObjectName
The fields and subfields should be annotated with FormUrlEncodedFieldName
or FormUrlEncodedIgnoreField
if the field should be ignoredjava.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).
This Object should be annotated with FormUrlEncodedObjectName
The fields and subfields should be annotated with FormUrlEncodedFieldName
or FormUrlEncodedIgnoreField
if the field should be ignoredjava.rmi.MarshalException
- if there was a problem (missing field, ...)