1 16 17 package org.apache.jetspeed.capability; 18 19 import org.apache.jetspeed.util.*; 20 import java.util.*; 21 22 30 public interface CapabilityMap 31 { 32 33 34 public static final int HTML_TABLE = 0; 35 36 37 public static final int HTML_IMAGE = 1; 38 39 40 public static final int HTML_FORM = 2; 41 42 43 public static final int HTML_FRAME = 3; 44 45 46 public static final int HTML_JAVA = 17; 47 public static final int HTML_JAVA1_0 = 4; 48 public static final int HTML_JAVA1_1 = 5; 49 public static final int HTML_JAVA1_2 = 6; 50 51 52 public static final int HTML_JSCRIPT = 18; 53 public static final int HTML_JSCRIPT1_0 = 7; 54 public static final int HTML_JSCRIPT1_1 = 8; 55 public static final int HTML_JSCRIPT1_2 = 9; 56 57 58 public static final int HTML_ACTIVEX = 10; 59 60 61 public static final int HTML_CSS1 = 11; 62 63 64 public static final int HTML_CSS2 = 12; 65 66 67 public static final int HTML_CSSP = 13; 68 69 70 public static final int HTML_XML = 14; 71 72 73 public static final int HTML_XSL = 15; 74 75 76 public static final int HTML_DOM = 16; 77 78 81 public MimeType getPreferredType(); 82 83 86 public String getPreferredMediaType(); 87 88 92 public Iterator listMediaTypes(); 93 94 97 public String getAgent(); 98 99 102 public boolean hasCapability( int cap ); 103 104 107 public boolean hasCapability( String capability ); 108 109 112 public MimeType[] getMimeTypes(); 113 114 117 public boolean supportsMimeType( MimeType mimeType ); 118 119 128 public boolean supportsMediaType( String media ); 129 130 133 public String toString(); 134 135 } 136 137 | Popular Tags |