@Test public void testGetContentType() throws Exception { MetadataContentTypeProvider provider = new MetadataContentTypeProvider(testName.getMethodName()); AdaptrisMessage msg = new DefaultMessageFactory().newMessage(""); msg.addMetadata(testName.getMethodName(), "text/complicated"); String contentType = provider.getContentType(msg); assertEquals("text/complicated", contentType); }
@Override public String getContentType(AdaptrisMessage msg) throws CoreException { return build(extract(msg), msg.getContentEncoding()); }
MetadataContentTypeProvider extends ContentTypeProviderImpl { @Override public String getContentType(AdaptrisMessage msg) throws CoreException { return build(extract(msg), msg.getContentEncoding()); } }
MetadataContentTypeProvider extends ContentTypeProviderImpl { @Override public String getContentType(AdaptrisMessage msg) throws CoreException { return build(extract(msg), msg.getContentEncoding()); } MetadataContentTypeProvider();  MetadataContentTypeProvider(String key); }
MetadataContentTypeProvider extends ContentTypeProviderImpl { @Override public String getContentType(AdaptrisMessage msg) throws CoreException { return build(extract(msg), msg.getContentEncoding()); } MetadataContentTypeProvider();  MetadataContentTypeProvider(String key); @Override String getContentType(AdaptrisMessage msg); String getMetadataKey(); void setMetadataKey(String key); String getDefaultMimeType(); void setDefaultMimeType(String mt); }
MetadataContentTypeProvider extends ContentTypeProviderImpl { @Override public String getContentType(AdaptrisMessage msg) throws CoreException { return build(extract(msg), msg.getContentEncoding()); } MetadataContentTypeProvider();  MetadataContentTypeProvider(String key); @Override String getContentType(AdaptrisMessage msg); String getMetadataKey(); void setMetadataKey(String key); String getDefaultMimeType(); void setDefaultMimeType(String mt);  }