@Produces(value={"application/json","*/*","application/x-javascript"})
@Consumes(value={"application/json","*/*"})
@Provider
public class MOXyJsonProvider
extends MOXyJsonProvider
implements javax.ws.rs.ext.MessageBodyReader<Object>, javax.ws.rs.ext.MessageBodyWriter<Object>
providers| Constructor and Description |
|---|
MOXyJsonProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected Schema |
getSchema() |
protected Schema |
getSchema(Class<?> cls) |
protected void |
preReadFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
Unmarshaller unmarshaller)
Subclasses of MOXyJsonProvider can override this method to
customize the instance of Unmarshaller that will be used to
unmarshal the JSON message in the readFrom call.
|
protected void |
setSchema(Schema s) |
void |
setSchemaHandler(org.apache.cxf.jaxrs.utils.schemas.SchemaHandler handler) |
getAttributePrefix, getDomainClass, getDomainClasses, getJAXBContext, getNamespacePrefixMapper, getNamespaceSeparator, getSize, getValueWrapper, isFormattedOutput, isIncludeRoot, isMarshalEmptyCollections, isReadable, isWrapperAsArrayName, isWriteable, preWriteTo, readFrom, setAttributePrefix, setFormattedOutput, setIncludeRoot, setMarshalEmptyCollections, setNamespacePrefixMapper, setNamespaceSeparator, setValueWrapper, setWrapperAsArrayName, supportsMediaType, writeTopublic void setSchemaHandler(org.apache.cxf.jaxrs.utils.schemas.SchemaHandler handler)
protected void setSchema(Schema s)
protected Schema getSchema()
protected void preReadFrom(Class<Object> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, Unmarshaller unmarshaller) throws JAXBException
MOXyJsonProviderpreReadFrom in class MOXyJsonProvidertype - - The Class to be unmarshalled (i.e. Customer or
List)genericType - - The type of object to be unmarshalled (i.e
Customer or List<Customer>).annotations - - The annotations corresponding to domain object.mediaType - - The media type for the HTTP entity.httpHeaders - - HTTP headers associated with HTTP entity.unmarshaller - - The instance of Unmarshaller that will be
used to unmarshal the JSON message.JAXBExceptionUnmarshallerPropertiesCopyright © 2016. All rights reserved.