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

- Packages that use ContentType
  Package | Description
  --- | ---
  org.apache.tapestry5.http |
  org.apache.tapestry5.http.internal.services |
  org.apache.tapestry5.http.services |
  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.http

    Methods in org.apache.tapestry5.http that return ContentType
    Modifier and Type | Method | 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.http.internal.services

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

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

    Methods in org.apache.tapestry5.http.services with parameters of type ContentType
    Modifier and Type | Method | 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.

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

    Fields in org.apache.tapestry5.internal declared as ContentType
    Modifier and Type | Field | 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 | Description
    --- | --- | ---
    `ContentType` | PageContentTypeAnalyzer.`findContentType​(Page page)` | Analyzes the meta-data for the page and identifies the correct `ContentType` (including encoding).
    `ContentType` | PageContentTypeAnalyzerImpl.`findContentType​(Page page)` |
    `ContentType` | ResponseRendererImpl.`findContentType​(Object component)` |

    Methods in org.apache.tapestry5.internal.services with parameters of type ContentType
    Modifier and Type | Method | Description
    --- | --- | ---
    `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 | Description
    --- | --- | ---
    `ContentType` | StreamableResourceImpl.`getContentType()` |

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

    Constructors in org.apache.tapestry5.internal.services.assets with parameters of type ContentType
    Constructor | 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 | 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 | Description
    --- | --- | ---
    `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 | 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 | 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 | Description
    --- | ---
    `TextStreamResponse​(ContentType contentType, String text)` |