com.sun.grizzly.util.http
Class MimeType

java.lang.Object
  extended by com.sun.grizzly.util.http.MimeType

public class MimeType
extends Object

Hardcoded mime-type supported by default.

Author:
Jeanfrancois Arcand

Constructor Summary
MimeType()
           
 
Method Summary
static boolean contains(String extension)
          Return true if the extension is well-know.
static String get(String extension)
           
static String get(String extension, String defaultCt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeType

public MimeType()
Method Detail

get

public static String get(String extension)

get

public static String get(String extension,
                         String defaultCt)

contains

public static boolean contains(String extension)
Return true if the extension is well-know.

Parameters:
extension - the extension.
Returns:
true if the included, false if not


Copyright © 2009 SUN Microsystems. All Rights Reserved.