org.apache.wink.server.handlers
Class MediaTypeMapperFactory
java.lang.Object
org.apache.wink.server.handlers.MediaTypeMapperFactory
public abstract class MediaTypeMapperFactory
- extends Object
MediaTypeMapperFactory is responsible to provide media type mappings from an
application's response media type to a preferred media type. The use case is
when certain user agents do not know how to handle a specific response media
type (such as an application/*+xml) and must use another media type (such as
text/xml).
The user should extend this class and override the relevant methods.
The sub-classes MUST have the public default constructor.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MediaTypeMapperFactory
public MediaTypeMapperFactory()
getMediaTypeMappings
public abstract List<? extends MediaTypeMappingRecord> getMediaTypeMappings()
- Returns a list of media type mappings that will be called to map response
media types to preferred media types.
- Returns:
- set of media type mapping records
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.