public class MediaTypeDomain extends AbstractStringDomain
| Constructor and Description |
|---|
MediaTypeDomain()
Creates a new MediaTypeDomain instance.
|
| Modifier and Type | Method and Description |
|---|---|
static MediaTypeDomain |
any()
Returns a MediaTypeDomain that contains any media type.
|
static MediaTypeDomain |
except(Set<String> excludedMediaTypes)
Returns a MediaTypeDomain that contains any media type.
|
protected String |
newValue(ResolverContext context,
int length)
Returns a new random string of the given length for this domain.
|
candidates, dataValueOf, getLength, newValue, setExcludedStringscontains, getExcluded, getLengthRange, getMaxLength, getTypes, initLengthRange, isNotExcluded, isRestrictedLength, setExcluded, setLengthRange, setLengthRange, setLengthRange, setLengthRange, toString, values, valuesEqualclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarrayOf, arrayOf, arrayOf, contains, containsObject, select, selectValue, valueOfpublic static MediaTypeDomain any()
public static MediaTypeDomain except(Set<String> excludedMediaTypes)
protected String newValue(ResolverContext context, int length)
newValue in class AbstractStringDomainCopyright © 2020 The Cornutum Project. All rights reserved.