public enum ContentEncoding extends Enum<ContentEncoding>
| Modifier and Type | Method and Description |
|---|---|
String |
getHeaderValue() |
static ContentEncoding |
resolveEncoding(javax.servlet.http.HttpServletRequest request)
Resolves the best supported content encoding from the request.
|
static ContentEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentEncoding DEFLATE
public static final ContentEncoding GZIP
public static final ContentEncoding RAW
public static ContentEncoding[] values()
for (ContentEncoding c : ContentEncoding.values()) System.out.println(c);
public static ContentEncoding valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ContentEncoding resolveEncoding(javax.servlet.http.HttpServletRequest request)
request - The request that says which content encoding formats are supported by the client.public String getHeaderValue()
Copyright © 2011–2020 Everit Kft.. All rights reserved.