public enum OutputFileFormat extends Enum<OutputFileFormat>
Modifier and Type | Method and Description |
---|---|
static OutputFileFormat |
forRequest(org.apache.sling.api.SlingHttpServletRequest request)
Loads the output format requested in the specified request suffix.
|
String |
getMimeType() |
static OutputFileFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OutputFileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OutputFileFormat GIF
public static final OutputFileFormat JPEG
public static final OutputFileFormat PNG
public static OutputFileFormat[] values()
for (OutputFileFormat c : OutputFileFormat.values()) System.out.println(c);
public static OutputFileFormat 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 OutputFileFormat forRequest(org.apache.sling.api.SlingHttpServletRequest request)
request
- the current request from which to get the suffixpublic String getMimeType()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.