@Test public void testGetMediaTypeSet() { ClasspathConfigSource configSource = ConfigSources.classpath("application.conf") .optional() .mediaType(TEST_MEDIA_TYPE) .build(); assertThat(configSource.mediaType(), is(Optional.of(TEST_MEDIA_TYPE))); }
@Override public Optional<String> mediaType() { return super.mediaType(); }
ClasspathConfigSource extends AbstractConfigSource implements ConfigSource,
                                                                           ParsableSource { @Override public Optional<String> mediaType() { return super.mediaType(); } }
ClasspathConfigSource extends AbstractConfigSource implements ConfigSource,
                                                                           ParsableSource { @Override public Optional<String> mediaType() { return super.mediaType(); } ClasspathConfigSource(Builder builder); }
ClasspathConfigSource extends AbstractConfigSource implements ConfigSource,
                                                                           ParsableSource { @Override public Optional<String> mediaType() { return super.mediaType(); } ClasspathConfigSource(Builder builder); static ClasspathConfigSource create(Config metaConfig); static ClasspathConfigSource create(String resource); static Collection<? super ClasspathConfigSource> createAll(String resource); static List<ConfigSource> createAll(Config metaConfig); static Builder builder(); @Override Optional<Content> load(); @Override String toString(); @Override Optional<String> mediaType(); @Override Optional<ConfigParser> parser(); }
ClasspathConfigSource extends AbstractConfigSource implements ConfigSource,
                                                                           ParsableSource { @Override public Optional<String> mediaType() { return super.mediaType(); } ClasspathConfigSource(Builder builder); static ClasspathConfigSource create(Config metaConfig); static ClasspathConfigSource create(String resource); static Collection<? super ClasspathConfigSource> createAll(String resource); static List<ConfigSource> createAll(Config metaConfig); static Builder builder(); @Override Optional<Content> load(); @Override String toString(); @Override Optional<String> mediaType(); @Override Optional<ConfigParser> parser();  }