## Uses of Class
org.apache.tapestry5.ContentType

- Packages that use ContentType
  Package | Description
  --- | ---
  org.apache.tapestry5 | Root package for Tapestry, containing common interfaces and data types used throughout the framework.
  org.apache.tapestry5.internal | [INTERNAL USE ONLY] internal support classes; API subject to change.
  org.apache.tapestry5.internal.services | [INTERNAL USE ONLY] internal service classes; API subject to change
  org.apache.tapestry5.internal.services.assets | [INTERNAL USE ONLY] asset support services; API subject to change
  org.apache.tapestry5.services | Core services
  org.apache.tapestry5.services.assets | Various services for assets (e.g., images, JavaScript and CSS files)
  org.apache.tapestry5.util | A set of enums, abstract classs and wrappers of various purposes

- - ### Uses of ContentType in org.apache.tapestry5

    Methods in org.apache.tapestry5 that return ContentType
    Modifier and Type | Method and Description
    --- | ---
    `ContentType` | ContentType.`withCharset(String charset)`
    `ContentType` | ContentType.`withParameter(String key, String value)` Returns a new content type with the indicated parameter.

  - ### Uses of ContentType in org.apache.tapestry5.internal

    Fields in org.apache.tapestry5.internal declared as ContentType
    Modifier and Type | Field and Description
    --- | ---
    `static ContentType` | InternalConstants.`JAVASCRIPT_CONTENT_TYPE`

  - ### Uses of ContentType in org.apache.tapestry5.internal.services

    Methods in org.apache.tapestry5.internal.services that return ContentType
    Modifier and Type | Method and Description
    --- | ---
    `ContentType` | ResponseRendererImpl.`findContentType(Object component)`
    `ContentType` | PageContentTypeAnalyzer.`findContentType(Page page)` Analyzes the meta-data for the page and identifies the correct `ContentType` (including encoding).
    `ContentType` | PageContentTypeAnalyzerImpl.`findContentType(Page page)`

    Methods in org.apache.tapestry5.internal.services with parameters of type ContentType
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | ResponseCompressionAnalyzerImpl.`isGZipEnabled(ContentType contentType)`
    `MarkupWriter` | MarkupWriterFactoryImpl.`newMarkupWriter(ContentType contentType)`
    `MarkupWriter` | MarkupWriterFactoryImpl.`newPartialMarkupWriter(ContentType contentType)`

  - ### Uses of ContentType in org.apache.tapestry5.internal.services.assets

    Methods in org.apache.tapestry5.internal.services.assets that return ContentType
    Modifier and Type | Method and Description
    --- | ---
    `ContentType` | StreamableResourceImpl.`getContentType()`

    Methods in org.apache.tapestry5.internal.services.assets with parameters of type ContentType
    Modifier and Type | Method and Description
    --- | ---
    `Set<String>` | StreamableResourceSourceImpl.`fileExtensionsForContentType(ContentType contentType)`
    `Set<String>` | DelegatingSRS.`fileExtensionsForContentType(ContentType contentType)`
    `StreamableResource` | StreamableResourceImpl.`withContentType(ContentType newContentType)`

    Constructors in org.apache.tapestry5.internal.services.assets with parameters of type ContentType
    Constructor and Description
    `StreamableResourceImpl(String description, ContentType contentType, CompressionStatus compression, long lastModified, BytestreamCache bytestreamCache, AssetChecksumGenerator assetChecksumGenerator, ResponseCustomizer responseCustomizer)`

  - ### Uses of ContentType in org.apache.tapestry5.services

    Methods in org.apache.tapestry5.services that return ContentType
    Modifier and Type | Method and Description
    --- | ---
    `ContentType` | ResponseRenderer.`findContentType(Object component)` Finds the content type for the page containing the indicated component.

    Methods in org.apache.tapestry5.services with parameters of type ContentType
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | ResponseCompressionAnalyzer.`isGZipEnabled(ContentType contentType)` Uses `CompressionAnalyzer` to determine if the content is compressable, but only if the request indicates the client supports compression.
    `MarkupWriter` | MarkupWriterFactory.`newMarkupWriter(ContentType contentType)` Deprecated. use `MarkupWriterFactory.newMarkupWriter(Page)` instead which doesn't rely on the content type alone.
    `MarkupWriter` | MarkupWriterFactory.`newPartialMarkupWriter(ContentType contentType)` Deprecated. use `MarkupWriterFactory.newPartialMarkupWriter(Page)` instead which doesn't rely on the content type alone.

  - ### Uses of ContentType in org.apache.tapestry5.services.assets

    Methods in org.apache.tapestry5.services.assets that return ContentType
    Modifier and Type | Method and Description
    --- | ---
    `ContentType` | StreamableResource.`getContentType()` Returns the resource's content type.
    `ContentType` | ResourceTransformer.`getTransformedContentType()` Returns the MIME type of a transformed stream.

    Methods in org.apache.tapestry5.services.assets with parameters of type ContentType
    Modifier and Type | Method and Description
    --- | ---
    `Set<String>` | StreamableResourceSource.`fileExtensionsForContentType(ContentType contentType)` Given a desired content type, identify which file extensions can be mapped to that extension based on contributed `ResourceTransformer`s that can produce the content type based for a file with that extension.
    `StreamableResource` | StreamableResource.`withContentType(ContentType newContentType)` Returns a new StreamableResource instance with the new content type.

  - ### Uses of ContentType in org.apache.tapestry5.util

    Constructors in org.apache.tapestry5.util with parameters of type ContentType
    Constructor and Description
    `TextStreamResponse(ContentType contentType, String text)`

5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.