Class MimeMappings.Mapping

java.lang.Object
com.jk.web.embedded.spring.MimeMappings.Mapping
Enclosing class:
MimeMappings

public static final class MimeMappings.Mapping extends Object
This class represents a single mapping of a file extension to a MIME type.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • Mapping

      public Mapping(String extension, String mimeType)
      This method constructs a new with the provided extension and MIME type.
      Parameters:
      extension - Specifies the file extension.
      mimeType - Specifies the MIME type associated with the extension.
  • Method Details

    • getExtension

      public String getExtension()
      This method retrieves the file extension.
      Returns:
      the file extension.
    • getMimeType

      public String getMimeType()
      This method retrieves the MIME type associated with the extension.
      Returns:
      the MIME type associated with the extension.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object