org.exoplatform.services.rest.data
Class MimeTypes

java.lang.Object
  extended by org.exoplatform.services.rest.data.MimeTypes

public class MimeTypes
extends Object

Version:
$Id: $
Author:
Andrey Parfonov

Field Summary
static String ALL
          All mimetypes.
 
Constructor Summary
MimeTypes(String mimeTypeHeader)
           
 
Method Summary
 String[] getAsArray()
           
 boolean hasMimeType(String s)
          Check does array has requested mimetype.
 String toString()
          String representation of mimetypes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL

public static final String ALL
All mimetypes.

See Also:
Constant Field Values
Constructor Detail

MimeTypes

public MimeTypes(String mimeTypeHeader)
Parameters:
mimeTypeHeader - the Content-Type HTTP header.
Method Detail

getAsArray

public String[] getAsArray()
Returns:
sorted array of mimetype.
See Also:
org.exoplatform.services.rest.data.HeaderUtils.

hasMimeType

public boolean hasMimeType(String s)
Check does array has requested mimetype.

Parameters:
s - requested mimetype.
Returns:
result.

toString

public String toString()
String representation of mimetypes.

Overrides:
toString in class Object


Copyright © 2009 eXo Platform SAS. All Rights Reserved.