@Test(expected = RequestBodyDeserializerNotFoundException.class) public void assertDeserializerNotFound() { RequestBodyDeserializerFactory.getRequestBodyDeserializer("Unknown"); }
public static RequestBodyDeserializer getRequestBodyDeserializer(final String contentType) { RequestBodyDeserializer result = REQUEST_BODY_DESERIALIZERS.get(contentType); if (null == result) { synchronized (RequestBodyDeserializerFactory.class) { if (null == REQUEST_BODY_DESERIALIZERS.get(contentType)) { instantiateRequestBodyDeserializerFromFactories(contentType); } result = REQUEST_BODY_DESERIALIZERS.get(contentType); } } if (MISSING_DESERIALIZER == result) { throw new RequestBodyDeserializerNotFoundException(contentType); } return result; }
RequestBodyDeserializerFactory { public static RequestBodyDeserializer getRequestBodyDeserializer(final String contentType) { RequestBodyDeserializer result = REQUEST_BODY_DESERIALIZERS.get(contentType); if (null == result) { synchronized (RequestBodyDeserializerFactory.class) { if (null == REQUEST_BODY_DESERIALIZERS.get(contentType)) { instantiateRequestBodyDeserializerFromFactories(contentType); } result = REQUEST_BODY_DESERIALIZERS.get(contentType); } } if (MISSING_DESERIALIZER == result) { throw new RequestBodyDeserializerNotFoundException(contentType); } return result; } }
RequestBodyDeserializerFactory { public static RequestBodyDeserializer getRequestBodyDeserializer(final String contentType) { RequestBodyDeserializer result = REQUEST_BODY_DESERIALIZERS.get(contentType); if (null == result) { synchronized (RequestBodyDeserializerFactory.class) { if (null == REQUEST_BODY_DESERIALIZERS.get(contentType)) { instantiateRequestBodyDeserializerFromFactories(contentType); } result = REQUEST_BODY_DESERIALIZERS.get(contentType); } } if (MISSING_DESERIALIZER == result) { throw new RequestBodyDeserializerNotFoundException(contentType); } return result; }  }
RequestBodyDeserializerFactory { public static RequestBodyDeserializer getRequestBodyDeserializer(final String contentType) { RequestBodyDeserializer result = REQUEST_BODY_DESERIALIZERS.get(contentType); if (null == result) { synchronized (RequestBodyDeserializerFactory.class) { if (null == REQUEST_BODY_DESERIALIZERS.get(contentType)) { instantiateRequestBodyDeserializerFromFactories(contentType); } result = REQUEST_BODY_DESERIALIZERS.get(contentType); } } if (MISSING_DESERIALIZER == result) { throw new RequestBodyDeserializerNotFoundException(contentType); } return result; }  static RequestBodyDeserializer getRequestBodyDeserializer(final String contentType); }
RequestBodyDeserializerFactory { public static RequestBodyDeserializer getRequestBodyDeserializer(final String contentType) { RequestBodyDeserializer result = REQUEST_BODY_DESERIALIZERS.get(contentType); if (null == result) { synchronized (RequestBodyDeserializerFactory.class) { if (null == REQUEST_BODY_DESERIALIZERS.get(contentType)) { instantiateRequestBodyDeserializerFromFactories(contentType); } result = REQUEST_BODY_DESERIALIZERS.get(contentType); } } if (MISSING_DESERIALIZER == result) { throw new RequestBodyDeserializerNotFoundException(contentType); } return result; }  static RequestBodyDeserializer getRequestBodyDeserializer(final String contentType);  }