Package org.apache.wicket.markup
Class MarkupType
- java.lang.Object
-
- org.apache.wicket.markup.MarkupType
-
- All Implemented Interfaces:
Serializable
public class MarkupType extends Object implements Serializable
- Author:
- Juergen Donnerstag
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static MarkupType
HTML_MARKUP_TYPE
A HTML markup type for web pagesstatic String
HTML_MIME
Mime string for HTMLstatic String
XML_MIME
Mime string for XHTML
-
Constructor Summary
Constructors Constructor Description MarkupType(String extension, String mimeType)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExtension()
Gets extension.String
getMimeType()
Gets mimeType.String
toString()
-
-
-
Field Detail
-
XML_MIME
public static final String XML_MIME
Mime string for XHTML- See Also:
- Constant Field Values
-
HTML_MIME
public static final String HTML_MIME
Mime string for HTML- See Also:
- Constant Field Values
-
HTML_MARKUP_TYPE
public static final MarkupType HTML_MARKUP_TYPE
A HTML markup type for web pages
-
-
Constructor Detail
-
MarkupType
public MarkupType(String extension, String mimeType)
Construct.- Parameters:
extension
- associate markup file extension. "html" by default.mimeType
-
-
-
Method Detail
-
getExtension
public final String getExtension()
Gets extension.- Returns:
- extension
-
getMimeType
public final String getMimeType()
Gets mimeType.- Returns:
- mimeType
-
-