public class MarshallerFactory extends Object
IMarshaller for a given mime-type.| Constructor and Description |
|---|
MarshallerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addMarshaller(IMarshaller marshaller)
Add a supported marshaller.
|
static void |
clear()
Remove all configured marshallers.
|
static IMarshaller |
get(String mimeType)
Get the
IMarshaller for the specified mime-type. |
static List<String> |
getSupportedMimeTypes()
Gets the mime-types for all registered marshallers.
|
public static IMarshaller get(String mimeType) throws IllegalArgumentException
IMarshaller for the specified mime-type.mimeType - the mime-typeIMarshallerIllegalArgumentException - if no IMarshaller could be found for the specified mime-typepublic static List<String> getSupportedMimeTypes()
public static void addMarshaller(IMarshaller marshaller)
marshaller - the marshallerpublic static void clear()
Copyright © 2016. All rights reserved.