@ExperimentalApi public class MediaConsumer extends Object
The media type has to be represented by String
instead of
MediaType because of JIRA
OSGi limitations. The jira-api module cannot import classes from OSGi. Providing that class would cause
ClassCastException
s for clients importing it from OSGi.
Constructor and Description |
---|
MediaConsumer(Consumer<InputStream> dataConsumer) |
MediaConsumer(Consumer<String> contentTypeConsumer,
Consumer<InputStream> dataConsumer) |
Modifier and Type | Method and Description |
---|---|
void |
consumeContentType(String contentType) |
void |
consumeData(InputStream inputStream) |
public MediaConsumer(@Nonnull Consumer<String> contentTypeConsumer, @Nonnull Consumer<InputStream> dataConsumer)
public MediaConsumer(Consumer<InputStream> dataConsumer)
public void consumeData(InputStream inputStream)
public void consumeContentType(String contentType)
Copyright © 2002-2017 Atlassian. All Rights Reserved.