@Test public void testGetMediaTypeSet() { FileConfigSource configSource = ConfigSources.file("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(); }
FileConfigSource extends AbstractConfigSource implements WatchableSource<Path>, ParsableSource, PollableSource<byte[]> { @Override public Optional<String> mediaType() { return super.mediaType(); } }
FileConfigSource extends AbstractConfigSource implements WatchableSource<Path>, ParsableSource, PollableSource<byte[]> { @Override public Optional<String> mediaType() { return super.mediaType(); } FileConfigSource(Builder builder); }
FileConfigSource extends AbstractConfigSource implements WatchableSource<Path>, ParsableSource, PollableSource<byte[]> { @Override public Optional<String> mediaType() { return super.mediaType(); } FileConfigSource(Builder builder); static FileConfigSource create(Config metaConfig); static Builder builder(); @Override boolean isModified(byte[] stamp); @Override Path target(); @Override Optional<ConfigParser.Content> load(); @Override Optional<ConfigParser> parser(); @Override Optional<String> mediaType(); @Override Optional<PollingStrategy> pollingStrategy(); @Override Optional<ChangeWatcher<Object>> changeWatcher(); @Override boolean exists(); }
FileConfigSource extends AbstractConfigSource implements WatchableSource<Path>, ParsableSource, PollableSource<byte[]> { @Override public Optional<String> mediaType() { return super.mediaType(); } FileConfigSource(Builder builder); static FileConfigSource create(Config metaConfig); static Builder builder(); @Override boolean isModified(byte[] stamp); @Override Path target(); @Override Optional<ConfigParser.Content> load(); @Override Optional<ConfigParser> parser(); @Override Optional<String> mediaType(); @Override Optional<PollingStrategy> pollingStrategy(); @Override Optional<ChangeWatcher<Object>> changeWatcher(); @Override boolean exists();  }