org.apache.any23.servlet.conneg

## Class ContentTypeNegotiator.VariantSpec

- java.lang.Object
- - org.apache.any23.servlet.conneg.ContentTypeNegotiator.VariantSpec

- Enclosing class:
    ContentTypeNegotiator

      protected class ContentTypeNegotiator.VariantSpec
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `VariantSpec(String mediaType)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ContentTypeNegotiator.VariantSpec` | `addAliasMediaType(String mediaType)`
    `List<MediaRangeSpec>` | `getAliases()`
    `MediaRangeSpec` | `getMediaType()`
    `boolean` | `isDefault()`
    `void` | `makeDefault()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### VariantSpec

          public VariantSpec(String mediaType)

  - ### Method Detail

    - #### addAliasMediaType

          public ContentTypeNegotiator.VariantSpec addAliasMediaType(String mediaType)

    - #### makeDefault

          public void makeDefault()

    - #### getMediaType

          public MediaRangeSpec getMediaType()

    - #### isDefault

          public boolean isDefault()

    - #### getAliases

          public List<MediaRangeSpec> getAliases()

Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.