public enum OutputFileFormat extends java.lang.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.
|
java.lang.String |
getMimeType() |
static OutputFileFormat |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static OutputFileFormat forRequest(org.apache.sling.api.SlingHttpServletRequest request)
request
- the current request from which to get the suffixpublic java.lang.String getMimeType()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.