com.sun.enterprise.deployment
Class MimeMappingDescriptor

java.lang.Object
  extended by com.sun.enterprise.deployment.MimeMappingDescriptor
All Implemented Interfaces:
MimeMapping, java.io.Serializable

public class MimeMappingDescriptor
extends java.lang.Object
implements MimeMapping, java.io.Serializable

I represent a mapping between a mime type and a file extension for specifiying how to handle mime types in a J2EE WAR.

Author:
Danny Coward
See Also:
Serialized Form

Constructor Summary
MimeMappingDescriptor()
           
MimeMappingDescriptor(MimeMappingDescriptor other)
          copy constructor
MimeMappingDescriptor(java.lang.String extension, java.lang.String mimeType)
          Construct the mapping for the given extension to the given mime type.
 
Method Summary
 java.lang.String getExtension()
          Return the filename extension for this mapping.
 java.lang.String getMimeType()
          Get the mime type for this mapping.
 void print(java.lang.StringBuffer toStringBuffer)
          My pretty format.
 void setExtension(java.lang.String extension)
          Set the filename extension for this mapping.
 void setMimeType(java.lang.String mimeType)
          Set the mime type for this mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeMappingDescriptor

public MimeMappingDescriptor(MimeMappingDescriptor other)
copy constructor


MimeMappingDescriptor

public MimeMappingDescriptor(java.lang.String extension,
                             java.lang.String mimeType)
Construct the mapping for the given extension to the given mime type.


MimeMappingDescriptor

public MimeMappingDescriptor()
Method Detail

getExtension

public java.lang.String getExtension()
Return the filename extension for this mapping.

Specified by:
getExtension in interface MimeMapping

setExtension

public void setExtension(java.lang.String extension)
Set the filename extension for this mapping.

Specified by:
setExtension in interface MimeMapping

getMimeType

public java.lang.String getMimeType()
Get the mime type for this mapping.

Specified by:
getMimeType in interface MimeMapping

setMimeType

public void setMimeType(java.lang.String mimeType)
Set the mime type for this mapping.

Specified by:
setMimeType in interface MimeMapping

print

public void print(java.lang.StringBuffer toStringBuffer)
My pretty format.



Copyright © 2012 GlassFish Community. All Rights Reserved.