com.sun.grizzly.http.webxml.schema.version_2_4
Class MimeMappingType

java.lang.Object
  extended by com.sun.grizzly.http.webxml.schema.version_2_4.MimeMappingType

public class MimeMappingType
extends Object

The mime-mappingType defines a mapping between an extension and a mime type. Used in: web-app

Java class for mime-mappingType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="mime-mappingType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="extension" type="{http://java.sun.com/xml/ns/j2ee}string"/>
         <element name="mime-type" type="{http://java.sun.com/xml/ns/j2ee}mime-typeType"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  String extension
           
protected  String id
           
protected  MimeTypeType mimeType
           
 
Constructor Summary
MimeMappingType()
           
 
Method Summary
 String getExtension()
          Gets the value of the extension property.
 String getId()
          Gets the value of the id property.
 MimeTypeType getMimeType()
          Gets the value of the mimeType property.
 void setExtension(String value)
          Sets the value of the extension property.
 void setId(String value)
          Sets the value of the id property.
 void setMimeType(MimeTypeType value)
          Sets the value of the mimeType property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extension

protected String extension

mimeType

protected MimeTypeType mimeType

id

protected String id
Constructor Detail

MimeMappingType

public MimeMappingType()
Method Detail

getExtension

public String getExtension()
Gets the value of the extension property.

Returns:
possible object is String

setExtension

public void setExtension(String value)
Sets the value of the extension property.

Parameters:
value - allowed object is String

getMimeType

public MimeTypeType getMimeType()
Gets the value of the mimeType property.

Returns:
possible object is MimeTypeType

setMimeType

public void setMimeType(MimeTypeType value)
Sets the value of the mimeType property.

Parameters:
value - allowed object is MimeTypeType

getId

public String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String


Copyright © 2012 Oracle Corporation. All Rights Reserved.