org.apache.droids.protocol
Class MediaType

Package class diagram package MediaType
java.lang.Object
  extended by org.apache.droids.protocol.MediaType

Deprecated. Soon to be replaced via the tika mediaType support

public class MediaType
extends Object

Small helper to determine whether a to tested type is a known content type. Very basic implementation soon to be replaced for more sophisticated solution based on Apache Tika.


Field Summary
static String[] contentTypes
          Deprecated. Officially known contentTypes
 
Method Summary
static boolean isContentType(String type)
          Deprecated. Test whether a given type is in our array of known media types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentTypes

public static final String[] contentTypes
Deprecated. 
Officially known contentTypes

Method Detail

isContentType

public static boolean isContentType(String type)
Deprecated. 
Test whether a given type is in our array of known media types.

Parameters:
type - the type in question
Returns:
true if the type is a known media type. false otherwise


Copyright © 2008 The Apache Software Foundation