Uses of Class
org.apache.juneau.http.header.ContentType
Packages that use ContentType
Package
Description
HTTP Entity Beans
HTTP Header Beans
HTTP Resource Beans
REST Client API
REST Server Mock API
Remote service API
-
Uses of ContentType in org.apache.juneau.http
Fields in org.apache.juneau.http declared as ContentTypeModifier and TypeFieldDescriptionstatic final ContentTypeHttpHeaders.CONTENTTYPE_APPLICATION_ATOM_XMLstatic final ContentTypeHttpHeaders.CONTENTTYPE_APPLICATION_FORM_URLENCODEDstatic final ContentTypeHttpHeaders.CONTENTTYPE_APPLICATION_JSONstatic final ContentTypeHttpHeaders.CONTENTTYPE_APPLICATION_OCTET_STREAMstatic final ContentTypeHttpHeaders.CONTENTTYPE_APPLICATION_SOAP_XMLstatic final ContentTypeHttpHeaders.CONTENTTYPE_APPLICATION_SVG_XMLstatic final ContentTypeHttpHeaders.CONTENTTYPE_APPLICATION_XHTML_XMLstatic final ContentTypeHttpHeaders.CONTENTTYPE_APPLICATION_XMLstatic final ContentTypeHttpHeaders.CONTENTTYPE_IMAGE_BMPstatic final ContentTypeHttpHeaders.CONTENTTYPE_IMAGE_GIFstatic final ContentTypeHttpHeaders.CONTENTTYPE_IMAGE_JPEGstatic final ContentTypeHttpHeaders.CONTENTTYPE_IMAGE_PNGstatic final ContentTypeHttpHeaders.CONTENTTYPE_IMAGE_SVGstatic final ContentTypeHttpHeaders.CONTENTTYPE_IMAGE_TIFFstatic final ContentTypeHttpHeaders.CONTENTTYPE_IMAGE_WEBPstatic final ContentTypeHttpHeaders.CONTENTTYPE_MULTIPART_FORM_DATAstatic final ContentTypeHttpHeaders.CONTENTTYPE_TEXT_HTMLstatic final ContentTypeHttpHeaders.CONTENTTYPE_TEXT_PLAINstatic final ContentTypeHttpHeaders.CONTENTTYPE_TEXT_XMLstatic final ContentTypeHttpHeaders.CONTENTTYPE_WILDCARDMethods in org.apache.juneau.http that return ContentTypeModifier and TypeMethodDescriptionstatic final ContentTypeHttpHeaders.contentType(String value) Creates a newContentTypeheader.static final ContentTypeHttpHeaders.contentType(Supplier<MediaType> value) Creates a newContentTypeheader with a delayed value.static final ContentTypeHttpHeaders.contentType(MediaType value) Creates a newContentTypeheader.Methods in org.apache.juneau.http with parameters of type ContentTypeModifier and TypeMethodDescriptionstatic final ByteArrayEntityHttpEntities.byteArrayEntity(byte[] content, ContentType contentType) Creates a newByteArrayEntitybuilder.static final ByteArrayEntityHttpEntities.byteArrayEntity(Supplier<byte[]> content, ContentType contentType) Creates a newByteArrayEntitybuilder.static final ByteArrayResourceHttpResources.byteArrayResource(byte[] content, ContentType contentType) Creates a newByteArrayResourcebuilder.static final ByteArrayResourceHttpResources.byteArrayResource(Supplier<byte[]> content, ContentType contentType) Creates a newByteArrayResourcebuilder.static final FileEntityHttpEntities.fileEntity(File content, ContentType contentType) Creates a newFileEntitybuilder.static final FileResourceHttpResources.fileResource(File content, ContentType contentType) Creates a newFileResourcebuilder.static final ReaderEntityHttpEntities.readerEntity(Reader content, ContentType contentType) Creates a newReaderEntitybuilder.static final ReaderResourceHttpResources.readerResource(Reader content, ContentType contentType) Creates a newReaderResourcebuilder.static final StreamEntityHttpEntities.streamEntity(InputStream content, long length, ContentType contentType) Creates a newStreamEntitybuilder.static final StreamResourceHttpResources.streamResource(InputStream content, long length, ContentType contentType) Creates a newStreamResourcebuilder.static final StringEntityHttpEntities.stringEntity(String content, ContentType contentType) Creates a new builder for aStringEntitybuilder.static final StringEntityHttpEntities.stringEntity(Supplier<String> content, ContentType contentType) Creates a new builder for aStringEntitybuilder.static final StringResourceHttpResources.stringResource(String content, ContentType contentType) Creates a new builder for aStringResourcebuilder.static final StringResourceHttpResources.stringResource(Supplier<String> content, ContentType contentType) Creates a new builder for aStringResourcebuilder. -
Uses of ContentType in org.apache.juneau.http.entity
Methods in org.apache.juneau.http.entity with parameters of type ContentTypeModifier and TypeMethodDescriptionBasicHttpEntity.setContentType(ContentType value) Sets the content type on this entity bean.ByteArrayEntity.setContentType(ContentType value) FileEntity.setContentType(ContentType value) ReaderEntity.setContentType(ContentType value) SerializedEntity.setContentType(ContentType value) StreamEntity.setContentType(ContentType value) StringEntity.setContentType(ContentType value) Constructors in org.apache.juneau.http.entity with parameters of type ContentTypeModifierConstructorDescriptionBasicHttpEntity(ContentType contentType, Object content) Constructor.ByteArrayEntity(ContentType contentType, byte[] contents) Constructor.FileEntity(ContentType contentType, File content) Constructor.ReaderEntity(ContentType contentType, Reader content) Constructor.SerializedEntity(ContentType contentType, Object content, Serializer serializer, HttpPartSchema schema) Constructor.StreamEntity(ContentType contentType, InputStream content) Constructor.StringEntity(ContentType contentType, String content) Constructor. -
Uses of ContentType in org.apache.juneau.http.header
Fields in org.apache.juneau.http.header declared as ContentTypeModifier and TypeFieldDescriptionstatic final ContentTypeContentType.APPLICATION_ATOM_XMLstatic final ContentTypeContentType.APPLICATION_FORM_URLENCODEDstatic final ContentTypeContentType.APPLICATION_JSONstatic final ContentTypeContentType.APPLICATION_OCTET_STREAMstatic final ContentTypeContentType.APPLICATION_SOAP_XMLstatic final ContentTypeContentType.APPLICATION_SVG_XMLstatic final ContentTypeContentType.APPLICATION_XHTML_XMLstatic final ContentTypeContentType.APPLICATION_XMLstatic 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.NULLstatic final ContentTypeContentType.TEXT_HTMLstatic final ContentTypeContentType.TEXT_OPENAPIstatic final ContentTypeContentType.TEXT_PLAINstatic final ContentTypeContentType.TEXT_XMLstatic final ContentTypeContentType.WILDCARDMethods in org.apache.juneau.http.header that return ContentTypeModifier and TypeMethodDescriptionstatic ContentTypeStatic creator.static ContentTypeStatic creator with delayed value.static ContentTypeStatic creator. -
Uses of ContentType in org.apache.juneau.http.resource
Methods in org.apache.juneau.http.resource with parameters of type ContentTypeModifier and TypeMethodDescriptionBasicResource.setContentType(ContentType value) Sets the content type on this entity bean.ByteArrayResource.setContentType(ContentType value) FileResource.setContentType(ContentType value) ReaderResource.setContentType(ContentType value) StreamResource.setContentType(ContentType value) StringResource.setContentType(ContentType value) Constructors in org.apache.juneau.http.resource with parameters of type ContentTypeModifierConstructorDescriptionByteArrayResource(ContentType contentType, byte[] contents) Constructor.FileResource(ContentType contentType, File contents) Constructor.ReaderResource(ContentType contentType, Reader contents) Constructor.StreamResource(ContentType contentType, InputStream contents) Constructor.StringResource(ContentType contentType, String contents) Constructor. -
Uses of ContentType in org.apache.juneau.rest.client
Methods in org.apache.juneau.rest.client that return types with arguments of type ContentTypeModifier and TypeMethodDescriptionRestResponse.getContentType()Shortcut for retrieving the response content type from theContent-Type header.Methods in org.apache.juneau.rest.client with parameters of type ContentTypeModifier and TypeMethodDescriptionRestClient.patch(Object uri, String body, ContentType contentType) Perform aPATCH request against the specified URI as a plain text body bypassing the serializer.RestClient.post(Object uri, String body, ContentType contentType) Perform aPOST request against the specified URI as a plain text body bypassing the serializer.RestClient.put(Object uri, String body, ContentType contentType) Perform aPUT request against the specified URI using a plain text body bypassing the serializer. -
Uses of ContentType in org.apache.juneau.rest.mock
Methods in org.apache.juneau.rest.mock with parameters of type ContentTypeModifier and TypeMethodDescriptionMockRestClient.patch(Object url, String body, ContentType contentType) MockRestClient.post(Object url, String body, ContentType contentType) MockRestClient.put(Object url, String body, ContentType contentType) -
Uses of ContentType in org.apache.juneau.rest.remote
Methods in org.apache.juneau.rest.remote with parameters of type ContentTypeModifier and TypeMethodDescriptionRrpcServlet.invoke(Reader r, ReaderParser p, ContentType contentType, String javaInterface, String javaMethod)