KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > web > core > jsploader > JspMimeResolver


1 /*
2  * JspMimeResolver.java
3  *
4  * Created on September 6, 2006, 10:22 PM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package org.netbeans.modules.web.core.jsploader;
11
12 import org.openide.filesystems.FileObject;
13 import org.openide.filesystems.MIMEResolver;
14
15 /**
16  *
17  * @author Petr Pisl
18  */

19 public class JspMimeResolver extends MIMEResolver {
20     
21     /** Creates a new instance of JspMimeResolver */
22     public JspMimeResolver() {
23     }
24
25     public String JavaDoc findMIMEType(FileObject fo) {
26         String JavaDoc value = null;
27         if ("xhtml".equals(fo.getExt())){
28             value = "text/x-jsp";
29         }
30         return value;
31     }
32     
33 }
34
Popular Tags