@Test(expected=DeserializerException.class) public void deserializer1() throws DeserializerException { List<String> versions = new ArrayList<String>(); versions.add("4.01"); odata.createDeserializer(null, null, versions); }
@Override public ODataDeserializer createDeserializer(final ContentType contentType) throws DeserializerException { if (contentType != null && contentType.isCompatible(ContentType.JSON)) { return new ODataJsonDeserializer(contentType); } else if (contentType != null && (contentType.isCompatible(ContentType.APPLICATION_XML) || contentType.isCompatible(ContentType.APPLICATION_ATOM_XML))) { return new ODataXmlDeserializer(); } else { throw new DeserializerException("Unsupported format: " + ((contentType != null) ? contentType.toContentTypeString() : null), DeserializerException.MessageKeys.UNSUPPORTED_FORMAT, ((contentType != null) ? contentType.toContentTypeString() : null)); } }
ODataImpl extends OData { @Override public ODataDeserializer createDeserializer(final ContentType contentType) throws DeserializerException { if (contentType != null && contentType.isCompatible(ContentType.JSON)) { return new ODataJsonDeserializer(contentType); } else if (contentType != null && (contentType.isCompatible(ContentType.APPLICATION_XML) || contentType.isCompatible(ContentType.APPLICATION_ATOM_XML))) { return new ODataXmlDeserializer(); } else { throw new DeserializerException("Unsupported format: " + ((contentType != null) ? contentType.toContentTypeString() : null), DeserializerException.MessageKeys.UNSUPPORTED_FORMAT, ((contentType != null) ? contentType.toContentTypeString() : null)); } } }
ODataImpl extends OData { @Override public ODataDeserializer createDeserializer(final ContentType contentType) throws DeserializerException { if (contentType != null && contentType.isCompatible(ContentType.JSON)) { return new ODataJsonDeserializer(contentType); } else if (contentType != null && (contentType.isCompatible(ContentType.APPLICATION_XML) || contentType.isCompatible(ContentType.APPLICATION_ATOM_XML))) { return new ODataXmlDeserializer(); } else { throw new DeserializerException("Unsupported format: " + ((contentType != null) ? contentType.toContentTypeString() : null), DeserializerException.MessageKeys.UNSUPPORTED_FORMAT, ((contentType != null) ? contentType.toContentTypeString() : null)); } }  }
ODataImpl extends OData { @Override public ODataDeserializer createDeserializer(final ContentType contentType) throws DeserializerException { if (contentType != null && contentType.isCompatible(ContentType.JSON)) { return new ODataJsonDeserializer(contentType); } else if (contentType != null && (contentType.isCompatible(ContentType.APPLICATION_XML) || contentType.isCompatible(ContentType.APPLICATION_ATOM_XML))) { return new ODataXmlDeserializer(); } else { throw new DeserializerException("Unsupported format: " + ((contentType != null) ? contentType.toContentTypeString() : null), DeserializerException.MessageKeys.UNSUPPORTED_FORMAT, ((contentType != null) ? contentType.toContentTypeString() : null)); } }  @Override ODataSerializer createSerializer(final ContentType contentType); @Override ODataSerializer createSerializer(final ContentType contentType, 
      final List<String> versions); @Override FixedFormatSerializer createFixedFormatSerializer(); @Override EdmAssistedSerializer createEdmAssistedSerializer(final ContentType contentType); @Override EdmAssistedSerializer createEdmAssistedSerializer(final ContentType contentType, 
		  List<String> versions); @Override EdmDeltaSerializer createEdmDeltaSerializer(final ContentType contentType, final List<String> versions); @Override ODataHttpHandler createHandler(final ServiceMetadata serviceMetadata); @Override ODataHandler createRawHandler(ServiceMetadata serviceMetadata); @Override ServiceMetadata createServiceMetadata(final CsdlEdmProvider edmProvider,
      final List<EdmxReference> references); @Override ServiceMetadata createServiceMetadata(final CsdlEdmProvider edmProvider,
      final List<EdmxReference> references, final ServiceMetadataETagSupport serviceMetadataETagSupport); @Override FixedFormatDeserializer createFixedFormatDeserializer(); @Override UriHelper createUriHelper(); @Override ODataDeserializer createDeserializer(final ContentType contentType); @Override ODataDeserializer createDeserializer(final ContentType contentType,
      ServiceMetadata metadata); @Override EdmPrimitiveType createPrimitiveTypeInstance(final EdmPrimitiveTypeKind kind); @Override ETagHelper createETagHelper(); @Override Preferences createPreferences(final Collection<String> preferHeaders); @Override DebugResponseHelper createDebugResponseHelper(final String debugFormat); @Override ODataDeserializer createDeserializer(ContentType contentType, List<String> versions); @Override ODataDeserializer createDeserializer(ContentType contentType, ServiceMetadata metadata, List<String> versions); }
ODataImpl extends OData { @Override public ODataDeserializer createDeserializer(final ContentType contentType) throws DeserializerException { if (contentType != null && contentType.isCompatible(ContentType.JSON)) { return new ODataJsonDeserializer(contentType); } else if (contentType != null && (contentType.isCompatible(ContentType.APPLICATION_XML) || contentType.isCompatible(ContentType.APPLICATION_ATOM_XML))) { return new ODataXmlDeserializer(); } else { throw new DeserializerException("Unsupported format: " + ((contentType != null) ? contentType.toContentTypeString() : null), DeserializerException.MessageKeys.UNSUPPORTED_FORMAT, ((contentType != null) ? contentType.toContentTypeString() : null)); } }  @Override ODataSerializer createSerializer(final ContentType contentType); @Override ODataSerializer createSerializer(final ContentType contentType, 
      final List<String> versions); @Override FixedFormatSerializer createFixedFormatSerializer(); @Override EdmAssistedSerializer createEdmAssistedSerializer(final ContentType contentType); @Override EdmAssistedSerializer createEdmAssistedSerializer(final ContentType contentType, 
		  List<String> versions); @Override EdmDeltaSerializer createEdmDeltaSerializer(final ContentType contentType, final List<String> versions); @Override ODataHttpHandler createHandler(final ServiceMetadata serviceMetadata); @Override ODataHandler createRawHandler(ServiceMetadata serviceMetadata); @Override ServiceMetadata createServiceMetadata(final CsdlEdmProvider edmProvider,
      final List<EdmxReference> references); @Override ServiceMetadata createServiceMetadata(final CsdlEdmProvider edmProvider,
      final List<EdmxReference> references, final ServiceMetadataETagSupport serviceMetadataETagSupport); @Override FixedFormatDeserializer createFixedFormatDeserializer(); @Override UriHelper createUriHelper(); @Override ODataDeserializer createDeserializer(final ContentType contentType); @Override ODataDeserializer createDeserializer(final ContentType contentType,
      ServiceMetadata metadata); @Override EdmPrimitiveType createPrimitiveTypeInstance(final EdmPrimitiveTypeKind kind); @Override ETagHelper createETagHelper(); @Override Preferences createPreferences(final Collection<String> preferHeaders); @Override DebugResponseHelper createDebugResponseHelper(final String debugFormat); @Override ODataDeserializer createDeserializer(ContentType contentType, List<String> versions); @Override ODataDeserializer createDeserializer(ContentType contentType, ServiceMetadata metadata, List<String> versions);  }