Enum ResourceDeliveryServlet.ContentType
- java.lang.Object
-
- java.lang.Enum<ResourceDeliveryServlet.ContentType>
-
- net.anotheria.anosite.content.servlet.ResourceDeliveryServlet.ContentType
-
- All Implemented Interfaces:
Serializable,Comparable<ResourceDeliveryServlet.ContentType>
- Enclosing class:
- ResourceDeliveryServlet
public static enum ResourceDeliveryServlet.ContentType extends Enum<ResourceDeliveryServlet.ContentType>
Content type.- Author:
- Alexandr Bolbat
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()static ResourceDeliveryServlet.ContentTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ResourceDeliveryServlet.ContentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CSS
public static final ResourceDeliveryServlet.ContentType CSS
CSS type.
-
JS
public static final ResourceDeliveryServlet.ContentType JS
JavaScript type.
-
PNG
public static final ResourceDeliveryServlet.ContentType PNG
PNG image file.
-
JPG
public static final ResourceDeliveryServlet.ContentType JPG
JPG image file.
-
JPEG
public static final ResourceDeliveryServlet.ContentType JPEG
JPEG image file.
-
GIF
public static final ResourceDeliveryServlet.ContentType GIF
GIF image file.
-
EOT
public static final ResourceDeliveryServlet.ContentType EOT
EOT font file.
-
TRUE_TYPE
public static final ResourceDeliveryServlet.ContentType TRUE_TYPE
TrueType font file.
-
OPEN_TYPE
public static final ResourceDeliveryServlet.ContentType OPEN_TYPE
OpenType font file.
-
WOFF
public static final ResourceDeliveryServlet.ContentType WOFF
WOFF font file.
-
SVG
public static final ResourceDeliveryServlet.ContentType SVG
SVG font file.
-
-
Method Detail
-
values
public static ResourceDeliveryServlet.ContentType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResourceDeliveryServlet.ContentType c : ResourceDeliveryServlet.ContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceDeliveryServlet.ContentType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getType
public String getType()
-
-