public class ContentType
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ContentType.ContentTypeParameters |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compatible(ContentType contentType) |
boolean |
compatible(java.lang.String contentType) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
is(ContentType contentType) |
boolean |
is(java.lang.String contentType) |
java.lang.String |
name() |
ContentType |
newParameter(java.lang.String name,
java.lang.String value) |
static ContentType |
of(java.lang.String value) |
java.util.Optional<java.lang.String> |
parameter(java.lang.String name) |
ContentType.ContentTypeParameters |
parameters() |
java.lang.String |
toString() |
public java.lang.String name()
public java.util.Optional<java.lang.String> parameter(java.lang.String name)
public ContentType newParameter(java.lang.String name, java.lang.String value)
public ContentType.ContentTypeParameters parameters()
public boolean is(java.lang.String contentType)
public boolean is(ContentType contentType)
public boolean compatible(java.lang.String contentType)
public boolean compatible(ContentType contentType)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static ContentType of(java.lang.String value)
Copyright © 2017. All Rights Reserved.