Uses of Class
org.apache.hc.core5.http.ContentType
Packages that use ContentType
Package
Description
Apache Bench (AB) clone based on HttpCore.
Core HTTP transport component APIs.
Default implementations of core HTTP APIs.
HTTP message entity APIs based on the classic (blocking) I/O model.
Support classes for the classic (blocking) I/O model.
HTTP message entity APIs based on the asynchronous (non-blocking) I/O model.
Support classes for the asynchronous I/O model.
Support classes for the asynchronous I/O model that emulate
behavior of the classic (blocking) I/O model.
-
Uses of ContentType in org.apache.hc.core5.benchmark
Fields in org.apache.hc.core5.benchmark declared as ContentTypeModifier and TypeFieldDescriptionprivate ContentTypeBenchmarkConfig.Builder.contentTypeprivate final ContentTypeBenchmarkConfig.contentTypeMethods in org.apache.hc.core5.benchmark that return ContentTypeMethods in org.apache.hc.core5.benchmark with parameters of type ContentTypeModifier and TypeMethodDescriptionBenchmarkConfig.Builder.setContentType(ContentType contentType) Constructors in org.apache.hc.core5.benchmark with parameters of type ContentTypeModifierConstructorDescriptionprivateBenchmarkConfig(URI uri, int requests, int concurrencyLevel, TimeValue timeLimit, Timeout socketTimeout, File payloadFile, ContentType contentType, int verbosity, boolean headInsteadOfGet, String[] headers, boolean keepAlive, String method, boolean useChunking, boolean useExpectContinue, boolean useAcceptGZip, String payloadText, String soapAction, boolean forceHttp2, boolean disableSSLVerification, String trustStorePath, String identityStorePath, String trustStorePassword, String identityStorePassword) -
Uses of ContentType in org.apache.hc.core5.http
Fields in org.apache.hc.core5.http declared as ContentTypeModifier and TypeFieldDescriptionstatic final ContentTypeContentType.APPLICATION_ATOM_XMLstatic final ContentTypeContentType.APPLICATION_FORM_URLENCODEDstatic final ContentTypeContentType.APPLICATION_JSONstatic final ContentTypeContentType.APPLICATION_NDJSONPublic constant media type forapplication/x-ndjson.static final ContentTypeContentType.APPLICATION_OCTET_STREAMstatic final ContentTypeContentType.APPLICATION_PDFPublic constant media type forapplication/pdf.static final ContentTypeContentType.APPLICATION_PROBLEM_JSONPublic constant media type forapplication/problem+json.static final ContentTypeContentType.APPLICATION_PROBLEM_XMLPublic constant media type forapplication/problem+xml.static final ContentTypeContentType.APPLICATION_RSS_XMLPublic constant media type forapplication/rss+xml.static final ContentTypeContentType.APPLICATION_SOAP_XMLstatic final ContentTypeContentType.APPLICATION_SVG_XMLstatic final ContentTypeContentType.APPLICATION_XHTML_XMLstatic final ContentTypeContentType.APPLICATION_XMLstatic final ContentTypeContentType.DEFAULT_BINARYstatic final ContentTypeContentType.DEFAULT_TEXTstatic final ContentTypeContentType.IMAGE_BMPstatic final ContentTypeContentType.IMAGE_GIFstatic final ContentTypeContentType.IMAGE_JPEGstatic final ContentTypeContentType.IMAGE_PNGstatic final ContentTypeContentType.IMAGE_SVGstatic final ContentTypeContentType.IMAGE_TIFFstatic final ContentTypeContentType.IMAGE_WEBPstatic final ContentTypeContentType.MULTIPART_FORM_DATAstatic final ContentTypeContentType.MULTIPART_MIXEDPublic constant media type formultipart/mixed.static final ContentTypeContentType.MULTIPART_RELATEDPublic constant media type formultipart/related.static final ContentTypeContentType.TEXT_EVENT_STREAMPublic constant media type fortext/event-stream.static final ContentTypeContentType.TEXT_HTMLstatic final ContentTypeContentType.TEXT_MARKDOWNPublic constant media type fortext/markdown.static final ContentTypeContentType.TEXT_PLAINstatic final ContentTypeContentType.TEXT_XMLstatic final ContentTypeContentType.WILDCARDFields in org.apache.hc.core5.http with type parameters of type ContentTypeModifier and TypeFieldDescriptionprivate static final Map<String, ContentType> ContentType.CONTENT_TYPE_MAPDeprecated.To be removed in 6.0Methods in org.apache.hc.core5.http that return ContentTypeModifier and TypeMethodDescriptionstatic ContentTypeCreates a new instance ofContentTypewithout a charset.static ContentTypeCreates a new instance ofContentType.static ContentTypeCreates a new instance ofContentType.static ContentTypeContentType.create(String mimeType, NameValuePair... params) Creates a new instance ofContentTypewith the given parameters.private static ContentTypeContentType.create(String mimeType, NameValuePair[] params, boolean strict) private static ContentTypeContentType.create(HeaderElement helem, boolean strict) static ContentTypeContentType.getByMimeType(String mimeType) Deprecated.Do not use.static ContentTypeContentType.parse(CharSequence s) Parses textual representation ofContent-Typevalue.private static ContentTypeContentType.parse(CharSequence s, boolean strict) static ContentTypeContentType.parseLenient(CharSequence s) Parses textual representation ofContent-Typevalue ignoring invalid charsets.ContentType.withCharset(String charset) Creates a new instance with this MIME type and the given Charset name.ContentType.withCharset(Charset charset) Creates a new instance with this MIME type and the given Charset.ContentType.withParameters(NameValuePair... params) Creates a new instance with this MIME type and the given parameters.Methods in org.apache.hc.core5.http with parameters of type ContentTypeModifier and TypeMethodDescriptionstatic CharsetContentType.getCharset(ContentType contentType, Charset defaultCharset) Gets a ContentType's Charset if neither are null, otherwise, return the givendefaultCharset.booleanContentType.isSameMimeType(ContentType contentType) -
Uses of ContentType in org.apache.hc.core5.http.impl
Fields in org.apache.hc.core5.http.impl declared as ContentTypeConstructors in org.apache.hc.core5.http.impl with parameters of type ContentType -
Uses of ContentType in org.apache.hc.core5.http.io.entity
Fields in org.apache.hc.core5.http.io.entity with type parameters of type ContentTypeModifier and TypeFieldDescriptionprivate static final Map<String, ContentType> EntityUtils.CONTENT_TYPE_MAPMethods in org.apache.hc.core5.http.io.entity with parameters of type ContentTypeModifier and TypeMethodDescriptionstatic HttpEntityHttpEntities.create(byte[] content, ContentType contentType) static HttpEntityHttpEntities.create(byte[] content, ContentType contentType, Header... trailers) static HttpEntityHttpEntities.create(File content, ContentType contentType) static HttpEntityHttpEntities.create(File content, ContentType contentType, Header... trailers) static HttpEntityHttpEntities.create(Serializable serializable, ContentType contentType) static HttpEntityHttpEntities.create(Serializable serializable, ContentType contentType, Header... trailers) static HttpEntityHttpEntities.create(String content, ContentType contentType) static HttpEntityHttpEntities.create(String content, ContentType contentType, Header... trailers) static HttpEntityHttpEntities.create(Path content, ContentType contentType) static HttpEntityHttpEntities.create(Path content, ContentType contentType, Header... trailers) static HttpEntityHttpEntities.create(IOCallback<OutputStream> callback, ContentType contentType) static HttpEntityHttpEntities.create(IOCallback<OutputStream> callback, ContentType contentType, Header... trailers) static HttpEntityHttpEntities.createGzipped(byte[] content, ContentType contentType) static HttpEntityHttpEntities.createGzipped(File content, ContentType contentType) static HttpEntityHttpEntities.createGzipped(Serializable serializable, ContentType contentType) static HttpEntityHttpEntities.createGzipped(String content, ContentType contentType) static HttpEntityHttpEntities.createGzipped(Path content, ContentType contentType) static HttpEntityHttpEntities.createGzipped(IOCallback<OutputStream> callback, ContentType contentType) private static StringEntityUtils.toString(HttpEntity entity, ContentType contentType, int maxResultLength) Constructors in org.apache.hc.core5.http.io.entity with parameters of type ContentTypeModifierConstructorDescriptionprotectedAbstractHttpEntity(ContentType contentType, String contentEncoding) protectedAbstractHttpEntity(ContentType contentType, String contentEncoding, boolean chunked) BasicHttpEntity(InputStream content, long length, ContentType contentType) BasicHttpEntity(InputStream content, long length, ContentType contentType, String contentEncoding) BasicHttpEntity(InputStream content, long length, ContentType contentType, String contentEncoding, boolean chunked) BasicHttpEntity(InputStream content, ContentType contentType) BasicHttpEntity(InputStream content, ContentType contentType, boolean chunked) BasicHttpEntity(InputStream content, ContentType contentType, String contentEncoding) ByteArrayEntity(byte[] b, int off, int len, ContentType contentType) ByteArrayEntity(byte[] b, int off, int len, ContentType contentType, boolean chunked) ByteArrayEntity(byte[] b, int off, int len, ContentType contentType, String contentEncoding) ByteArrayEntity(byte[] b, int off, int len, ContentType contentType, String contentEncoding, boolean chunked) ByteArrayEntity(byte[] b, ContentType contentType) ByteArrayEntity(byte[] b, ContentType contentType, boolean chunked) ByteArrayEntity(byte[] b, ContentType contentType, String contentEncoding) ByteArrayEntity(byte[] b, ContentType contentType, String contentEncoding, boolean chunked) ByteBufferEntity(ByteBuffer buffer, ContentType contentType) ByteBufferEntity(ByteBuffer buffer, ContentType contentType, String contentEncoding) EntityTemplate(long contentLength, ContentType contentType, String contentEncoding, IOCallback<OutputStream> callback) FileEntity(File file, ContentType contentType) FileEntity(File file, ContentType contentType, String contentEncoding) InputStreamEntity(InputStream inStream, long length, ContentType contentType) InputStreamEntity(InputStream inStream, long length, ContentType contentType, String contentEncoding) InputStreamEntity(InputStream inStream, ContentType contentType) PathEntity(Path path, ContentType contentType) PathEntity(Path path, ContentType contentType, String contentEncoding) SerializableEntity(Serializable serializable, ContentType contentType) Creates new instance of this class.SerializableEntity(Serializable serializable, ContentType contentType, String contentEncoding) Creates new instance of this class.StringEntity(String string, ContentType contentType) StringEntity(String string, ContentType contentType, boolean chunked) StringEntity(String string, ContentType contentType, String contentEncoding, boolean chunked) Creates a StringEntity with the specified content and content type. -
Uses of ContentType in org.apache.hc.core5.http.io.support
Methods in org.apache.hc.core5.http.io.support with parameters of type ContentTypeModifier and TypeMethodDescriptionClassicRequestBuilder.setEntity(byte[] content, ContentType contentType) ClassicRequestBuilder.setEntity(String content, ContentType contentType) ClassicResponseBuilder.setEntity(byte[] content, ContentType contentType) ClassicResponseBuilder.setEntity(String content, ContentType contentType) -
Uses of ContentType in org.apache.hc.core5.http.nio.entity
Fields in org.apache.hc.core5.http.nio.entity declared as ContentTypeModifier and TypeFieldDescriptionprivate final ContentTypeAbstractBinAsyncEntityProducer.contentTypeprivate final ContentTypeAbstractCharAsyncEntityProducer.contentTypeprivate final ContentTypeBasicAsyncEntityProducer.contentTypeprivate final ContentTypeFileEntityProducer.contentTypeprivate final ContentTypePathEntityProducer.contentTypeMethods in org.apache.hc.core5.http.nio.entity with parameters of type ContentTypeModifier and TypeMethodDescriptionstatic AsyncEntityProducerAsyncEntityProducers.create(byte[] content, ContentType contentType) static AsyncEntityProducerAsyncEntityProducers.create(byte[] content, ContentType contentType, Header... trailers) static AsyncEntityProducerAsyncEntityProducers.create(File content, ContentType contentType) static AsyncEntityProducerAsyncEntityProducers.create(File content, ContentType contentType, Header... trailers) static AsyncEntityProducerAsyncEntityProducers.create(String content, ContentType contentType) static AsyncEntityProducerAsyncEntityProducers.create(String content, ContentType contentType, Header... trailers) static AsyncEntityProducerAsyncEntityProducers.create(Path content, ContentType contentType, OpenOption... options) static AsyncEntityProducerAsyncEntityProducers.create(Path content, ContentType contentType, Header... trailers) static AsyncEntityProducerAsyncEntityProducers.createBinary(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType) static AsyncEntityProducerAsyncEntityProducers.createBinary(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType, Header... trailers) static AsyncEntityProducerAsyncEntityProducers.createText(Callback<StreamChannel<CharBuffer>> callback, ContentType contentType) static AsyncEntityProducerAsyncEntityProducers.createText(Callback<StreamChannel<CharBuffer>> callback, ContentType contentType, Header... trailers) protected abstract voidAbstractBinAsyncEntityConsumer.streamStart(ContentType contentType) Triggered to signal beginning of entity content stream.protected abstract voidAbstractCharAsyncEntityConsumer.streamStart(ContentType contentType) Triggered to signal beginning of entity content stream.protected voidBasicAsyncEntityConsumer.streamStart(ContentType contentType) protected final voidStringAsyncEntityConsumer.streamStart(ContentType contentType) Constructors in org.apache.hc.core5.http.nio.entity with parameters of type ContentTypeModifierConstructorDescriptionAbstractBinAsyncEntityProducer(int fragmentSizeHint, ContentType contentType) AbstractCharAsyncEntityProducer(int bufferSize, int fragmentSizeHint, ContentType contentType) BasicAsyncEntityProducer(byte[] content, ContentType contentType) BasicAsyncEntityProducer(byte[] content, ContentType contentType, boolean chunked) BasicAsyncEntityProducer(CharSequence content, ContentType contentType) BasicAsyncEntityProducer(CharSequence content, ContentType contentType, boolean chunked) FileEntityProducer(File file, int bufferSize, ContentType contentType, boolean chunked) FileEntityProducer(File file, ContentType contentType) FileEntityProducer(File file, ContentType contentType, boolean chunked) PathEntityProducer(Path file, int bufferSize, ContentType contentType, boolean chunked, OpenOption... openOptions) PathEntityProducer(Path file, ContentType contentType, boolean chunked, OpenOption... openOptions) PathEntityProducer(Path file, ContentType contentType, OpenOption... openOptions) StringAsyncEntityProducer(CharSequence content, int bufferSize, int fragmentSizeHint, ContentType contentType) StringAsyncEntityProducer(CharSequence content, int bufferSize, ContentType contentType) StringAsyncEntityProducer(CharSequence content, ContentType contentType) -
Uses of ContentType in org.apache.hc.core5.http.nio.support
Methods in org.apache.hc.core5.http.nio.support with parameters of type ContentTypeModifier and TypeMethodDescriptionprotected abstract TAbstractAsyncRequesterConsumer.buildResult(HttpRequest request, E entity, ContentType contentType) Triggered to generate object that represents a result of request message processing.protected abstract TAbstractAsyncResponseConsumer.buildResult(HttpResponse response, E entity, ContentType contentType) Triggered to generate object that represents a result of response message processing.AsyncPushBuilder.setEntity(byte[] content, ContentType contentType) AsyncPushBuilder.setEntity(String content, ContentType contentType) AsyncRequestBuilder.setEntity(byte[] content, ContentType contentType) AsyncRequestBuilder.setEntity(String content, ContentType contentType) AsyncResponseBuilder.setEntity(byte[] content, ContentType contentType) AsyncResponseBuilder.setEntity(String content, ContentType contentType) Constructors in org.apache.hc.core5.http.nio.support with parameters of type ContentTypeModifierConstructorDescriptionBasicResponseProducer(int code, String message, ContentType contentType) BasicResponseProducer(HttpResponse response, String message, ContentType contentType) -
Uses of ContentType in org.apache.hc.core5.http.nio.support.classic
Fields in org.apache.hc.core5.http.nio.support.classic declared as ContentTypeModifier and TypeFieldDescriptionprivate final ContentTypeAbstractClassicEntityProducer.contentTypeMethods in org.apache.hc.core5.http.nio.support.classic with parameters of type ContentTypeModifier and TypeMethodDescriptionprotected abstract TAbstractClassicEntityConsumer.consumeData(ContentType contentType, InputStream inputStream) Processes entity data from the given stream.protected abstract voidAbstractClassicEntityProducer.produceData(ContentType contentType, OutputStream outputStream) Writes out entity data into the given stream.Constructors in org.apache.hc.core5.http.nio.support.classic with parameters of type ContentTypeModifierConstructorDescriptionAbstractClassicEntityProducer(int initialBufferSize, ContentType contentType, Executor executor) -
Uses of ContentType in org.apache.hc.core5.reactive
Fields in org.apache.hc.core5.reactive declared as ContentTypeConstructors in org.apache.hc.core5.reactive with parameters of type ContentTypeModifierConstructorDescriptionReactiveEntityProducer(org.reactivestreams.Publisher<ByteBuffer> publisher, long contentLength, ContentType contentType, String contentEncoding) Creates a newReactiveEntityProducerwith the given parameters.