public class Variant extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
contentType |
protected String |
language |
protected Output |
output |
protected String |
urlPattern |
Constructor and Description |
---|
Variant() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getContentType()
Get the content type of the variant.
|
String |
getLanguage()
Get the language of the variant.
|
Output |
getOutput()
Get the output of the variant.
|
List<QContentType> |
getQContentTypes()
Get the structured content types of the variant.
|
List<ILanguage> |
getQLanguages()
Get the structured languages of the variant.
|
String |
getUrlPattern()
Get the URL pattern of the variant.
|
int |
hashCode() |
boolean |
requestPathMatchesVariant(String path)
Decide if the variant URL pattern matches the request path.
|
void |
setContentType(String value)
Set the content type of the variant.
|
void |
setLanguage(String value)
Set the language of the variant.
|
void |
setOutput(Output value)
Set the output of the variant.
|
void |
setUrlPattern(String value)
Set the URL pattern of the variant.
|
protected String urlPattern
protected String contentType
protected String language
protected Output output
public String getUrlPattern()
public void setUrlPattern(String value)
value
- The URL pattern of the variantpublic String getContentType()
public List<QContentType> getQContentTypes() throws UnParsableHeaderException
UnParsableHeaderException
public void setContentType(String value)
value
- The content type of the variantpublic String getLanguage()
public List<ILanguage> getQLanguages() throws UnParsableHeaderException
UnParsableHeaderException
public void setLanguage(String value)
value
- The language of the variantpublic Output getOutput()
public void setOutput(Output value)
value
- The output of the variantpublic boolean requestPathMatchesVariant(String path)
path
- Request pathCopyright © 2016. All Rights Reserved.